[2025-01-07 00:00:05] Production.INFO: next invoice date [2025-01-07 00:00:05] Production.INFO: 2025-02-07 [2025-01-07 00:00:05] Production.INFO: getdaysdiff [2025-01-07 00:00:05] Production.INFO: +31 [2025-01-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (155,11,1,31,31,'RMScheduler',2025-01-07 00:00:05,1,0,,,0) [2025-01-07 00:00:05] Production.INFO: next invoice date [2025-01-07 00:00:05] Production.INFO: 2025-02-07 [2025-01-07 00:00:05] Production.INFO: getdaysdiff [2025-01-07 00:00:05] Production.INFO: +31 [2025-01-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (232,16,1,31,31,'RMScheduler',2025-01-07 00:00:05,1,0,,,0) [2025-01-07 00:00:05] Production.INFO: next invoice date [2025-01-07 00:00:05] Production.INFO: 2025-02-07 [2025-01-07 00:00:05] Production.INFO: getdaysdiff [2025-01-07 00:00:05] Production.INFO: +31 [2025-01-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (232,13,2,31,31,'RMScheduler',2025-01-07 00:00:05,1,0,,,0) [2025-01-07 00:00:05] Production.INFO: next invoice date [2025-01-07 00:00:05] Production.INFO: 2025-02-07 [2025-01-07 00:00:05] Production.INFO: getdaysdiff [2025-01-07 00:00:05] Production.INFO: +31 [2025-01-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (232,11,1,31,31,'RMScheduler',2025-01-07 00:00:05,0,0,,,0) [2025-01-07 00:00:05] Production.INFO: next invoice date [2025-01-07 00:00:05] Production.INFO: 2025-02-07 [2025-01-07 00:00:05] Production.INFO: getdaysdiff [2025-01-07 00:00:05] Production.INFO: +31 [2025-01-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (232,13,2,31,31,'RMScheduler',2025-01-07 00:00:05,0,0,,,0) [2025-01-07 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:00:07 [end_date_ymd] => 2025-01-07 00:00:07 [RateCDR] => 1 ) [2025-01-07 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-01-06 21:00:07' and `end` < '2025-01-07 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-01-07 00:00:20] Production.INFO: count ==609 [2025-01-07 00:00:21] Production.ERROR: pbx CDR StartTime 2025-01-06 21:00:07 - End Time 2025-01-07 00:00:07 [2025-01-07 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191084', 'tblTempUsageDetail_20' ) start [2025-01-07 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191084', 'tblTempUsageDetail_20' ) end [2025-01-07 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191084', 'tblTempVendorCDR_20' ) start [2025-01-07 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191084', 'tblTempVendorCDR_20' ) end [2025-01-07 00:00:21] Production.INFO: ProcessCDR(1,14191084,1,1,2) [2025-01-07 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191084', 'tblTempUsageDetail_20' ) start [2025-01-07 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191084', 'tblTempUsageDetail_20' ) end [2025-01-07 00:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:00:26] Production.INFO: ==10852== Releasing lock... [2025-01-07 00:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:00:26] Production.INFO: 34.25 MB #Memory Used# [2025-01-07 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:01:05 [end_date_ymd] => 2025-01-07 00:01:05 [RateCDR] => 1 ) [2025-01-07 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:01:05' and `end` < '2025-01-07 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:01:18] Production.INFO: count ==593 [2025-01-07 00:01:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:01:05 - End Time 2025-01-07 00:01:05 [2025-01-07 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191089', 'tblTempUsageDetail_20' ) start [2025-01-07 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191089', 'tblTempUsageDetail_20' ) end [2025-01-07 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191089', 'tblTempVendorCDR_20' ) start [2025-01-07 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191089', 'tblTempVendorCDR_20' ) end [2025-01-07 00:01:18] Production.INFO: ProcessCDR(1,14191089,1,1,2) [2025-01-07 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191089', 'tblTempUsageDetail_20' ) start [2025-01-07 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191089', 'tblTempUsageDetail_20' ) end [2025-01-07 00:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:01:21] Production.INFO: ==10956== Releasing lock... [2025-01-07 00:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:01:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-07 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:02:05 [end_date_ymd] => 2025-01-07 00:02:05 [RateCDR] => 1 ) [2025-01-07 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-01-06 21:02:05' and `end` < '2025-01-07 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-01-07 00:02:27] Production.INFO: count ==138 [2025-01-07 00:02:27] Production.ERROR: pbx CDR StartTime 2025-01-06 21:02:05 - End Time 2025-01-07 00:02:05 [2025-01-07 00:02:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191094', 'tblTempUsageDetail_20' ) start [2025-01-07 00:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191094', 'tblTempUsageDetail_20' ) end [2025-01-07 00:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191094', 'tblTempVendorCDR_20' ) start [2025-01-07 00:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191094', 'tblTempVendorCDR_20' ) end [2025-01-07 00:02:27] Production.INFO: ProcessCDR(1,14191094,1,1,2) [2025-01-07 00:02:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191094', 'tblTempUsageDetail_20' ) start [2025-01-07 00:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191094', 'tblTempUsageDetail_20' ) end [2025-01-07 00:02:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:02:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:02:30] Production.INFO: ==11049== Releasing lock... [2025-01-07 00:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:02:30] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:03:05 [end_date_ymd] => 2025-01-07 00:03:05 [RateCDR] => 1 ) [2025-01-07 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:03:05' and `end` < '2025-01-07 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:03:21] Production.INFO: count ==137 [2025-01-07 00:03:21] Production.ERROR: pbx CDR StartTime 2025-01-06 21:03:05 - End Time 2025-01-07 00:03:05 [2025-01-07 00:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191099', 'tblTempUsageDetail_20' ) start [2025-01-07 00:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191099', 'tblTempUsageDetail_20' ) end [2025-01-07 00:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191099', 'tblTempVendorCDR_20' ) start [2025-01-07 00:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191099', 'tblTempVendorCDR_20' ) end [2025-01-07 00:03:21] Production.INFO: ProcessCDR(1,14191099,1,1,2) [2025-01-07 00:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191099', 'tblTempUsageDetail_20' ) start [2025-01-07 00:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191099', 'tblTempUsageDetail_20' ) end [2025-01-07 00:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:03:24] Production.INFO: ==11140== Releasing lock... [2025-01-07 00:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:03:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:04:05 [end_date_ymd] => 2025-01-07 00:04:05 [RateCDR] => 1 ) [2025-01-07 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:04:05' and `end` < '2025-01-07 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:04:20] Production.INFO: count ==136 [2025-01-07 00:04:20] Production.ERROR: pbx CDR StartTime 2025-01-06 21:04:05 - End Time 2025-01-07 00:04:05 [2025-01-07 00:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191104', 'tblTempUsageDetail_20' ) start [2025-01-07 00:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191104', 'tblTempUsageDetail_20' ) end [2025-01-07 00:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191104', 'tblTempVendorCDR_20' ) start [2025-01-07 00:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191104', 'tblTempVendorCDR_20' ) end [2025-01-07 00:04:20] Production.INFO: ProcessCDR(1,14191104,1,1,2) [2025-01-07 00:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191104', 'tblTempUsageDetail_20' ) start [2025-01-07 00:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191104', 'tblTempUsageDetail_20' ) end [2025-01-07 00:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:04:24] Production.INFO: ==11226== Releasing lock... [2025-01-07 00:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:04:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:05:04 [end_date_ymd] => 2025-01-07 00:05:04 [RateCDR] => 1 ) [2025-01-07 00:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:05:04' and `end` < '2025-01-07 00:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:05:21] Production.INFO: count ==136 [2025-01-07 00:05:21] Production.ERROR: pbx CDR StartTime 2025-01-06 21:05:04 - End Time 2025-01-07 00:05:04 [2025-01-07 00:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191109', 'tblTempUsageDetail_20' ) start [2025-01-07 00:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191109', 'tblTempUsageDetail_20' ) end [2025-01-07 00:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191109', 'tblTempVendorCDR_20' ) start [2025-01-07 00:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191109', 'tblTempVendorCDR_20' ) end [2025-01-07 00:05:21] Production.INFO: ProcessCDR(1,14191109,1,1,2) [2025-01-07 00:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191109', 'tblTempUsageDetail_20' ) start [2025-01-07 00:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191109', 'tblTempUsageDetail_20' ) end [2025-01-07 00:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:05:24] Production.INFO: ==11359== Releasing lock... [2025-01-07 00:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:05:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:06:05 [end_date_ymd] => 2025-01-07 00:06:05 [RateCDR] => 1 ) [2025-01-07 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:06:05' and `end` < '2025-01-07 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:06:18] Production.INFO: count ==134 [2025-01-07 00:06:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:06:05 - End Time 2025-01-07 00:06:05 [2025-01-07 00:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191114', 'tblTempUsageDetail_20' ) start [2025-01-07 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191114', 'tblTempUsageDetail_20' ) end [2025-01-07 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191114', 'tblTempVendorCDR_20' ) start [2025-01-07 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191114', 'tblTempVendorCDR_20' ) end [2025-01-07 00:06:18] Production.INFO: ProcessCDR(1,14191114,1,1,2) [2025-01-07 00:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191114', 'tblTempUsageDetail_20' ) start [2025-01-07 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191114', 'tblTempUsageDetail_20' ) end [2025-01-07 00:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:06:21] Production.INFO: ==11449== Releasing lock... [2025-01-07 00:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:07:06 [end_date_ymd] => 2025-01-07 00:07:06 [RateCDR] => 1 ) [2025-01-07 00:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:07:06' and `end` < '2025-01-07 00:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:07:18] Production.INFO: count ==134 [2025-01-07 00:07:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:07:06 - End Time 2025-01-07 00:07:06 [2025-01-07 00:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191119', 'tblTempUsageDetail_20' ) start [2025-01-07 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191119', 'tblTempUsageDetail_20' ) end [2025-01-07 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191119', 'tblTempVendorCDR_20' ) start [2025-01-07 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191119', 'tblTempVendorCDR_20' ) end [2025-01-07 00:07:18] Production.INFO: ProcessCDR(1,14191119,1,1,2) [2025-01-07 00:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191119', 'tblTempUsageDetail_20' ) start [2025-01-07 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191119', 'tblTempUsageDetail_20' ) end [2025-01-07 00:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:07:21] Production.INFO: ==11542== Releasing lock... [2025-01-07 00:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:07:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:08:05 [end_date_ymd] => 2025-01-07 00:08:05 [RateCDR] => 1 ) [2025-01-07 00:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:08:05' and `end` < '2025-01-07 00:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:08:18] Production.INFO: count ==134 [2025-01-07 00:08:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:08:05 - End Time 2025-01-07 00:08:05 [2025-01-07 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191124', 'tblTempUsageDetail_20' ) start [2025-01-07 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191124', 'tblTempUsageDetail_20' ) end [2025-01-07 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191124', 'tblTempVendorCDR_20' ) start [2025-01-07 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191124', 'tblTempVendorCDR_20' ) end [2025-01-07 00:08:18] Production.INFO: ProcessCDR(1,14191124,1,1,2) [2025-01-07 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191124', 'tblTempUsageDetail_20' ) start [2025-01-07 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191124', 'tblTempUsageDetail_20' ) end [2025-01-07 00:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:08:21] Production.INFO: ==11640== Releasing lock... [2025-01-07 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:09:05 [end_date_ymd] => 2025-01-07 00:09:05 [RateCDR] => 1 ) [2025-01-07 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:09:05' and `end` < '2025-01-07 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:09:18] Production.INFO: count ==133 [2025-01-07 00:09:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:09:05 - End Time 2025-01-07 00:09:05 [2025-01-07 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191129', 'tblTempUsageDetail_20' ) start [2025-01-07 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191129', 'tblTempUsageDetail_20' ) end [2025-01-07 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191129', 'tblTempVendorCDR_20' ) start [2025-01-07 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191129', 'tblTempVendorCDR_20' ) end [2025-01-07 00:09:18] Production.INFO: ProcessCDR(1,14191129,1,1,2) [2025-01-07 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191129', 'tblTempUsageDetail_20' ) start [2025-01-07 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191129', 'tblTempUsageDetail_20' ) end [2025-01-07 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:09:21] Production.INFO: ==11729== Releasing lock... [2025-01-07 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-07 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:10:05 [end_date_ymd] => 2025-01-07 00:10:05 [RateCDR] => 1 ) [2025-01-07 00:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:10:05' and `end` < '2025-01-07 00:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:10:18] Production.INFO: count ==135 [2025-01-07 00:10:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:10:05 - End Time 2025-01-07 00:10:05 [2025-01-07 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191135', 'tblTempUsageDetail_20' ) start [2025-01-07 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191135', 'tblTempUsageDetail_20' ) end [2025-01-07 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191135', 'tblTempVendorCDR_20' ) start [2025-01-07 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191135', 'tblTempVendorCDR_20' ) end [2025-01-07 00:10:18] Production.INFO: ProcessCDR(1,14191135,1,1,2) [2025-01-07 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191135', 'tblTempUsageDetail_20' ) start [2025-01-07 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191135', 'tblTempUsageDetail_20' ) end [2025-01-07 00:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:10:21] Production.INFO: ==11815== Releasing lock... [2025-01-07 00:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:10:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:11:05 [end_date_ymd] => 2025-01-07 00:11:05 [RateCDR] => 1 ) [2025-01-07 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:11:05' and `end` < '2025-01-07 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:11:18] Production.INFO: count ==149 [2025-01-07 00:11:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:11:05 - End Time 2025-01-07 00:11:05 [2025-01-07 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191140', 'tblTempUsageDetail_20' ) start [2025-01-07 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191140', 'tblTempUsageDetail_20' ) end [2025-01-07 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191140', 'tblTempVendorCDR_20' ) start [2025-01-07 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191140', 'tblTempVendorCDR_20' ) end [2025-01-07 00:11:18] Production.INFO: ProcessCDR(1,14191140,1,1,2) [2025-01-07 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191140', 'tblTempUsageDetail_20' ) start [2025-01-07 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191140', 'tblTempUsageDetail_20' ) end [2025-01-07 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:11:21] Production.INFO: ==11901== Releasing lock... [2025-01-07 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:11:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-07 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:12:05 [end_date_ymd] => 2025-01-07 00:12:05 [RateCDR] => 1 ) [2025-01-07 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:12:05' and `end` < '2025-01-07 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:12:17] Production.INFO: count ==149 [2025-01-07 00:12:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:12:05 - End Time 2025-01-07 00:12:05 [2025-01-07 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191145', 'tblTempUsageDetail_20' ) start [2025-01-07 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191145', 'tblTempUsageDetail_20' ) end [2025-01-07 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191145', 'tblTempVendorCDR_20' ) start [2025-01-07 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191145', 'tblTempVendorCDR_20' ) end [2025-01-07 00:12:18] Production.INFO: ProcessCDR(1,14191145,1,1,2) [2025-01-07 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191145', 'tblTempUsageDetail_20' ) start [2025-01-07 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191145', 'tblTempUsageDetail_20' ) end [2025-01-07 00:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:12:21] Production.INFO: ==11983== Releasing lock... [2025-01-07 00:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:12:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-07 00:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:13:04 [end_date_ymd] => 2025-01-07 00:13:04 [RateCDR] => 1 ) [2025-01-07 00:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:13:04' and `end` < '2025-01-07 00:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:13:17] Production.INFO: count ==149 [2025-01-07 00:13:17] Production.ERROR: pbx CDR StartTime 2025-01-06 21:13:04 - End Time 2025-01-07 00:13:04 [2025-01-07 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191150', 'tblTempUsageDetail_20' ) start [2025-01-07 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191150', 'tblTempUsageDetail_20' ) end [2025-01-07 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191150', 'tblTempVendorCDR_20' ) start [2025-01-07 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191150', 'tblTempVendorCDR_20' ) end [2025-01-07 00:13:17] Production.INFO: ProcessCDR(1,14191150,1,1,2) [2025-01-07 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191150', 'tblTempUsageDetail_20' ) start [2025-01-07 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191150', 'tblTempUsageDetail_20' ) end [2025-01-07 00:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:13:20] Production.INFO: ==12059== Releasing lock... [2025-01-07 00:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:13:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-07 00:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:14:06 [end_date_ymd] => 2025-01-07 00:14:06 [RateCDR] => 1 ) [2025-01-07 00:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:14:06' and `end` < '2025-01-07 00:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:14:18] Production.INFO: count ==149 [2025-01-07 00:14:19] Production.ERROR: pbx CDR StartTime 2025-01-06 21:14:06 - End Time 2025-01-07 00:14:06 [2025-01-07 00:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191155', 'tblTempUsageDetail_20' ) start [2025-01-07 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191155', 'tblTempUsageDetail_20' ) end [2025-01-07 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191155', 'tblTempVendorCDR_20' ) start [2025-01-07 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191155', 'tblTempVendorCDR_20' ) end [2025-01-07 00:14:19] Production.INFO: ProcessCDR(1,14191155,1,1,2) [2025-01-07 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191155', 'tblTempUsageDetail_20' ) start [2025-01-07 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191155', 'tblTempUsageDetail_20' ) end [2025-01-07 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:14:22] Production.INFO: ==12138== Releasing lock... [2025-01-07 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:14:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-07 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:15:05 [end_date_ymd] => 2025-01-07 00:15:05 [RateCDR] => 1 ) [2025-01-07 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:15:05' and `end` < '2025-01-07 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:15:18] Production.INFO: count ==149 [2025-01-07 00:15:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:15:05 - End Time 2025-01-07 00:15:05 [2025-01-07 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191160', 'tblTempUsageDetail_20' ) start [2025-01-07 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191160', 'tblTempUsageDetail_20' ) end [2025-01-07 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191160', 'tblTempVendorCDR_20' ) start [2025-01-07 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191160', 'tblTempVendorCDR_20' ) end [2025-01-07 00:15:18] Production.INFO: ProcessCDR(1,14191160,1,1,2) [2025-01-07 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191160', 'tblTempUsageDetail_20' ) start [2025-01-07 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191160', 'tblTempUsageDetail_20' ) end [2025-01-07 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:15:21] Production.INFO: ==12218== Releasing lock... [2025-01-07 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:15:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-07 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:16:05 [end_date_ymd] => 2025-01-07 00:16:05 [RateCDR] => 1 ) [2025-01-07 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:16:05' and `end` < '2025-01-07 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:16:18] Production.INFO: count ==149 [2025-01-07 00:16:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:16:05 - End Time 2025-01-07 00:16:05 [2025-01-07 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191165', 'tblTempUsageDetail_20' ) start [2025-01-07 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191165', 'tblTempUsageDetail_20' ) end [2025-01-07 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191165', 'tblTempVendorCDR_20' ) start [2025-01-07 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191165', 'tblTempVendorCDR_20' ) end [2025-01-07 00:16:18] Production.INFO: ProcessCDR(1,14191165,1,1,2) [2025-01-07 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191165', 'tblTempUsageDetail_20' ) start [2025-01-07 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191165', 'tblTempUsageDetail_20' ) end [2025-01-07 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:16:21] Production.INFO: ==12294== Releasing lock... [2025-01-07 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:16:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-07 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:17:05 [end_date_ymd] => 2025-01-07 00:17:05 [RateCDR] => 1 ) [2025-01-07 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:17:05' and `end` < '2025-01-07 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:17:17] Production.INFO: count ==149 [2025-01-07 00:17:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:17:05 - End Time 2025-01-07 00:17:05 [2025-01-07 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191170', 'tblTempUsageDetail_20' ) start [2025-01-07 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191170', 'tblTempUsageDetail_20' ) end [2025-01-07 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191170', 'tblTempVendorCDR_20' ) start [2025-01-07 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191170', 'tblTempVendorCDR_20' ) end [2025-01-07 00:17:18] Production.INFO: ProcessCDR(1,14191170,1,1,2) [2025-01-07 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191170', 'tblTempUsageDetail_20' ) start [2025-01-07 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191170', 'tblTempUsageDetail_20' ) end [2025-01-07 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:17:21] Production.INFO: ==12369== Releasing lock... [2025-01-07 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:17:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-07 00:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:18:06 [end_date_ymd] => 2025-01-07 00:18:06 [RateCDR] => 1 ) [2025-01-07 00:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:18:06' and `end` < '2025-01-07 00:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:18:19] Production.INFO: count ==149 [2025-01-07 00:18:19] Production.ERROR: pbx CDR StartTime 2025-01-06 21:18:06 - End Time 2025-01-07 00:18:06 [2025-01-07 00:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191175', 'tblTempUsageDetail_20' ) start [2025-01-07 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191175', 'tblTempUsageDetail_20' ) end [2025-01-07 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191175', 'tblTempVendorCDR_20' ) start [2025-01-07 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191175', 'tblTempVendorCDR_20' ) end [2025-01-07 00:18:19] Production.INFO: ProcessCDR(1,14191175,1,1,2) [2025-01-07 00:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191175', 'tblTempUsageDetail_20' ) start [2025-01-07 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191175', 'tblTempUsageDetail_20' ) end [2025-01-07 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:18:22] Production.INFO: ==12455== Releasing lock... [2025-01-07 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:18:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-07 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:19:05 [end_date_ymd] => 2025-01-07 00:19:05 [RateCDR] => 1 ) [2025-01-07 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:19:05' and `end` < '2025-01-07 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:19:18] Production.INFO: count ==149 [2025-01-07 00:19:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:19:05 - End Time 2025-01-07 00:19:05 [2025-01-07 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191180', 'tblTempUsageDetail_20' ) start [2025-01-07 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191180', 'tblTempUsageDetail_20' ) end [2025-01-07 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191180', 'tblTempVendorCDR_20' ) start [2025-01-07 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191180', 'tblTempVendorCDR_20' ) end [2025-01-07 00:19:18] Production.INFO: ProcessCDR(1,14191180,1,1,2) [2025-01-07 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191180', 'tblTempUsageDetail_20' ) start [2025-01-07 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191180', 'tblTempUsageDetail_20' ) end [2025-01-07 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:19:21] Production.INFO: ==12526== Releasing lock... [2025-01-07 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:19:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-07 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:20:05 [end_date_ymd] => 2025-01-07 00:20:05 [RateCDR] => 1 ) [2025-01-07 00:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:20:05' and `end` < '2025-01-07 00:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:20:18] Production.INFO: count ==158 [2025-01-07 00:20:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:20:05 - End Time 2025-01-07 00:20:05 [2025-01-07 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191185', 'tblTempUsageDetail_20' ) start [2025-01-07 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191185', 'tblTempUsageDetail_20' ) end [2025-01-07 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191185', 'tblTempVendorCDR_20' ) start [2025-01-07 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191185', 'tblTempVendorCDR_20' ) end [2025-01-07 00:20:18] Production.INFO: ProcessCDR(1,14191185,1,1,2) [2025-01-07 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191185', 'tblTempUsageDetail_20' ) start [2025-01-07 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191185', 'tblTempUsageDetail_20' ) end [2025-01-07 00:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:20:21] Production.INFO: ==12600== Releasing lock... [2025-01-07 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:20:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-07 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:21:05 [end_date_ymd] => 2025-01-07 00:21:05 [RateCDR] => 1 ) [2025-01-07 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:21:05' and `end` < '2025-01-07 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:21:18] Production.INFO: count ==168 [2025-01-07 00:21:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:21:05 - End Time 2025-01-07 00:21:05 [2025-01-07 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191191', 'tblTempUsageDetail_20' ) start [2025-01-07 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191191', 'tblTempUsageDetail_20' ) end [2025-01-07 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191191', 'tblTempVendorCDR_20' ) start [2025-01-07 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191191', 'tblTempVendorCDR_20' ) end [2025-01-07 00:21:18] Production.INFO: ProcessCDR(1,14191191,1,1,2) [2025-01-07 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191191', 'tblTempUsageDetail_20' ) start [2025-01-07 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191191', 'tblTempUsageDetail_20' ) end [2025-01-07 00:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:21:22] Production.INFO: ==12719== Releasing lock... [2025-01-07 00:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:21:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:22:05 [end_date_ymd] => 2025-01-07 00:22:05 [RateCDR] => 1 ) [2025-01-07 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:22:05' and `end` < '2025-01-07 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:22:18] Production.INFO: count ==168 [2025-01-07 00:22:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:22:05 - End Time 2025-01-07 00:22:05 [2025-01-07 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191196', 'tblTempUsageDetail_20' ) start [2025-01-07 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191196', 'tblTempUsageDetail_20' ) end [2025-01-07 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191196', 'tblTempVendorCDR_20' ) start [2025-01-07 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191196', 'tblTempVendorCDR_20' ) end [2025-01-07 00:22:18] Production.INFO: ProcessCDR(1,14191196,1,1,2) [2025-01-07 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191196', 'tblTempUsageDetail_20' ) start [2025-01-07 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191196', 'tblTempUsageDetail_20' ) end [2025-01-07 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:22:21] Production.INFO: ==12799== Releasing lock... [2025-01-07 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:23:05 [end_date_ymd] => 2025-01-07 00:23:05 [RateCDR] => 1 ) [2025-01-07 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:23:05' and `end` < '2025-01-07 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:23:18] Production.INFO: count ==167 [2025-01-07 00:23:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:23:05 - End Time 2025-01-07 00:23:05 [2025-01-07 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191201', 'tblTempUsageDetail_20' ) start [2025-01-07 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191201', 'tblTempUsageDetail_20' ) end [2025-01-07 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191201', 'tblTempVendorCDR_20' ) start [2025-01-07 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191201', 'tblTempVendorCDR_20' ) end [2025-01-07 00:23:18] Production.INFO: ProcessCDR(1,14191201,1,1,2) [2025-01-07 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191201', 'tblTempUsageDetail_20' ) start [2025-01-07 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191201', 'tblTempUsageDetail_20' ) end [2025-01-07 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:23:21] Production.INFO: ==12873== Releasing lock... [2025-01-07 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:23:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-07 00:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:24:04 [end_date_ymd] => 2025-01-07 00:24:04 [RateCDR] => 1 ) [2025-01-07 00:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:24:04' and `end` < '2025-01-07 00:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:24:17] Production.INFO: count ==159 [2025-01-07 00:24:17] Production.ERROR: pbx CDR StartTime 2025-01-06 21:24:04 - End Time 2025-01-07 00:24:04 [2025-01-07 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191206', 'tblTempUsageDetail_20' ) start [2025-01-07 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191206', 'tblTempUsageDetail_20' ) end [2025-01-07 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191206', 'tblTempVendorCDR_20' ) start [2025-01-07 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191206', 'tblTempVendorCDR_20' ) end [2025-01-07 00:24:17] Production.INFO: ProcessCDR(1,14191206,1,1,2) [2025-01-07 00:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191206', 'tblTempUsageDetail_20' ) start [2025-01-07 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191206', 'tblTempUsageDetail_20' ) end [2025-01-07 00:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:24:20] Production.INFO: ==12943== Releasing lock... [2025-01-07 00:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:24:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-07 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:25:05 [end_date_ymd] => 2025-01-07 00:25:05 [RateCDR] => 1 ) [2025-01-07 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-01-06 21:25:05' and `end` < '2025-01-07 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-01-07 00:25:18] Production.INFO: count ==152 [2025-01-07 00:25:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:25:05 - End Time 2025-01-07 00:25:05 [2025-01-07 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191211', 'tblTempUsageDetail_20' ) start [2025-01-07 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191211', 'tblTempUsageDetail_20' ) end [2025-01-07 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191211', 'tblTempVendorCDR_20' ) start [2025-01-07 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191211', 'tblTempVendorCDR_20' ) end [2025-01-07 00:25:18] Production.INFO: ProcessCDR(1,14191211,1,1,2) [2025-01-07 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191211', 'tblTempUsageDetail_20' ) start [2025-01-07 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191211', 'tblTempUsageDetail_20' ) end [2025-01-07 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:25:21] Production.INFO: ==13015== Releasing lock... [2025-01-07 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-07 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:26:05 [end_date_ymd] => 2025-01-07 00:26:05 [RateCDR] => 1 ) [2025-01-07 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:26:05' and `end` < '2025-01-07 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:26:18] Production.INFO: count ==152 [2025-01-07 00:26:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:26:05 - End Time 2025-01-07 00:26:05 [2025-01-07 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191216', 'tblTempUsageDetail_20' ) start [2025-01-07 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191216', 'tblTempUsageDetail_20' ) end [2025-01-07 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191216', 'tblTempVendorCDR_20' ) start [2025-01-07 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191216', 'tblTempVendorCDR_20' ) end [2025-01-07 00:26:18] Production.INFO: ProcessCDR(1,14191216,1,1,2) [2025-01-07 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191216', 'tblTempUsageDetail_20' ) start [2025-01-07 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191216', 'tblTempUsageDetail_20' ) end [2025-01-07 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:26:21] Production.INFO: ==13086== Releasing lock... [2025-01-07 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:26:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-07 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:27:05 [end_date_ymd] => 2025-01-07 00:27:05 [RateCDR] => 1 ) [2025-01-07 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:27:05' and `end` < '2025-01-07 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:27:18] Production.INFO: count ==147 [2025-01-07 00:27:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:27:05 - End Time 2025-01-07 00:27:05 [2025-01-07 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191221', 'tblTempUsageDetail_20' ) start [2025-01-07 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191221', 'tblTempUsageDetail_20' ) end [2025-01-07 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191221', 'tblTempVendorCDR_20' ) start [2025-01-07 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191221', 'tblTempVendorCDR_20' ) end [2025-01-07 00:27:18] Production.INFO: ProcessCDR(1,14191221,1,1,2) [2025-01-07 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191221', 'tblTempUsageDetail_20' ) start [2025-01-07 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191221', 'tblTempUsageDetail_20' ) end [2025-01-07 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:27:21] Production.INFO: ==13158== Releasing lock... [2025-01-07 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-07 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:28:05 [end_date_ymd] => 2025-01-07 00:28:05 [RateCDR] => 1 ) [2025-01-07 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:28:05' and `end` < '2025-01-07 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:28:18] Production.INFO: count ==138 [2025-01-07 00:28:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:28:05 - End Time 2025-01-07 00:28:05 [2025-01-07 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191226', 'tblTempUsageDetail_20' ) start [2025-01-07 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191226', 'tblTempUsageDetail_20' ) end [2025-01-07 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191226', 'tblTempVendorCDR_20' ) start [2025-01-07 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191226', 'tblTempVendorCDR_20' ) end [2025-01-07 00:28:18] Production.INFO: ProcessCDR(1,14191226,1,1,2) [2025-01-07 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191226', 'tblTempUsageDetail_20' ) start [2025-01-07 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191226', 'tblTempUsageDetail_20' ) end [2025-01-07 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:28:21] Production.INFO: ==13231== Releasing lock... [2025-01-07 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:29:05 [end_date_ymd] => 2025-01-07 00:29:05 [RateCDR] => 1 ) [2025-01-07 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:29:05' and `end` < '2025-01-07 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:29:17] Production.INFO: count ==140 [2025-01-07 00:29:17] Production.ERROR: pbx CDR StartTime 2025-01-06 21:29:05 - End Time 2025-01-07 00:29:05 [2025-01-07 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191231', 'tblTempUsageDetail_20' ) start [2025-01-07 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191231', 'tblTempUsageDetail_20' ) end [2025-01-07 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191231', 'tblTempVendorCDR_20' ) start [2025-01-07 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191231', 'tblTempVendorCDR_20' ) end [2025-01-07 00:29:17] Production.INFO: ProcessCDR(1,14191231,1,1,2) [2025-01-07 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191231', 'tblTempUsageDetail_20' ) start [2025-01-07 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191231', 'tblTempUsageDetail_20' ) end [2025-01-07 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:29:21] Production.INFO: ==13302== Releasing lock... [2025-01-07 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:30:06 [end_date_ymd] => 2025-01-07 00:30:06 [RateCDR] => 1 ) [2025-01-07 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:30:06' and `end` < '2025-01-07 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:30:19] Production.INFO: count ==135 [2025-01-07 00:30:19] Production.ERROR: pbx CDR StartTime 2025-01-06 21:30:06 - End Time 2025-01-07 00:30:06 [2025-01-07 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191237', 'tblTempUsageDetail_20' ) start [2025-01-07 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191237', 'tblTempUsageDetail_20' ) end [2025-01-07 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191237', 'tblTempVendorCDR_20' ) start [2025-01-07 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191237', 'tblTempVendorCDR_20' ) end [2025-01-07 00:30:19] Production.INFO: ProcessCDR(1,14191237,1,1,2) [2025-01-07 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191237', 'tblTempUsageDetail_20' ) start [2025-01-07 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191237', 'tblTempUsageDetail_20' ) end [2025-01-07 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:30:22] Production.INFO: ==13375== Releasing lock... [2025-01-07 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:31:04 [end_date_ymd] => 2025-01-07 00:31:04 [RateCDR] => 1 ) [2025-01-07 00:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:31:04' and `end` < '2025-01-07 00:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:31:17] Production.INFO: count ==134 [2025-01-07 00:31:17] Production.ERROR: pbx CDR StartTime 2025-01-06 21:31:04 - End Time 2025-01-07 00:31:04 [2025-01-07 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191242', 'tblTempUsageDetail_20' ) start [2025-01-07 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191242', 'tblTempUsageDetail_20' ) end [2025-01-07 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191242', 'tblTempVendorCDR_20' ) start [2025-01-07 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191242', 'tblTempVendorCDR_20' ) end [2025-01-07 00:31:17] Production.INFO: ProcessCDR(1,14191242,1,1,2) [2025-01-07 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191242', 'tblTempUsageDetail_20' ) start [2025-01-07 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191242', 'tblTempUsageDetail_20' ) end [2025-01-07 00:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:31:20] Production.INFO: ==13447== Releasing lock... [2025-01-07 00:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:31:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:32:05 [end_date_ymd] => 2025-01-07 00:32:05 [RateCDR] => 1 ) [2025-01-07 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:32:05' and `end` < '2025-01-07 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:32:18] Production.INFO: count ==130 [2025-01-07 00:32:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:32:05 - End Time 2025-01-07 00:32:05 [2025-01-07 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191247', 'tblTempUsageDetail_20' ) start [2025-01-07 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191247', 'tblTempUsageDetail_20' ) end [2025-01-07 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191247', 'tblTempVendorCDR_20' ) start [2025-01-07 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191247', 'tblTempVendorCDR_20' ) end [2025-01-07 00:32:18] Production.INFO: ProcessCDR(1,14191247,1,1,2) [2025-01-07 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191247', 'tblTempUsageDetail_20' ) start [2025-01-07 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191247', 'tblTempUsageDetail_20' ) end [2025-01-07 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:32:21] Production.INFO: ==13520== Releasing lock... [2025-01-07 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:32:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:33:06 [end_date_ymd] => 2025-01-07 00:33:06 [RateCDR] => 1 ) [2025-01-07 00:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:33:06' and `end` < '2025-01-07 00:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:33:19] Production.INFO: count ==133 [2025-01-07 00:33:19] Production.ERROR: pbx CDR StartTime 2025-01-06 21:33:06 - End Time 2025-01-07 00:33:06 [2025-01-07 00:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191252', 'tblTempUsageDetail_20' ) start [2025-01-07 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191252', 'tblTempUsageDetail_20' ) end [2025-01-07 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191252', 'tblTempVendorCDR_20' ) start [2025-01-07 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191252', 'tblTempVendorCDR_20' ) end [2025-01-07 00:33:19] Production.INFO: ProcessCDR(1,14191252,1,1,2) [2025-01-07 00:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191252', 'tblTempUsageDetail_20' ) start [2025-01-07 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191252', 'tblTempUsageDetail_20' ) end [2025-01-07 00:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:33:22] Production.INFO: ==13595== Releasing lock... [2025-01-07 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:33:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:34:05 [end_date_ymd] => 2025-01-07 00:34:05 [RateCDR] => 1 ) [2025-01-07 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:34:05' and `end` < '2025-01-07 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:34:18] Production.INFO: count ==137 [2025-01-07 00:34:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:34:05 - End Time 2025-01-07 00:34:05 [2025-01-07 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191257', 'tblTempUsageDetail_20' ) start [2025-01-07 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191257', 'tblTempUsageDetail_20' ) end [2025-01-07 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191257', 'tblTempVendorCDR_20' ) start [2025-01-07 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191257', 'tblTempVendorCDR_20' ) end [2025-01-07 00:34:18] Production.INFO: ProcessCDR(1,14191257,1,1,2) [2025-01-07 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191257', 'tblTempUsageDetail_20' ) start [2025-01-07 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191257', 'tblTempUsageDetail_20' ) end [2025-01-07 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:34:21] Production.INFO: ==13666== Releasing lock... [2025-01-07 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:34:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:35:05 [end_date_ymd] => 2025-01-07 00:35:05 [RateCDR] => 1 ) [2025-01-07 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:35:05' and `end` < '2025-01-07 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:35:18] Production.INFO: count ==137 [2025-01-07 00:35:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:35:05 - End Time 2025-01-07 00:35:05 [2025-01-07 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191262', 'tblTempUsageDetail_20' ) start [2025-01-07 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191262', 'tblTempUsageDetail_20' ) end [2025-01-07 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191262', 'tblTempVendorCDR_20' ) start [2025-01-07 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191262', 'tblTempVendorCDR_20' ) end [2025-01-07 00:35:18] Production.INFO: ProcessCDR(1,14191262,1,1,2) [2025-01-07 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191262', 'tblTempUsageDetail_20' ) start [2025-01-07 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191262', 'tblTempUsageDetail_20' ) end [2025-01-07 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:35:21] Production.INFO: ==13738== Releasing lock... [2025-01-07 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:35:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:36:04 [end_date_ymd] => 2025-01-07 00:36:04 [RateCDR] => 1 ) [2025-01-07 00:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:36:04' and `end` < '2025-01-07 00:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:36:19] Production.INFO: count ==137 [2025-01-07 00:36:19] Production.ERROR: pbx CDR StartTime 2025-01-06 21:36:04 - End Time 2025-01-07 00:36:04 [2025-01-07 00:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191267', 'tblTempUsageDetail_20' ) start [2025-01-07 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191267', 'tblTempUsageDetail_20' ) end [2025-01-07 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191267', 'tblTempVendorCDR_20' ) start [2025-01-07 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191267', 'tblTempVendorCDR_20' ) end [2025-01-07 00:36:19] Production.INFO: ProcessCDR(1,14191267,1,1,2) [2025-01-07 00:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191267', 'tblTempUsageDetail_20' ) start [2025-01-07 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191267', 'tblTempUsageDetail_20' ) end [2025-01-07 00:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:36:22] Production.INFO: ==13814== Releasing lock... [2025-01-07 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:36:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:37:05 [end_date_ymd] => 2025-01-07 00:37:05 [RateCDR] => 1 ) [2025-01-07 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:37:05' and `end` < '2025-01-07 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:37:18] Production.INFO: count ==137 [2025-01-07 00:37:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:37:05 - End Time 2025-01-07 00:37:05 [2025-01-07 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191272', 'tblTempUsageDetail_20' ) start [2025-01-07 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191272', 'tblTempUsageDetail_20' ) end [2025-01-07 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191272', 'tblTempVendorCDR_20' ) start [2025-01-07 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191272', 'tblTempVendorCDR_20' ) end [2025-01-07 00:37:18] Production.INFO: ProcessCDR(1,14191272,1,1,2) [2025-01-07 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191272', 'tblTempUsageDetail_20' ) start [2025-01-07 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191272', 'tblTempUsageDetail_20' ) end [2025-01-07 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:37:21] Production.INFO: ==13923== Releasing lock... [2025-01-07 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:37:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:38:04 [end_date_ymd] => 2025-01-07 00:38:04 [RateCDR] => 1 ) [2025-01-07 00:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:38:04' and `end` < '2025-01-07 00:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:38:17] Production.INFO: count ==137 [2025-01-07 00:38:17] Production.ERROR: pbx CDR StartTime 2025-01-06 21:38:04 - End Time 2025-01-07 00:38:04 [2025-01-07 00:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191277', 'tblTempUsageDetail_20' ) start [2025-01-07 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191277', 'tblTempUsageDetail_20' ) end [2025-01-07 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191277', 'tblTempVendorCDR_20' ) start [2025-01-07 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191277', 'tblTempVendorCDR_20' ) end [2025-01-07 00:38:17] Production.INFO: ProcessCDR(1,14191277,1,1,2) [2025-01-07 00:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191277', 'tblTempUsageDetail_20' ) start [2025-01-07 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191277', 'tblTempUsageDetail_20' ) end [2025-01-07 00:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:38:20] Production.INFO: ==13994== Releasing lock... [2025-01-07 00:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:38:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:39:05 [end_date_ymd] => 2025-01-07 00:39:05 [RateCDR] => 1 ) [2025-01-07 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:39:05' and `end` < '2025-01-07 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:39:18] Production.INFO: count ==137 [2025-01-07 00:39:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:39:05 - End Time 2025-01-07 00:39:05 [2025-01-07 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191282', 'tblTempUsageDetail_20' ) start [2025-01-07 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191282', 'tblTempUsageDetail_20' ) end [2025-01-07 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191282', 'tblTempVendorCDR_20' ) start [2025-01-07 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191282', 'tblTempVendorCDR_20' ) end [2025-01-07 00:39:18] Production.INFO: ProcessCDR(1,14191282,1,1,2) [2025-01-07 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191282', 'tblTempUsageDetail_20' ) start [2025-01-07 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191282', 'tblTempUsageDetail_20' ) end [2025-01-07 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:39:21] Production.INFO: ==14067== Releasing lock... [2025-01-07 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:39:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:40:06 [end_date_ymd] => 2025-01-07 00:40:06 [RateCDR] => 1 ) [2025-01-07 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:40:06' and `end` < '2025-01-07 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:40:19] Production.INFO: count ==147 [2025-01-07 00:40:19] Production.ERROR: pbx CDR StartTime 2025-01-06 21:40:06 - End Time 2025-01-07 00:40:06 [2025-01-07 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191287', 'tblTempUsageDetail_20' ) start [2025-01-07 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191287', 'tblTempUsageDetail_20' ) end [2025-01-07 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191287', 'tblTempVendorCDR_20' ) start [2025-01-07 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191287', 'tblTempVendorCDR_20' ) end [2025-01-07 00:40:19] Production.INFO: ProcessCDR(1,14191287,1,1,2) [2025-01-07 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191287', 'tblTempUsageDetail_20' ) start [2025-01-07 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191287', 'tblTempUsageDetail_20' ) end [2025-01-07 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:40:22] Production.INFO: ==14142== Releasing lock... [2025-01-07 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:41:05 [end_date_ymd] => 2025-01-07 00:41:05 [RateCDR] => 1 ) [2025-01-07 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:41:05' and `end` < '2025-01-07 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:41:18] Production.INFO: count ==151 [2025-01-07 00:41:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:41:05 - End Time 2025-01-07 00:41:05 [2025-01-07 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191293', 'tblTempUsageDetail_20' ) start [2025-01-07 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191293', 'tblTempUsageDetail_20' ) end [2025-01-07 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191293', 'tblTempVendorCDR_20' ) start [2025-01-07 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191293', 'tblTempVendorCDR_20' ) end [2025-01-07 00:41:18] Production.INFO: ProcessCDR(1,14191293,1,1,2) [2025-01-07 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191293', 'tblTempUsageDetail_20' ) start [2025-01-07 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191293', 'tblTempUsageDetail_20' ) end [2025-01-07 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:41:21] Production.INFO: ==14213== Releasing lock... [2025-01-07 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:41:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:42:05 [end_date_ymd] => 2025-01-07 00:42:05 [RateCDR] => 1 ) [2025-01-07 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:42:05' and `end` < '2025-01-07 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:42:18] Production.INFO: count ==151 [2025-01-07 00:42:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:42:05 - End Time 2025-01-07 00:42:05 [2025-01-07 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191298', 'tblTempUsageDetail_20' ) start [2025-01-07 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191298', 'tblTempUsageDetail_20' ) end [2025-01-07 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191298', 'tblTempVendorCDR_20' ) start [2025-01-07 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191298', 'tblTempVendorCDR_20' ) end [2025-01-07 00:42:18] Production.INFO: ProcessCDR(1,14191298,1,1,2) [2025-01-07 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191298', 'tblTempUsageDetail_20' ) start [2025-01-07 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191298', 'tblTempUsageDetail_20' ) end [2025-01-07 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:42:21] Production.INFO: ==14284== Releasing lock... [2025-01-07 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:42:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:43:04 [end_date_ymd] => 2025-01-07 00:43:04 [RateCDR] => 1 ) [2025-01-07 00:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:43:04' and `end` < '2025-01-07 00:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:43:17] Production.INFO: count ==150 [2025-01-07 00:43:17] Production.ERROR: pbx CDR StartTime 2025-01-06 21:43:04 - End Time 2025-01-07 00:43:04 [2025-01-07 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191303', 'tblTempUsageDetail_20' ) start [2025-01-07 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191303', 'tblTempUsageDetail_20' ) end [2025-01-07 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191303', 'tblTempVendorCDR_20' ) start [2025-01-07 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191303', 'tblTempVendorCDR_20' ) end [2025-01-07 00:43:17] Production.INFO: ProcessCDR(1,14191303,1,1,2) [2025-01-07 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191303', 'tblTempUsageDetail_20' ) start [2025-01-07 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191303', 'tblTempUsageDetail_20' ) end [2025-01-07 00:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:43:20] Production.INFO: ==14357== Releasing lock... [2025-01-07 00:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:43:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:44:05 [end_date_ymd] => 2025-01-07 00:44:05 [RateCDR] => 1 ) [2025-01-07 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:44:05' and `end` < '2025-01-07 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:44:19] Production.INFO: count ==149 [2025-01-07 00:44:19] Production.ERROR: pbx CDR StartTime 2025-01-06 21:44:05 - End Time 2025-01-07 00:44:05 [2025-01-07 00:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191308', 'tblTempUsageDetail_20' ) start [2025-01-07 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191308', 'tblTempUsageDetail_20' ) end [2025-01-07 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191308', 'tblTempVendorCDR_20' ) start [2025-01-07 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191308', 'tblTempVendorCDR_20' ) end [2025-01-07 00:44:19] Production.INFO: ProcessCDR(1,14191308,1,1,2) [2025-01-07 00:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191308', 'tblTempUsageDetail_20' ) start [2025-01-07 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191308', 'tblTempUsageDetail_20' ) end [2025-01-07 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:44:22] Production.INFO: ==14431== Releasing lock... [2025-01-07 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:44:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:45:05 [end_date_ymd] => 2025-01-07 00:45:05 [RateCDR] => 1 ) [2025-01-07 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:45:05' and `end` < '2025-01-07 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:45:17] Production.INFO: count ==149 [2025-01-07 00:45:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:45:05 - End Time 2025-01-07 00:45:05 [2025-01-07 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191313', 'tblTempUsageDetail_20' ) start [2025-01-07 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191313', 'tblTempUsageDetail_20' ) end [2025-01-07 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191313', 'tblTempVendorCDR_20' ) start [2025-01-07 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191313', 'tblTempVendorCDR_20' ) end [2025-01-07 00:45:18] Production.INFO: ProcessCDR(1,14191313,1,1,2) [2025-01-07 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191313', 'tblTempUsageDetail_20' ) start [2025-01-07 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191313', 'tblTempUsageDetail_20' ) end [2025-01-07 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:45:21] Production.INFO: ==14501== Releasing lock... [2025-01-07 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:45:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:46:06 [end_date_ymd] => 2025-01-07 00:46:06 [RateCDR] => 1 ) [2025-01-07 00:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:46:06' and `end` < '2025-01-07 00:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:46:19] Production.INFO: count ==149 [2025-01-07 00:46:19] Production.ERROR: pbx CDR StartTime 2025-01-06 21:46:06 - End Time 2025-01-07 00:46:06 [2025-01-07 00:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191318', 'tblTempUsageDetail_20' ) start [2025-01-07 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191318', 'tblTempUsageDetail_20' ) end [2025-01-07 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191318', 'tblTempVendorCDR_20' ) start [2025-01-07 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191318', 'tblTempVendorCDR_20' ) end [2025-01-07 00:46:19] Production.INFO: ProcessCDR(1,14191318,1,1,2) [2025-01-07 00:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191318', 'tblTempUsageDetail_20' ) start [2025-01-07 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191318', 'tblTempUsageDetail_20' ) end [2025-01-07 00:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:46:22] Production.INFO: ==14576== Releasing lock... [2025-01-07 00:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:46:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:47:05 [end_date_ymd] => 2025-01-07 00:47:05 [RateCDR] => 1 ) [2025-01-07 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:47:05' and `end` < '2025-01-07 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:47:18] Production.INFO: count ==149 [2025-01-07 00:47:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:47:05 - End Time 2025-01-07 00:47:05 [2025-01-07 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191323', 'tblTempUsageDetail_20' ) start [2025-01-07 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191323', 'tblTempUsageDetail_20' ) end [2025-01-07 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191323', 'tblTempVendorCDR_20' ) start [2025-01-07 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191323', 'tblTempVendorCDR_20' ) end [2025-01-07 00:47:18] Production.INFO: ProcessCDR(1,14191323,1,1,2) [2025-01-07 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191323', 'tblTempUsageDetail_20' ) start [2025-01-07 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191323', 'tblTempUsageDetail_20' ) end [2025-01-07 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:47:21] Production.INFO: ==14648== Releasing lock... [2025-01-07 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:47:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:48:05 [end_date_ymd] => 2025-01-07 00:48:05 [RateCDR] => 1 ) [2025-01-07 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:48:05' and `end` < '2025-01-07 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:48:18] Production.INFO: count ==148 [2025-01-07 00:48:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:48:05 - End Time 2025-01-07 00:48:05 [2025-01-07 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191328', 'tblTempUsageDetail_20' ) start [2025-01-07 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191328', 'tblTempUsageDetail_20' ) end [2025-01-07 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191328', 'tblTempVendorCDR_20' ) start [2025-01-07 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191328', 'tblTempVendorCDR_20' ) end [2025-01-07 00:48:18] Production.INFO: ProcessCDR(1,14191328,1,1,2) [2025-01-07 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191328', 'tblTempUsageDetail_20' ) start [2025-01-07 00:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191328', 'tblTempUsageDetail_20' ) end [2025-01-07 00:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:48:23] Production.INFO: ==14723== Releasing lock... [2025-01-07 00:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:48:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:49:05 [end_date_ymd] => 2025-01-07 00:49:05 [RateCDR] => 1 ) [2025-01-07 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:49:05' and `end` < '2025-01-07 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:49:18] Production.INFO: count ==147 [2025-01-07 00:49:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:49:05 - End Time 2025-01-07 00:49:05 [2025-01-07 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191333', 'tblTempUsageDetail_20' ) start [2025-01-07 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191333', 'tblTempUsageDetail_20' ) end [2025-01-07 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191333', 'tblTempVendorCDR_20' ) start [2025-01-07 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191333', 'tblTempVendorCDR_20' ) end [2025-01-07 00:49:18] Production.INFO: ProcessCDR(1,14191333,1,1,2) [2025-01-07 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191333', 'tblTempUsageDetail_20' ) start [2025-01-07 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191333', 'tblTempUsageDetail_20' ) end [2025-01-07 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:49:22] Production.INFO: ==14800== Releasing lock... [2025-01-07 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:49:22] Production.INFO: 29 MB #Memory Used# [2025-01-07 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:50:05 [end_date_ymd] => 2025-01-07 00:50:05 [RateCDR] => 1 ) [2025-01-07 00:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:50:05' and `end` < '2025-01-07 00:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:50:19] Production.INFO: count ==155 [2025-01-07 00:50:19] Production.ERROR: pbx CDR StartTime 2025-01-06 21:50:05 - End Time 2025-01-07 00:50:05 [2025-01-07 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191339', 'tblTempUsageDetail_20' ) start [2025-01-07 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191339', 'tblTempUsageDetail_20' ) end [2025-01-07 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191339', 'tblTempVendorCDR_20' ) start [2025-01-07 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191339', 'tblTempVendorCDR_20' ) end [2025-01-07 00:50:19] Production.INFO: ProcessCDR(1,14191339,1,1,2) [2025-01-07 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191339', 'tblTempUsageDetail_20' ) start [2025-01-07 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191339', 'tblTempUsageDetail_20' ) end [2025-01-07 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:50:22] Production.INFO: ==14887== Releasing lock... [2025-01-07 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:50:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:51:05 [end_date_ymd] => 2025-01-07 00:51:05 [RateCDR] => 1 ) [2025-01-07 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:51:05' and `end` < '2025-01-07 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:51:21] Production.INFO: count ==159 [2025-01-07 00:51:21] Production.ERROR: pbx CDR StartTime 2025-01-06 21:51:05 - End Time 2025-01-07 00:51:05 [2025-01-07 00:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191344', 'tblTempUsageDetail_20' ) start [2025-01-07 00:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191344', 'tblTempUsageDetail_20' ) end [2025-01-07 00:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191344', 'tblTempVendorCDR_20' ) start [2025-01-07 00:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191344', 'tblTempVendorCDR_20' ) end [2025-01-07 00:51:21] Production.INFO: ProcessCDR(1,14191344,1,1,2) [2025-01-07 00:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191344', 'tblTempUsageDetail_20' ) start [2025-01-07 00:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191344', 'tblTempUsageDetail_20' ) end [2025-01-07 00:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:51:24] Production.INFO: ==14971== Releasing lock... [2025-01-07 00:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:51:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:52:05 [end_date_ymd] => 2025-01-07 00:52:05 [RateCDR] => 1 ) [2025-01-07 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:52:05' and `end` < '2025-01-07 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:52:18] Production.INFO: count ==159 [2025-01-07 00:52:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:52:05 - End Time 2025-01-07 00:52:05 [2025-01-07 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191349', 'tblTempUsageDetail_20' ) start [2025-01-07 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191349', 'tblTempUsageDetail_20' ) end [2025-01-07 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191349', 'tblTempVendorCDR_20' ) start [2025-01-07 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191349', 'tblTempVendorCDR_20' ) end [2025-01-07 00:52:18] Production.INFO: ProcessCDR(1,14191349,1,1,2) [2025-01-07 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191349', 'tblTempUsageDetail_20' ) start [2025-01-07 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191349', 'tblTempUsageDetail_20' ) end [2025-01-07 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:52:21] Production.INFO: ==15101== Releasing lock... [2025-01-07 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:52:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:53:04 [end_date_ymd] => 2025-01-07 00:53:04 [RateCDR] => 1 ) [2025-01-07 00:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:53:04' and `end` < '2025-01-07 00:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:53:17] Production.INFO: count ==159 [2025-01-07 00:53:17] Production.ERROR: pbx CDR StartTime 2025-01-06 21:53:04 - End Time 2025-01-07 00:53:04 [2025-01-07 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191354', 'tblTempUsageDetail_20' ) start [2025-01-07 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191354', 'tblTempUsageDetail_20' ) end [2025-01-07 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191354', 'tblTempVendorCDR_20' ) start [2025-01-07 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191354', 'tblTempVendorCDR_20' ) end [2025-01-07 00:53:17] Production.INFO: ProcessCDR(1,14191354,1,1,2) [2025-01-07 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191354', 'tblTempUsageDetail_20' ) start [2025-01-07 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191354', 'tblTempUsageDetail_20' ) end [2025-01-07 00:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:53:20] Production.INFO: ==15187== Releasing lock... [2025-01-07 00:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:53:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:54:05 [end_date_ymd] => 2025-01-07 00:54:05 [RateCDR] => 1 ) [2025-01-07 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:54:05' and `end` < '2025-01-07 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:54:19] Production.INFO: count ==159 [2025-01-07 00:54:19] Production.ERROR: pbx CDR StartTime 2025-01-06 21:54:05 - End Time 2025-01-07 00:54:05 [2025-01-07 00:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191359', 'tblTempUsageDetail_20' ) start [2025-01-07 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191359', 'tblTempUsageDetail_20' ) end [2025-01-07 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191359', 'tblTempVendorCDR_20' ) start [2025-01-07 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191359', 'tblTempVendorCDR_20' ) end [2025-01-07 00:54:19] Production.INFO: ProcessCDR(1,14191359,1,1,2) [2025-01-07 00:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191359', 'tblTempUsageDetail_20' ) start [2025-01-07 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191359', 'tblTempUsageDetail_20' ) end [2025-01-07 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:54:22] Production.INFO: ==15280== Releasing lock... [2025-01-07 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:54:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:55:04 [end_date_ymd] => 2025-01-07 00:55:04 [RateCDR] => 1 ) [2025-01-07 00:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:55:04' and `end` < '2025-01-07 00:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:55:18] Production.INFO: count ==156 [2025-01-07 00:55:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:55:04 - End Time 2025-01-07 00:55:04 [2025-01-07 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191364', 'tblTempUsageDetail_20' ) start [2025-01-07 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191364', 'tblTempUsageDetail_20' ) end [2025-01-07 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191364', 'tblTempVendorCDR_20' ) start [2025-01-07 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191364', 'tblTempVendorCDR_20' ) end [2025-01-07 00:55:18] Production.INFO: ProcessCDR(1,14191364,1,1,2) [2025-01-07 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191364', 'tblTempUsageDetail_20' ) start [2025-01-07 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191364', 'tblTempUsageDetail_20' ) end [2025-01-07 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:55:22] Production.INFO: ==15363== Releasing lock... [2025-01-07 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:55:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:56:05 [end_date_ymd] => 2025-01-07 00:56:05 [RateCDR] => 1 ) [2025-01-07 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:56:05' and `end` < '2025-01-07 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:56:19] Production.INFO: count ==154 [2025-01-07 00:56:19] Production.ERROR: pbx CDR StartTime 2025-01-06 21:56:05 - End Time 2025-01-07 00:56:05 [2025-01-07 00:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191369', 'tblTempUsageDetail_20' ) start [2025-01-07 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191369', 'tblTempUsageDetail_20' ) end [2025-01-07 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191369', 'tblTempVendorCDR_20' ) start [2025-01-07 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191369', 'tblTempVendorCDR_20' ) end [2025-01-07 00:56:19] Production.INFO: ProcessCDR(1,14191369,1,1,2) [2025-01-07 00:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191369', 'tblTempUsageDetail_20' ) start [2025-01-07 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191369', 'tblTempUsageDetail_20' ) end [2025-01-07 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:56:22] Production.INFO: ==15459== Releasing lock... [2025-01-07 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:56:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:57:04 [end_date_ymd] => 2025-01-07 00:57:04 [RateCDR] => 1 ) [2025-01-07 00:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:57:04' and `end` < '2025-01-07 00:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:57:17] Production.INFO: count ==154 [2025-01-07 00:57:17] Production.ERROR: pbx CDR StartTime 2025-01-06 21:57:04 - End Time 2025-01-07 00:57:04 [2025-01-07 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191374', 'tblTempUsageDetail_20' ) start [2025-01-07 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191374', 'tblTempUsageDetail_20' ) end [2025-01-07 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191374', 'tblTempVendorCDR_20' ) start [2025-01-07 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191374', 'tblTempVendorCDR_20' ) end [2025-01-07 00:57:17] Production.INFO: ProcessCDR(1,14191374,1,1,2) [2025-01-07 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191374', 'tblTempUsageDetail_20' ) start [2025-01-07 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191374', 'tblTempUsageDetail_20' ) end [2025-01-07 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:57:22] Production.INFO: ==15547== Releasing lock... [2025-01-07 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:57:22] Production.INFO: 29 MB #Memory Used# [2025-01-07 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:58:05 [end_date_ymd] => 2025-01-07 00:58:05 [RateCDR] => 1 ) [2025-01-07 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:58:05' and `end` < '2025-01-07 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:58:18] Production.INFO: count ==153 [2025-01-07 00:58:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:58:05 - End Time 2025-01-07 00:58:05 [2025-01-07 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191379', 'tblTempUsageDetail_20' ) start [2025-01-07 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191379', 'tblTempUsageDetail_20' ) end [2025-01-07 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191379', 'tblTempVendorCDR_20' ) start [2025-01-07 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191379', 'tblTempVendorCDR_20' ) end [2025-01-07 00:58:18] Production.INFO: ProcessCDR(1,14191379,1,1,2) [2025-01-07 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191379', 'tblTempUsageDetail_20' ) start [2025-01-07 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191379', 'tblTempUsageDetail_20' ) end [2025-01-07 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:58:21] Production.INFO: ==15642== Releasing lock... [2025-01-07 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:58:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 21:59:05 [end_date_ymd] => 2025-01-07 00:59:05 [RateCDR] => 1 ) [2025-01-07 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 21:59:05' and `end` < '2025-01-07 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 00:59:18] Production.INFO: count ==153 [2025-01-07 00:59:18] Production.ERROR: pbx CDR StartTime 2025-01-06 21:59:05 - End Time 2025-01-07 00:59:05 [2025-01-07 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191384', 'tblTempUsageDetail_20' ) start [2025-01-07 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191384', 'tblTempUsageDetail_20' ) end [2025-01-07 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191384', 'tblTempVendorCDR_20' ) start [2025-01-07 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191384', 'tblTempVendorCDR_20' ) end [2025-01-07 00:59:18] Production.INFO: ProcessCDR(1,14191384,1,1,2) [2025-01-07 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191384', 'tblTempUsageDetail_20' ) start [2025-01-07 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191384', 'tblTempUsageDetail_20' ) end [2025-01-07 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 00:59:21] Production.INFO: ==15736== Releasing lock... [2025-01-07 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 00:59:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:00:05 [end_date_ymd] => 2025-01-07 01:00:05 [RateCDR] => 1 ) [2025-01-07 01:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:00:05' and `end` < '2025-01-07 01:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:00:19] Production.INFO: count ==161 [2025-01-07 01:00:19] Production.ERROR: pbx CDR StartTime 2025-01-06 22:00:05 - End Time 2025-01-07 01:00:05 [2025-01-07 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191390', 'tblTempUsageDetail_20' ) start [2025-01-07 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191390', 'tblTempUsageDetail_20' ) end [2025-01-07 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191390', 'tblTempVendorCDR_20' ) start [2025-01-07 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191390', 'tblTempVendorCDR_20' ) end [2025-01-07 01:00:19] Production.INFO: ProcessCDR(1,14191390,1,1,2) [2025-01-07 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191390', 'tblTempUsageDetail_20' ) start [2025-01-07 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191390', 'tblTempUsageDetail_20' ) end [2025-01-07 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:00:22] Production.INFO: ==15828== Releasing lock... [2025-01-07 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:00:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:01:06 [end_date_ymd] => 2025-01-07 01:01:06 [RateCDR] => 1 ) [2025-01-07 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-01-06 22:01:06' and `end` < '2025-01-07 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-01-07 01:01:20] Production.INFO: count ==171 [2025-01-07 01:01:20] Production.ERROR: pbx CDR StartTime 2025-01-06 22:01:06 - End Time 2025-01-07 01:01:06 [2025-01-07 01:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191395', 'tblTempUsageDetail_20' ) start [2025-01-07 01:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191395', 'tblTempUsageDetail_20' ) end [2025-01-07 01:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191395', 'tblTempVendorCDR_20' ) start [2025-01-07 01:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191395', 'tblTempVendorCDR_20' ) end [2025-01-07 01:01:20] Production.INFO: ProcessCDR(1,14191395,1,1,2) [2025-01-07 01:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191395', 'tblTempUsageDetail_20' ) start [2025-01-07 01:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191395', 'tblTempUsageDetail_20' ) end [2025-01-07 01:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:01:23] Production.INFO: ==15937== Releasing lock... [2025-01-07 01:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:01:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:02:05 [end_date_ymd] => 2025-01-07 01:02:05 [RateCDR] => 1 ) [2025-01-07 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:02:05' and `end` < '2025-01-07 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:02:18] Production.INFO: count ==171 [2025-01-07 01:02:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:02:05 - End Time 2025-01-07 01:02:05 [2025-01-07 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191400', 'tblTempUsageDetail_20' ) start [2025-01-07 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191400', 'tblTempUsageDetail_20' ) end [2025-01-07 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191400', 'tblTempVendorCDR_20' ) start [2025-01-07 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191400', 'tblTempVendorCDR_20' ) end [2025-01-07 01:02:18] Production.INFO: ProcessCDR(1,14191400,1,1,2) [2025-01-07 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191400', 'tblTempUsageDetail_20' ) start [2025-01-07 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191400', 'tblTempUsageDetail_20' ) end [2025-01-07 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:02:21] Production.INFO: ==16040== Releasing lock... [2025-01-07 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:02:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:03:04 [end_date_ymd] => 2025-01-07 01:03:04 [RateCDR] => 1 ) [2025-01-07 01:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:03:04' and `end` < '2025-01-07 01:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:03:19] Production.INFO: count ==165 [2025-01-07 01:03:19] Production.ERROR: pbx CDR StartTime 2025-01-06 22:03:04 - End Time 2025-01-07 01:03:04 [2025-01-07 01:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191405', 'tblTempUsageDetail_20' ) start [2025-01-07 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191405', 'tblTempUsageDetail_20' ) end [2025-01-07 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191405', 'tblTempVendorCDR_20' ) start [2025-01-07 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191405', 'tblTempVendorCDR_20' ) end [2025-01-07 01:03:19] Production.INFO: ProcessCDR(1,14191405,1,1,2) [2025-01-07 01:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191405', 'tblTempUsageDetail_20' ) start [2025-01-07 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191405', 'tblTempUsageDetail_20' ) end [2025-01-07 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:03:22] Production.INFO: ==16136== Releasing lock... [2025-01-07 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:03:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:04:05 [end_date_ymd] => 2025-01-07 01:04:05 [RateCDR] => 1 ) [2025-01-07 01:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:04:05' and `end` < '2025-01-07 01:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:04:18] Production.INFO: count ==162 [2025-01-07 01:04:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:04:05 - End Time 2025-01-07 01:04:05 [2025-01-07 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191410', 'tblTempUsageDetail_20' ) start [2025-01-07 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191410', 'tblTempUsageDetail_20' ) end [2025-01-07 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191410', 'tblTempVendorCDR_20' ) start [2025-01-07 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191410', 'tblTempVendorCDR_20' ) end [2025-01-07 01:04:18] Production.INFO: ProcessCDR(1,14191410,1,1,2) [2025-01-07 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191410', 'tblTempUsageDetail_20' ) start [2025-01-07 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191410', 'tblTempUsageDetail_20' ) end [2025-01-07 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:04:21] Production.INFO: ==16232== Releasing lock... [2025-01-07 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:04:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:05:05 [end_date_ymd] => 2025-01-07 01:05:05 [RateCDR] => 1 ) [2025-01-07 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:05:05' and `end` < '2025-01-07 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:05:20] Production.INFO: count ==163 [2025-01-07 01:05:20] Production.ERROR: pbx CDR StartTime 2025-01-06 22:05:05 - End Time 2025-01-07 01:05:05 [2025-01-07 01:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191415', 'tblTempUsageDetail_20' ) start [2025-01-07 01:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191415', 'tblTempUsageDetail_20' ) end [2025-01-07 01:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191415', 'tblTempVendorCDR_20' ) start [2025-01-07 01:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191415', 'tblTempVendorCDR_20' ) end [2025-01-07 01:05:20] Production.INFO: ProcessCDR(1,14191415,1,1,2) [2025-01-07 01:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191415', 'tblTempUsageDetail_20' ) start [2025-01-07 01:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191415', 'tblTempUsageDetail_20' ) end [2025-01-07 01:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:05:24] Production.INFO: ==16341== Releasing lock... [2025-01-07 01:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:05:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:06:05 [end_date_ymd] => 2025-01-07 01:06:05 [RateCDR] => 1 ) [2025-01-07 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:06:05' and `end` < '2025-01-07 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:06:17] Production.INFO: count ==163 [2025-01-07 01:06:17] Production.ERROR: pbx CDR StartTime 2025-01-06 22:06:05 - End Time 2025-01-07 01:06:05 [2025-01-07 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191420', 'tblTempUsageDetail_20' ) start [2025-01-07 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191420', 'tblTempUsageDetail_20' ) end [2025-01-07 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191420', 'tblTempVendorCDR_20' ) start [2025-01-07 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191420', 'tblTempVendorCDR_20' ) end [2025-01-07 01:06:17] Production.INFO: ProcessCDR(1,14191420,1,1,2) [2025-01-07 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191420', 'tblTempUsageDetail_20' ) start [2025-01-07 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191420', 'tblTempUsageDetail_20' ) end [2025-01-07 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:06:21] Production.INFO: ==16444== Releasing lock... [2025-01-07 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:07:05 [end_date_ymd] => 2025-01-07 01:07:05 [RateCDR] => 1 ) [2025-01-07 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:07:05' and `end` < '2025-01-07 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:07:20] Production.INFO: count ==169 [2025-01-07 01:07:20] Production.ERROR: pbx CDR StartTime 2025-01-06 22:07:05 - End Time 2025-01-07 01:07:05 [2025-01-07 01:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191425', 'tblTempUsageDetail_20' ) start [2025-01-07 01:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191425', 'tblTempUsageDetail_20' ) end [2025-01-07 01:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191425', 'tblTempVendorCDR_20' ) start [2025-01-07 01:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191425', 'tblTempVendorCDR_20' ) end [2025-01-07 01:07:20] Production.INFO: ProcessCDR(1,14191425,1,1,2) [2025-01-07 01:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191425', 'tblTempUsageDetail_20' ) start [2025-01-07 01:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191425', 'tblTempUsageDetail_20' ) end [2025-01-07 01:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:07:23] Production.INFO: ==16543== Releasing lock... [2025-01-07 01:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:07:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:08:05 [end_date_ymd] => 2025-01-07 01:08:05 [RateCDR] => 1 ) [2025-01-07 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:08:05' and `end` < '2025-01-07 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:08:18] Production.INFO: count ==169 [2025-01-07 01:08:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:08:05 - End Time 2025-01-07 01:08:05 [2025-01-07 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191430', 'tblTempUsageDetail_20' ) start [2025-01-07 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191430', 'tblTempUsageDetail_20' ) end [2025-01-07 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191430', 'tblTempVendorCDR_20' ) start [2025-01-07 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191430', 'tblTempVendorCDR_20' ) end [2025-01-07 01:08:18] Production.INFO: ProcessCDR(1,14191430,1,1,2) [2025-01-07 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191430', 'tblTempUsageDetail_20' ) start [2025-01-07 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191430', 'tblTempUsageDetail_20' ) end [2025-01-07 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:08:21] Production.INFO: ==16678== Releasing lock... [2025-01-07 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:09:05 [end_date_ymd] => 2025-01-07 01:09:05 [RateCDR] => 1 ) [2025-01-07 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:09:05' and `end` < '2025-01-07 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:09:19] Production.INFO: count ==169 [2025-01-07 01:09:19] Production.ERROR: pbx CDR StartTime 2025-01-06 22:09:05 - End Time 2025-01-07 01:09:05 [2025-01-07 01:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191435', 'tblTempUsageDetail_20' ) start [2025-01-07 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191435', 'tblTempUsageDetail_20' ) end [2025-01-07 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191435', 'tblTempVendorCDR_20' ) start [2025-01-07 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191435', 'tblTempVendorCDR_20' ) end [2025-01-07 01:09:19] Production.INFO: ProcessCDR(1,14191435,1,1,2) [2025-01-07 01:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191435', 'tblTempUsageDetail_20' ) start [2025-01-07 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191435', 'tblTempUsageDetail_20' ) end [2025-01-07 01:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:09:22] Production.INFO: ==16777== Releasing lock... [2025-01-07 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:09:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:10:06 [end_date_ymd] => 2025-01-07 01:10:06 [RateCDR] => 1 ) [2025-01-07 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:10:06' and `end` < '2025-01-07 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:10:20] Production.INFO: count ==177 [2025-01-07 01:10:20] Production.ERROR: pbx CDR StartTime 2025-01-06 22:10:06 - End Time 2025-01-07 01:10:06 [2025-01-07 01:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191441', 'tblTempUsageDetail_20' ) start [2025-01-07 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191441', 'tblTempUsageDetail_20' ) end [2025-01-07 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191441', 'tblTempVendorCDR_20' ) start [2025-01-07 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191441', 'tblTempVendorCDR_20' ) end [2025-01-07 01:10:20] Production.INFO: ProcessCDR(1,14191441,1,1,2) [2025-01-07 01:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191441', 'tblTempUsageDetail_20' ) start [2025-01-07 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191441', 'tblTempUsageDetail_20' ) end [2025-01-07 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:10:23] Production.INFO: ==16874== Releasing lock... [2025-01-07 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:10:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:11:05 [end_date_ymd] => 2025-01-07 01:11:05 [RateCDR] => 1 ) [2025-01-07 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:11:05' and `end` < '2025-01-07 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:11:18] Production.INFO: count ==181 [2025-01-07 01:11:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:11:05 - End Time 2025-01-07 01:11:05 [2025-01-07 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191446', 'tblTempUsageDetail_20' ) start [2025-01-07 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191446', 'tblTempUsageDetail_20' ) end [2025-01-07 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191446', 'tblTempVendorCDR_20' ) start [2025-01-07 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191446', 'tblTempVendorCDR_20' ) end [2025-01-07 01:11:18] Production.INFO: ProcessCDR(1,14191446,1,1,2) [2025-01-07 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191446', 'tblTempUsageDetail_20' ) start [2025-01-07 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191446', 'tblTempUsageDetail_20' ) end [2025-01-07 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:11:21] Production.INFO: ==16975== Releasing lock... [2025-01-07 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:11:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:12:05 [end_date_ymd] => 2025-01-07 01:12:05 [RateCDR] => 1 ) [2025-01-07 01:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:12:05' and `end` < '2025-01-07 01:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:12:17] Production.INFO: count ==181 [2025-01-07 01:12:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:12:05 - End Time 2025-01-07 01:12:05 [2025-01-07 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191451', 'tblTempUsageDetail_20' ) start [2025-01-07 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191451', 'tblTempUsageDetail_20' ) end [2025-01-07 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191451', 'tblTempVendorCDR_20' ) start [2025-01-07 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191451', 'tblTempVendorCDR_20' ) end [2025-01-07 01:12:18] Production.INFO: ProcessCDR(1,14191451,1,1,2) [2025-01-07 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191451', 'tblTempUsageDetail_20' ) start [2025-01-07 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191451', 'tblTempUsageDetail_20' ) end [2025-01-07 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:12:21] Production.INFO: ==17071== Releasing lock... [2025-01-07 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:12:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:13:05 [end_date_ymd] => 2025-01-07 01:13:05 [RateCDR] => 1 ) [2025-01-07 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:13:05' and `end` < '2025-01-07 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:13:19] Production.INFO: count ==181 [2025-01-07 01:13:19] Production.ERROR: pbx CDR StartTime 2025-01-06 22:13:05 - End Time 2025-01-07 01:13:05 [2025-01-07 01:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191456', 'tblTempUsageDetail_20' ) start [2025-01-07 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191456', 'tblTempUsageDetail_20' ) end [2025-01-07 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191456', 'tblTempVendorCDR_20' ) start [2025-01-07 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191456', 'tblTempVendorCDR_20' ) end [2025-01-07 01:13:19] Production.INFO: ProcessCDR(1,14191456,1,1,2) [2025-01-07 01:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191456', 'tblTempUsageDetail_20' ) start [2025-01-07 01:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191456', 'tblTempUsageDetail_20' ) end [2025-01-07 01:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:13:24] Production.INFO: ==17166== Releasing lock... [2025-01-07 01:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:13:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:14:05 [end_date_ymd] => 2025-01-07 01:14:05 [RateCDR] => 1 ) [2025-01-07 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:14:05' and `end` < '2025-01-07 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:14:18] Production.INFO: count ==176 [2025-01-07 01:14:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:14:05 - End Time 2025-01-07 01:14:05 [2025-01-07 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191461', 'tblTempUsageDetail_20' ) start [2025-01-07 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191461', 'tblTempUsageDetail_20' ) end [2025-01-07 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191461', 'tblTempVendorCDR_20' ) start [2025-01-07 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191461', 'tblTempVendorCDR_20' ) end [2025-01-07 01:14:18] Production.INFO: ProcessCDR(1,14191461,1,1,2) [2025-01-07 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191461', 'tblTempUsageDetail_20' ) start [2025-01-07 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191461', 'tblTempUsageDetail_20' ) end [2025-01-07 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:14:21] Production.INFO: ==17258== Releasing lock... [2025-01-07 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:14:21] Production.INFO: 29 MB #Memory Used# [2025-01-07 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:15:05 [end_date_ymd] => 2025-01-07 01:15:05 [RateCDR] => 1 ) [2025-01-07 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:15:05' and `end` < '2025-01-07 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:15:18] Production.INFO: count ==175 [2025-01-07 01:15:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:15:05 - End Time 2025-01-07 01:15:05 [2025-01-07 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191466', 'tblTempUsageDetail_20' ) start [2025-01-07 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191466', 'tblTempUsageDetail_20' ) end [2025-01-07 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191466', 'tblTempVendorCDR_20' ) start [2025-01-07 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191466', 'tblTempVendorCDR_20' ) end [2025-01-07 01:15:18] Production.INFO: ProcessCDR(1,14191466,1,1,2) [2025-01-07 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191466', 'tblTempUsageDetail_20' ) start [2025-01-07 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191466', 'tblTempUsageDetail_20' ) end [2025-01-07 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:15:22] Production.INFO: ==17348== Releasing lock... [2025-01-07 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:15:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:16:05 [end_date_ymd] => 2025-01-07 01:16:05 [RateCDR] => 1 ) [2025-01-07 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:16:05' and `end` < '2025-01-07 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:16:18] Production.INFO: count ==175 [2025-01-07 01:16:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:16:05 - End Time 2025-01-07 01:16:05 [2025-01-07 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191471', 'tblTempUsageDetail_20' ) start [2025-01-07 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191471', 'tblTempUsageDetail_20' ) end [2025-01-07 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191471', 'tblTempVendorCDR_20' ) start [2025-01-07 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191471', 'tblTempVendorCDR_20' ) end [2025-01-07 01:16:18] Production.INFO: ProcessCDR(1,14191471,1,1,2) [2025-01-07 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191471', 'tblTempUsageDetail_20' ) start [2025-01-07 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191471', 'tblTempUsageDetail_20' ) end [2025-01-07 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:16:21] Production.INFO: ==17443== Releasing lock... [2025-01-07 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:17:05 [end_date_ymd] => 2025-01-07 01:17:05 [RateCDR] => 1 ) [2025-01-07 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:17:05' and `end` < '2025-01-07 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:17:18] Production.INFO: count ==175 [2025-01-07 01:17:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:17:05 - End Time 2025-01-07 01:17:05 [2025-01-07 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191476', 'tblTempUsageDetail_20' ) start [2025-01-07 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191476', 'tblTempUsageDetail_20' ) end [2025-01-07 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191476', 'tblTempVendorCDR_20' ) start [2025-01-07 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191476', 'tblTempVendorCDR_20' ) end [2025-01-07 01:17:18] Production.INFO: ProcessCDR(1,14191476,1,1,2) [2025-01-07 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191476', 'tblTempUsageDetail_20' ) start [2025-01-07 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191476', 'tblTempUsageDetail_20' ) end [2025-01-07 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:17:21] Production.INFO: ==17540== Releasing lock... [2025-01-07 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:17:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:18:05 [end_date_ymd] => 2025-01-07 01:18:05 [RateCDR] => 1 ) [2025-01-07 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:18:05' and `end` < '2025-01-07 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:18:17] Production.INFO: count ==174 [2025-01-07 01:18:17] Production.ERROR: pbx CDR StartTime 2025-01-06 22:18:05 - End Time 2025-01-07 01:18:05 [2025-01-07 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191481', 'tblTempUsageDetail_20' ) start [2025-01-07 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191481', 'tblTempUsageDetail_20' ) end [2025-01-07 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191481', 'tblTempVendorCDR_20' ) start [2025-01-07 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191481', 'tblTempVendorCDR_20' ) end [2025-01-07 01:18:17] Production.INFO: ProcessCDR(1,14191481,1,1,2) [2025-01-07 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191481', 'tblTempUsageDetail_20' ) start [2025-01-07 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191481', 'tblTempUsageDetail_20' ) end [2025-01-07 01:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:18:20] Production.INFO: ==17633== Releasing lock... [2025-01-07 01:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:18:20] Production.INFO: 29 MB #Memory Used# [2025-01-07 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:19:05 [end_date_ymd] => 2025-01-07 01:19:05 [RateCDR] => 1 ) [2025-01-07 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:19:05' and `end` < '2025-01-07 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:19:19] Production.INFO: count ==174 [2025-01-07 01:19:19] Production.ERROR: pbx CDR StartTime 2025-01-06 22:19:05 - End Time 2025-01-07 01:19:05 [2025-01-07 01:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191486', 'tblTempUsageDetail_20' ) start [2025-01-07 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191486', 'tblTempUsageDetail_20' ) end [2025-01-07 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191486', 'tblTempVendorCDR_20' ) start [2025-01-07 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191486', 'tblTempVendorCDR_20' ) end [2025-01-07 01:19:19] Production.INFO: ProcessCDR(1,14191486,1,1,2) [2025-01-07 01:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191486', 'tblTempUsageDetail_20' ) start [2025-01-07 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191486', 'tblTempUsageDetail_20' ) end [2025-01-07 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:19:22] Production.INFO: ==17732== Releasing lock... [2025-01-07 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:19:22] Production.INFO: 29 MB #Memory Used# [2025-01-07 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:20:06 [end_date_ymd] => 2025-01-07 01:20:06 [RateCDR] => 1 ) [2025-01-07 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:20:06' and `end` < '2025-01-07 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:20:20] Production.INFO: count ==180 [2025-01-07 01:20:20] Production.ERROR: pbx CDR StartTime 2025-01-06 22:20:06 - End Time 2025-01-07 01:20:06 [2025-01-07 01:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191492', 'tblTempUsageDetail_20' ) start [2025-01-07 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191492', 'tblTempUsageDetail_20' ) end [2025-01-07 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191492', 'tblTempVendorCDR_20' ) start [2025-01-07 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191492', 'tblTempVendorCDR_20' ) end [2025-01-07 01:20:20] Production.INFO: ProcessCDR(1,14191492,1,1,2) [2025-01-07 01:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191492', 'tblTempUsageDetail_20' ) start [2025-01-07 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191492', 'tblTempUsageDetail_20' ) end [2025-01-07 01:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:20:23] Production.INFO: ==17828== Releasing lock... [2025-01-07 01:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:20:23] Production.INFO: 29 MB #Memory Used# [2025-01-07 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:21:05 [end_date_ymd] => 2025-01-07 01:21:05 [RateCDR] => 1 ) [2025-01-07 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:21:05' and `end` < '2025-01-07 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:21:19] Production.INFO: count ==180 [2025-01-07 01:21:19] Production.ERROR: pbx CDR StartTime 2025-01-06 22:21:05 - End Time 2025-01-07 01:21:05 [2025-01-07 01:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191497', 'tblTempUsageDetail_20' ) start [2025-01-07 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191497', 'tblTempUsageDetail_20' ) end [2025-01-07 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191497', 'tblTempVendorCDR_20' ) start [2025-01-07 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191497', 'tblTempVendorCDR_20' ) end [2025-01-07 01:21:19] Production.INFO: ProcessCDR(1,14191497,1,1,2) [2025-01-07 01:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191497', 'tblTempUsageDetail_20' ) start [2025-01-07 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191497', 'tblTempUsageDetail_20' ) end [2025-01-07 01:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:21:22] Production.INFO: ==17921== Releasing lock... [2025-01-07 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:21:22] Production.INFO: 29 MB #Memory Used# [2025-01-07 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:22:05 [end_date_ymd] => 2025-01-07 01:22:05 [RateCDR] => 1 ) [2025-01-07 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:22:05' and `end` < '2025-01-07 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:22:19] Production.INFO: count ==180 [2025-01-07 01:22:19] Production.ERROR: pbx CDR StartTime 2025-01-06 22:22:05 - End Time 2025-01-07 01:22:05 [2025-01-07 01:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191502', 'tblTempUsageDetail_20' ) start [2025-01-07 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191502', 'tblTempUsageDetail_20' ) end [2025-01-07 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191502', 'tblTempVendorCDR_20' ) start [2025-01-07 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191502', 'tblTempVendorCDR_20' ) end [2025-01-07 01:22:19] Production.INFO: ProcessCDR(1,14191502,1,1,2) [2025-01-07 01:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191502', 'tblTempUsageDetail_20' ) start [2025-01-07 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191502', 'tblTempUsageDetail_20' ) end [2025-01-07 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:22:22] Production.INFO: ==18014== Releasing lock... [2025-01-07 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:22:22] Production.INFO: 29 MB #Memory Used# [2025-01-07 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:23:05 [end_date_ymd] => 2025-01-07 01:23:05 [RateCDR] => 1 ) [2025-01-07 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:23:05' and `end` < '2025-01-07 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:23:18] Production.INFO: count ==180 [2025-01-07 01:23:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:23:05 - End Time 2025-01-07 01:23:05 [2025-01-07 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191507', 'tblTempUsageDetail_20' ) start [2025-01-07 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191507', 'tblTempUsageDetail_20' ) end [2025-01-07 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191507', 'tblTempVendorCDR_20' ) start [2025-01-07 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191507', 'tblTempVendorCDR_20' ) end [2025-01-07 01:23:18] Production.INFO: ProcessCDR(1,14191507,1,1,2) [2025-01-07 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191507', 'tblTempUsageDetail_20' ) start [2025-01-07 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191507', 'tblTempUsageDetail_20' ) end [2025-01-07 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:23:22] Production.INFO: ==18142== Releasing lock... [2025-01-07 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:23:22] Production.INFO: 29 MB #Memory Used# [2025-01-07 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:24:05 [end_date_ymd] => 2025-01-07 01:24:05 [RateCDR] => 1 ) [2025-01-07 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:24:05' and `end` < '2025-01-07 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:24:19] Production.INFO: count ==178 [2025-01-07 01:24:19] Production.ERROR: pbx CDR StartTime 2025-01-06 22:24:05 - End Time 2025-01-07 01:24:05 [2025-01-07 01:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191512', 'tblTempUsageDetail_20' ) start [2025-01-07 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191512', 'tblTempUsageDetail_20' ) end [2025-01-07 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191512', 'tblTempVendorCDR_20' ) start [2025-01-07 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191512', 'tblTempVendorCDR_20' ) end [2025-01-07 01:24:19] Production.INFO: ProcessCDR(1,14191512,1,1,2) [2025-01-07 01:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191512', 'tblTempUsageDetail_20' ) start [2025-01-07 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191512', 'tblTempUsageDetail_20' ) end [2025-01-07 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:24:22] Production.INFO: ==18229== Releasing lock... [2025-01-07 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:24:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:25:04 [end_date_ymd] => 2025-01-07 01:25:04 [RateCDR] => 1 ) [2025-01-07 01:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:25:04' and `end` < '2025-01-07 01:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:25:17] Production.INFO: count ==178 [2025-01-07 01:25:17] Production.ERROR: pbx CDR StartTime 2025-01-06 22:25:04 - End Time 2025-01-07 01:25:04 [2025-01-07 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191517', 'tblTempUsageDetail_20' ) start [2025-01-07 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191517', 'tblTempUsageDetail_20' ) end [2025-01-07 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191517', 'tblTempVendorCDR_20' ) start [2025-01-07 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191517', 'tblTempVendorCDR_20' ) end [2025-01-07 01:25:17] Production.INFO: ProcessCDR(1,14191517,1,1,2) [2025-01-07 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191517', 'tblTempUsageDetail_20' ) start [2025-01-07 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191517', 'tblTempUsageDetail_20' ) end [2025-01-07 01:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:25:20] Production.INFO: ==18309== Releasing lock... [2025-01-07 01:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:25:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:26:05 [end_date_ymd] => 2025-01-07 01:26:05 [RateCDR] => 1 ) [2025-01-07 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:26:05' and `end` < '2025-01-07 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:26:18] Production.INFO: count ==185 [2025-01-07 01:26:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:26:05 - End Time 2025-01-07 01:26:05 [2025-01-07 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191522', 'tblTempUsageDetail_20' ) start [2025-01-07 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191522', 'tblTempUsageDetail_20' ) end [2025-01-07 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191522', 'tblTempVendorCDR_20' ) start [2025-01-07 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191522', 'tblTempVendorCDR_20' ) end [2025-01-07 01:26:18] Production.INFO: ProcessCDR(1,14191522,1,1,2) [2025-01-07 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191522', 'tblTempUsageDetail_20' ) start [2025-01-07 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191522', 'tblTempUsageDetail_20' ) end [2025-01-07 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:26:21] Production.INFO: ==18394== Releasing lock... [2025-01-07 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:27:04 [end_date_ymd] => 2025-01-07 01:27:04 [RateCDR] => 1 ) [2025-01-07 01:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:27:04' and `end` < '2025-01-07 01:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:27:18] Production.INFO: count ==185 [2025-01-07 01:27:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:27:04 - End Time 2025-01-07 01:27:04 [2025-01-07 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191527', 'tblTempUsageDetail_20' ) start [2025-01-07 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191527', 'tblTempUsageDetail_20' ) end [2025-01-07 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191527', 'tblTempVendorCDR_20' ) start [2025-01-07 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191527', 'tblTempVendorCDR_20' ) end [2025-01-07 01:27:18] Production.INFO: ProcessCDR(1,14191527,1,1,2) [2025-01-07 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191527', 'tblTempUsageDetail_20' ) start [2025-01-07 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191527', 'tblTempUsageDetail_20' ) end [2025-01-07 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:27:21] Production.INFO: ==18470== Releasing lock... [2025-01-07 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-07 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:28:05 [end_date_ymd] => 2025-01-07 01:28:05 [RateCDR] => 1 ) [2025-01-07 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:28:05' and `end` < '2025-01-07 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:28:18] Production.INFO: count ==185 [2025-01-07 01:28:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:28:05 - End Time 2025-01-07 01:28:05 [2025-01-07 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191532', 'tblTempUsageDetail_20' ) start [2025-01-07 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191532', 'tblTempUsageDetail_20' ) end [2025-01-07 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191532', 'tblTempVendorCDR_20' ) start [2025-01-07 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191532', 'tblTempVendorCDR_20' ) end [2025-01-07 01:28:18] Production.INFO: ProcessCDR(1,14191532,1,1,2) [2025-01-07 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191532', 'tblTempUsageDetail_20' ) start [2025-01-07 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191532', 'tblTempUsageDetail_20' ) end [2025-01-07 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:28:21] Production.INFO: ==18549== Releasing lock... [2025-01-07 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:29:05 [end_date_ymd] => 2025-01-07 01:29:05 [RateCDR] => 1 ) [2025-01-07 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:29:05' and `end` < '2025-01-07 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:29:19] Production.INFO: count ==183 [2025-01-07 01:29:19] Production.ERROR: pbx CDR StartTime 2025-01-06 22:29:05 - End Time 2025-01-07 01:29:05 [2025-01-07 01:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191537', 'tblTempUsageDetail_20' ) start [2025-01-07 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191537', 'tblTempUsageDetail_20' ) end [2025-01-07 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191537', 'tblTempVendorCDR_20' ) start [2025-01-07 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191537', 'tblTempVendorCDR_20' ) end [2025-01-07 01:29:19] Production.INFO: ProcessCDR(1,14191537,1,1,2) [2025-01-07 01:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191537', 'tblTempUsageDetail_20' ) start [2025-01-07 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191537', 'tblTempUsageDetail_20' ) end [2025-01-07 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:29:22] Production.INFO: ==18622== Releasing lock... [2025-01-07 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:29:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:30:05 [end_date_ymd] => 2025-01-07 01:30:05 [RateCDR] => 1 ) [2025-01-07 01:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:30:05' and `end` < '2025-01-07 01:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:30:18] Production.INFO: count ==185 [2025-01-07 01:30:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:30:05 - End Time 2025-01-07 01:30:05 [2025-01-07 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191542', 'tblTempUsageDetail_20' ) start [2025-01-07 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191542', 'tblTempUsageDetail_20' ) end [2025-01-07 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191542', 'tblTempVendorCDR_20' ) start [2025-01-07 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191542', 'tblTempVendorCDR_20' ) end [2025-01-07 01:30:18] Production.INFO: ProcessCDR(1,14191542,1,1,2) [2025-01-07 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191542', 'tblTempUsageDetail_20' ) start [2025-01-07 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191542', 'tblTempUsageDetail_20' ) end [2025-01-07 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:30:22] Production.INFO: ==18698== Releasing lock... [2025-01-07 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:31:05 [end_date_ymd] => 2025-01-07 01:31:05 [RateCDR] => 1 ) [2025-01-07 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:31:05' and `end` < '2025-01-07 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:31:20] Production.INFO: count ==185 [2025-01-07 01:31:20] Production.ERROR: pbx CDR StartTime 2025-01-06 22:31:05 - End Time 2025-01-07 01:31:05 [2025-01-07 01:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191548', 'tblTempUsageDetail_20' ) start [2025-01-07 01:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191548', 'tblTempUsageDetail_20' ) end [2025-01-07 01:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191548', 'tblTempVendorCDR_20' ) start [2025-01-07 01:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191548', 'tblTempVendorCDR_20' ) end [2025-01-07 01:31:20] Production.INFO: ProcessCDR(1,14191548,1,1,2) [2025-01-07 01:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191548', 'tblTempUsageDetail_20' ) start [2025-01-07 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191548', 'tblTempUsageDetail_20' ) end [2025-01-07 01:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:31:23] Production.INFO: ==18779== Releasing lock... [2025-01-07 01:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:31:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:32:04 [end_date_ymd] => 2025-01-07 01:32:04 [RateCDR] => 1 ) [2025-01-07 01:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:32:04' and `end` < '2025-01-07 01:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:32:17] Production.INFO: count ==185 [2025-01-07 01:32:17] Production.ERROR: pbx CDR StartTime 2025-01-06 22:32:04 - End Time 2025-01-07 01:32:04 [2025-01-07 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191553', 'tblTempUsageDetail_20' ) start [2025-01-07 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191553', 'tblTempUsageDetail_20' ) end [2025-01-07 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191553', 'tblTempVendorCDR_20' ) start [2025-01-07 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191553', 'tblTempVendorCDR_20' ) end [2025-01-07 01:32:17] Production.INFO: ProcessCDR(1,14191553,1,1,2) [2025-01-07 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191553', 'tblTempUsageDetail_20' ) start [2025-01-07 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191553', 'tblTempUsageDetail_20' ) end [2025-01-07 01:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:32:20] Production.INFO: ==18858== Releasing lock... [2025-01-07 01:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:32:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:33:05 [end_date_ymd] => 2025-01-07 01:33:05 [RateCDR] => 1 ) [2025-01-07 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:33:05' and `end` < '2025-01-07 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:33:19] Production.INFO: count ==185 [2025-01-07 01:33:19] Production.ERROR: pbx CDR StartTime 2025-01-06 22:33:05 - End Time 2025-01-07 01:33:05 [2025-01-07 01:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191558', 'tblTempUsageDetail_20' ) start [2025-01-07 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191558', 'tblTempUsageDetail_20' ) end [2025-01-07 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191558', 'tblTempVendorCDR_20' ) start [2025-01-07 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191558', 'tblTempVendorCDR_20' ) end [2025-01-07 01:33:19] Production.INFO: ProcessCDR(1,14191558,1,1,2) [2025-01-07 01:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191558', 'tblTempUsageDetail_20' ) start [2025-01-07 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191558', 'tblTempUsageDetail_20' ) end [2025-01-07 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:33:22] Production.INFO: ==18932== Releasing lock... [2025-01-07 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:33:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:34:05 [end_date_ymd] => 2025-01-07 01:34:05 [RateCDR] => 1 ) [2025-01-07 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:34:05' and `end` < '2025-01-07 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:34:18] Production.INFO: count ==185 [2025-01-07 01:34:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:34:05 - End Time 2025-01-07 01:34:05 [2025-01-07 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191563', 'tblTempUsageDetail_20' ) start [2025-01-07 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191563', 'tblTempUsageDetail_20' ) end [2025-01-07 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191563', 'tblTempVendorCDR_20' ) start [2025-01-07 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191563', 'tblTempVendorCDR_20' ) end [2025-01-07 01:34:18] Production.INFO: ProcessCDR(1,14191563,1,1,2) [2025-01-07 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191563', 'tblTempUsageDetail_20' ) start [2025-01-07 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191563', 'tblTempUsageDetail_20' ) end [2025-01-07 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:34:21] Production.INFO: ==19010== Releasing lock... [2025-01-07 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:34:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:35:04 [end_date_ymd] => 2025-01-07 01:35:04 [RateCDR] => 1 ) [2025-01-07 01:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:35:04' and `end` < '2025-01-07 01:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:35:17] Production.INFO: count ==182 [2025-01-07 01:35:17] Production.ERROR: pbx CDR StartTime 2025-01-06 22:35:04 - End Time 2025-01-07 01:35:04 [2025-01-07 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191568', 'tblTempUsageDetail_20' ) start [2025-01-07 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191568', 'tblTempUsageDetail_20' ) end [2025-01-07 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191568', 'tblTempVendorCDR_20' ) start [2025-01-07 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191568', 'tblTempVendorCDR_20' ) end [2025-01-07 01:35:17] Production.INFO: ProcessCDR(1,14191568,1,1,2) [2025-01-07 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191568', 'tblTempUsageDetail_20' ) start [2025-01-07 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191568', 'tblTempUsageDetail_20' ) end [2025-01-07 01:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:35:20] Production.INFO: ==19082== Releasing lock... [2025-01-07 01:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:35:20] Production.INFO: 29 MB #Memory Used# [2025-01-07 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:36:05 [end_date_ymd] => 2025-01-07 01:36:05 [RateCDR] => 1 ) [2025-01-07 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:36:05' and `end` < '2025-01-07 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:36:19] Production.INFO: count ==180 [2025-01-07 01:36:19] Production.ERROR: pbx CDR StartTime 2025-01-06 22:36:05 - End Time 2025-01-07 01:36:05 [2025-01-07 01:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191573', 'tblTempUsageDetail_20' ) start [2025-01-07 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191573', 'tblTempUsageDetail_20' ) end [2025-01-07 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191573', 'tblTempVendorCDR_20' ) start [2025-01-07 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191573', 'tblTempVendorCDR_20' ) end [2025-01-07 01:36:19] Production.INFO: ProcessCDR(1,14191573,1,1,2) [2025-01-07 01:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191573', 'tblTempUsageDetail_20' ) start [2025-01-07 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191573', 'tblTempUsageDetail_20' ) end [2025-01-07 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:36:22] Production.INFO: ==19155== Releasing lock... [2025-01-07 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:36:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:37:04 [end_date_ymd] => 2025-01-07 01:37:04 [RateCDR] => 1 ) [2025-01-07 01:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:37:04' and `end` < '2025-01-07 01:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:37:17] Production.INFO: count ==179 [2025-01-07 01:37:17] Production.ERROR: pbx CDR StartTime 2025-01-06 22:37:04 - End Time 2025-01-07 01:37:04 [2025-01-07 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191578', 'tblTempUsageDetail_20' ) start [2025-01-07 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191578', 'tblTempUsageDetail_20' ) end [2025-01-07 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191578', 'tblTempVendorCDR_20' ) start [2025-01-07 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191578', 'tblTempVendorCDR_20' ) end [2025-01-07 01:37:17] Production.INFO: ProcessCDR(1,14191578,1,1,2) [2025-01-07 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191578', 'tblTempUsageDetail_20' ) start [2025-01-07 01:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191578', 'tblTempUsageDetail_20' ) end [2025-01-07 01:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:37:20] Production.INFO: ==19226== Releasing lock... [2025-01-07 01:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:37:20] Production.INFO: 29 MB #Memory Used# [2025-01-07 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:38:05 [end_date_ymd] => 2025-01-07 01:38:05 [RateCDR] => 1 ) [2025-01-07 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:38:05' and `end` < '2025-01-07 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:38:19] Production.INFO: count ==180 [2025-01-07 01:38:19] Production.ERROR: pbx CDR StartTime 2025-01-06 22:38:05 - End Time 2025-01-07 01:38:05 [2025-01-07 01:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191583', 'tblTempUsageDetail_20' ) start [2025-01-07 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191583', 'tblTempUsageDetail_20' ) end [2025-01-07 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191583', 'tblTempVendorCDR_20' ) start [2025-01-07 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191583', 'tblTempVendorCDR_20' ) end [2025-01-07 01:38:19] Production.INFO: ProcessCDR(1,14191583,1,1,2) [2025-01-07 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191583', 'tblTempUsageDetail_20' ) start [2025-01-07 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191583', 'tblTempUsageDetail_20' ) end [2025-01-07 01:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:38:23] Production.INFO: ==19298== Releasing lock... [2025-01-07 01:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:38:23] Production.INFO: 29 MB #Memory Used# [2025-01-07 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:39:05 [end_date_ymd] => 2025-01-07 01:39:05 [RateCDR] => 1 ) [2025-01-07 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:39:05' and `end` < '2025-01-07 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:39:22] Production.INFO: count ==181 [2025-01-07 01:39:22] Production.ERROR: pbx CDR StartTime 2025-01-06 22:39:05 - End Time 2025-01-07 01:39:05 [2025-01-07 01:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191588', 'tblTempUsageDetail_20' ) start [2025-01-07 01:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191588', 'tblTempUsageDetail_20' ) end [2025-01-07 01:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191588', 'tblTempVendorCDR_20' ) start [2025-01-07 01:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191588', 'tblTempVendorCDR_20' ) end [2025-01-07 01:39:22] Production.INFO: ProcessCDR(1,14191588,1,1,2) [2025-01-07 01:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191588', 'tblTempUsageDetail_20' ) start [2025-01-07 01:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191588', 'tblTempUsageDetail_20' ) end [2025-01-07 01:39:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:39:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:39:26] Production.INFO: ==19410== Releasing lock... [2025-01-07 01:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:39:26] Production.INFO: 29 MB #Memory Used# [2025-01-07 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:40:05 [end_date_ymd] => 2025-01-07 01:40:05 [RateCDR] => 1 ) [2025-01-07 01:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:40:05' and `end` < '2025-01-07 01:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:40:18] Production.INFO: count ==190 [2025-01-07 01:40:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:40:05 - End Time 2025-01-07 01:40:05 [2025-01-07 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191594', 'tblTempUsageDetail_20' ) start [2025-01-07 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191594', 'tblTempUsageDetail_20' ) end [2025-01-07 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191594', 'tblTempVendorCDR_20' ) start [2025-01-07 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191594', 'tblTempVendorCDR_20' ) end [2025-01-07 01:40:18] Production.INFO: ProcessCDR(1,14191594,1,1,2) [2025-01-07 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191594', 'tblTempUsageDetail_20' ) start [2025-01-07 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191594', 'tblTempUsageDetail_20' ) end [2025-01-07 01:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:40:21] Production.INFO: ==19485== Releasing lock... [2025-01-07 01:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:40:21] Production.INFO: 29 MB #Memory Used# [2025-01-07 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:41:05 [end_date_ymd] => 2025-01-07 01:41:05 [RateCDR] => 1 ) [2025-01-07 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:41:05' and `end` < '2025-01-07 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:41:19] Production.INFO: count ==192 [2025-01-07 01:41:19] Production.ERROR: pbx CDR StartTime 2025-01-06 22:41:05 - End Time 2025-01-07 01:41:05 [2025-01-07 01:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191599', 'tblTempUsageDetail_20' ) start [2025-01-07 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191599', 'tblTempUsageDetail_20' ) end [2025-01-07 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191599', 'tblTempVendorCDR_20' ) start [2025-01-07 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191599', 'tblTempVendorCDR_20' ) end [2025-01-07 01:41:19] Production.INFO: ProcessCDR(1,14191599,1,1,2) [2025-01-07 01:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191599', 'tblTempUsageDetail_20' ) start [2025-01-07 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191599', 'tblTempUsageDetail_20' ) end [2025-01-07 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:41:22] Production.INFO: ==19562== Releasing lock... [2025-01-07 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:41:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:42:05 [end_date_ymd] => 2025-01-07 01:42:05 [RateCDR] => 1 ) [2025-01-07 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:42:05' and `end` < '2025-01-07 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:42:19] Production.INFO: count ==192 [2025-01-07 01:42:19] Production.ERROR: pbx CDR StartTime 2025-01-06 22:42:05 - End Time 2025-01-07 01:42:05 [2025-01-07 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191604', 'tblTempUsageDetail_20' ) start [2025-01-07 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191604', 'tblTempUsageDetail_20' ) end [2025-01-07 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191604', 'tblTempVendorCDR_20' ) start [2025-01-07 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191604', 'tblTempVendorCDR_20' ) end [2025-01-07 01:42:19] Production.INFO: ProcessCDR(1,14191604,1,1,2) [2025-01-07 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191604', 'tblTempUsageDetail_20' ) start [2025-01-07 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191604', 'tblTempUsageDetail_20' ) end [2025-01-07 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:42:22] Production.INFO: ==19633== Releasing lock... [2025-01-07 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:42:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:43:05 [end_date_ymd] => 2025-01-07 01:43:05 [RateCDR] => 1 ) [2025-01-07 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:43:05' and `end` < '2025-01-07 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:43:17] Production.INFO: count ==192 [2025-01-07 01:43:17] Production.ERROR: pbx CDR StartTime 2025-01-06 22:43:05 - End Time 2025-01-07 01:43:05 [2025-01-07 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191609', 'tblTempUsageDetail_20' ) start [2025-01-07 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191609', 'tblTempUsageDetail_20' ) end [2025-01-07 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191609', 'tblTempVendorCDR_20' ) start [2025-01-07 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191609', 'tblTempVendorCDR_20' ) end [2025-01-07 01:43:17] Production.INFO: ProcessCDR(1,14191609,1,1,2) [2025-01-07 01:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191609', 'tblTempUsageDetail_20' ) start [2025-01-07 01:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191609', 'tblTempUsageDetail_20' ) end [2025-01-07 01:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:43:20] Production.INFO: ==19703== Releasing lock... [2025-01-07 01:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:43:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:44:05 [end_date_ymd] => 2025-01-07 01:44:05 [RateCDR] => 1 ) [2025-01-07 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:44:05' and `end` < '2025-01-07 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:44:17] Production.INFO: count ==192 [2025-01-07 01:44:17] Production.ERROR: pbx CDR StartTime 2025-01-06 22:44:05 - End Time 2025-01-07 01:44:05 [2025-01-07 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191614', 'tblTempUsageDetail_20' ) start [2025-01-07 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191614', 'tblTempUsageDetail_20' ) end [2025-01-07 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191614', 'tblTempVendorCDR_20' ) start [2025-01-07 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191614', 'tblTempVendorCDR_20' ) end [2025-01-07 01:44:17] Production.INFO: ProcessCDR(1,14191614,1,1,2) [2025-01-07 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191614', 'tblTempUsageDetail_20' ) start [2025-01-07 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191614', 'tblTempUsageDetail_20' ) end [2025-01-07 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:44:21] Production.INFO: ==19774== Releasing lock... [2025-01-07 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:45:05 [end_date_ymd] => 2025-01-07 01:45:05 [RateCDR] => 1 ) [2025-01-07 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:45:05' and `end` < '2025-01-07 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:45:18] Production.INFO: count ==192 [2025-01-07 01:45:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:45:05 - End Time 2025-01-07 01:45:05 [2025-01-07 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191619', 'tblTempUsageDetail_20' ) start [2025-01-07 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191619', 'tblTempUsageDetail_20' ) end [2025-01-07 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191619', 'tblTempVendorCDR_20' ) start [2025-01-07 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191619', 'tblTempVendorCDR_20' ) end [2025-01-07 01:45:18] Production.INFO: ProcessCDR(1,14191619,1,1,2) [2025-01-07 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191619', 'tblTempUsageDetail_20' ) start [2025-01-07 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191619', 'tblTempUsageDetail_20' ) end [2025-01-07 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:45:21] Production.INFO: ==19855== Releasing lock... [2025-01-07 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:45:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:46:05 [end_date_ymd] => 2025-01-07 01:46:05 [RateCDR] => 1 ) [2025-01-07 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:46:05' and `end` < '2025-01-07 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:46:18] Production.INFO: count ==191 [2025-01-07 01:46:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:46:05 - End Time 2025-01-07 01:46:05 [2025-01-07 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191624', 'tblTempUsageDetail_20' ) start [2025-01-07 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191624', 'tblTempUsageDetail_20' ) end [2025-01-07 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191624', 'tblTempVendorCDR_20' ) start [2025-01-07 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191624', 'tblTempVendorCDR_20' ) end [2025-01-07 01:46:18] Production.INFO: ProcessCDR(1,14191624,1,1,2) [2025-01-07 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191624', 'tblTempUsageDetail_20' ) start [2025-01-07 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191624', 'tblTempUsageDetail_20' ) end [2025-01-07 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:46:22] Production.INFO: ==19932== Releasing lock... [2025-01-07 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:46:22] Production.INFO: 29 MB #Memory Used# [2025-01-07 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:47:05 [end_date_ymd] => 2025-01-07 01:47:05 [RateCDR] => 1 ) [2025-01-07 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:47:05' and `end` < '2025-01-07 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:47:17] Production.INFO: count ==192 [2025-01-07 01:47:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:47:05 - End Time 2025-01-07 01:47:05 [2025-01-07 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191629', 'tblTempUsageDetail_20' ) start [2025-01-07 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191629', 'tblTempUsageDetail_20' ) end [2025-01-07 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191629', 'tblTempVendorCDR_20' ) start [2025-01-07 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191629', 'tblTempVendorCDR_20' ) end [2025-01-07 01:47:18] Production.INFO: ProcessCDR(1,14191629,1,1,2) [2025-01-07 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191629', 'tblTempUsageDetail_20' ) start [2025-01-07 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191629', 'tblTempUsageDetail_20' ) end [2025-01-07 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:47:22] Production.INFO: ==20003== Releasing lock... [2025-01-07 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:47:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:48:05 [end_date_ymd] => 2025-01-07 01:48:05 [RateCDR] => 1 ) [2025-01-07 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:48:05' and `end` < '2025-01-07 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:48:18] Production.INFO: count ==192 [2025-01-07 01:48:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:48:05 - End Time 2025-01-07 01:48:05 [2025-01-07 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191630', 'tblTempUsageDetail_20' ) start [2025-01-07 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191630', 'tblTempUsageDetail_20' ) end [2025-01-07 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191630', 'tblTempVendorCDR_20' ) start [2025-01-07 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191630', 'tblTempVendorCDR_20' ) end [2025-01-07 01:48:18] Production.INFO: ProcessCDR(1,14191630,1,1,2) [2025-01-07 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191630', 'tblTempUsageDetail_20' ) start [2025-01-07 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191630', 'tblTempUsageDetail_20' ) end [2025-01-07 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:48:21] Production.INFO: ==20075== Releasing lock... [2025-01-07 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:49:04 [end_date_ymd] => 2025-01-07 01:49:04 [RateCDR] => 1 ) [2025-01-07 01:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:49:04' and `end` < '2025-01-07 01:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:49:17] Production.INFO: count ==195 [2025-01-07 01:49:17] Production.ERROR: pbx CDR StartTime 2025-01-06 22:49:04 - End Time 2025-01-07 01:49:04 [2025-01-07 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191639', 'tblTempUsageDetail_20' ) start [2025-01-07 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191639', 'tblTempUsageDetail_20' ) end [2025-01-07 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191639', 'tblTempVendorCDR_20' ) start [2025-01-07 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191639', 'tblTempVendorCDR_20' ) end [2025-01-07 01:49:17] Production.INFO: ProcessCDR(1,14191639,1,1,2) [2025-01-07 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191639', 'tblTempUsageDetail_20' ) start [2025-01-07 01:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191639', 'tblTempUsageDetail_20' ) end [2025-01-07 01:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:49:20] Production.INFO: ==20150== Releasing lock... [2025-01-07 01:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:49:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:50:06 [end_date_ymd] => 2025-01-07 01:50:06 [RateCDR] => 1 ) [2025-01-07 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:50:06' and `end` < '2025-01-07 01:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:50:19] Production.INFO: count ==209 [2025-01-07 01:50:19] Production.ERROR: pbx CDR StartTime 2025-01-06 22:50:06 - End Time 2025-01-07 01:50:06 [2025-01-07 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191645', 'tblTempUsageDetail_20' ) start [2025-01-07 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191645', 'tblTempUsageDetail_20' ) end [2025-01-07 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191645', 'tblTempVendorCDR_20' ) start [2025-01-07 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191645', 'tblTempVendorCDR_20' ) end [2025-01-07 01:50:19] Production.INFO: ProcessCDR(1,14191645,1,1,2) [2025-01-07 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191645', 'tblTempUsageDetail_20' ) start [2025-01-07 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191645', 'tblTempUsageDetail_20' ) end [2025-01-07 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:50:22] Production.INFO: ==20224== Releasing lock... [2025-01-07 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:50:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-07 01:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:51:04 [end_date_ymd] => 2025-01-07 01:51:04 [RateCDR] => 1 ) [2025-01-07 01:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:51:04' and `end` < '2025-01-07 01:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:51:18] Production.INFO: count ==217 [2025-01-07 01:51:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:51:04 - End Time 2025-01-07 01:51:04 [2025-01-07 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191650', 'tblTempUsageDetail_20' ) start [2025-01-07 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191650', 'tblTempUsageDetail_20' ) end [2025-01-07 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191650', 'tblTempVendorCDR_20' ) start [2025-01-07 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191650', 'tblTempVendorCDR_20' ) end [2025-01-07 01:51:18] Production.INFO: ProcessCDR(1,14191650,1,1,2) [2025-01-07 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191650', 'tblTempUsageDetail_20' ) start [2025-01-07 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191650', 'tblTempUsageDetail_20' ) end [2025-01-07 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:51:21] Production.INFO: ==20295== Releasing lock... [2025-01-07 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:51:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-07 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:52:05 [end_date_ymd] => 2025-01-07 01:52:05 [RateCDR] => 1 ) [2025-01-07 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:52:05' and `end` < '2025-01-07 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:52:18] Production.INFO: count ==217 [2025-01-07 01:52:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:52:05 - End Time 2025-01-07 01:52:05 [2025-01-07 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191655', 'tblTempUsageDetail_20' ) start [2025-01-07 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191655', 'tblTempUsageDetail_20' ) end [2025-01-07 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191655', 'tblTempVendorCDR_20' ) start [2025-01-07 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191655', 'tblTempVendorCDR_20' ) end [2025-01-07 01:52:18] Production.INFO: ProcessCDR(1,14191655,1,1,2) [2025-01-07 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191655', 'tblTempUsageDetail_20' ) start [2025-01-07 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191655', 'tblTempUsageDetail_20' ) end [2025-01-07 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:52:21] Production.INFO: ==20365== Releasing lock... [2025-01-07 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:52:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-07 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:53:05 [end_date_ymd] => 2025-01-07 01:53:05 [RateCDR] => 1 ) [2025-01-07 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:53:05' and `end` < '2025-01-07 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:53:18] Production.INFO: count ==217 [2025-01-07 01:53:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:53:05 - End Time 2025-01-07 01:53:05 [2025-01-07 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191660', 'tblTempUsageDetail_20' ) start [2025-01-07 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191660', 'tblTempUsageDetail_20' ) end [2025-01-07 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191660', 'tblTempVendorCDR_20' ) start [2025-01-07 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191660', 'tblTempVendorCDR_20' ) end [2025-01-07 01:53:18] Production.INFO: ProcessCDR(1,14191660,1,1,2) [2025-01-07 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191660', 'tblTempUsageDetail_20' ) start [2025-01-07 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191660', 'tblTempUsageDetail_20' ) end [2025-01-07 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:53:21] Production.INFO: ==20435== Releasing lock... [2025-01-07 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-07 01:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:54:04 [end_date_ymd] => 2025-01-07 01:54:04 [RateCDR] => 1 ) [2025-01-07 01:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:54:04' and `end` < '2025-01-07 01:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:54:18] Production.INFO: count ==217 [2025-01-07 01:54:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:54:04 - End Time 2025-01-07 01:54:04 [2025-01-07 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191665', 'tblTempUsageDetail_20' ) start [2025-01-07 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191665', 'tblTempUsageDetail_20' ) end [2025-01-07 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191665', 'tblTempVendorCDR_20' ) start [2025-01-07 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191665', 'tblTempVendorCDR_20' ) end [2025-01-07 01:54:18] Production.INFO: ProcessCDR(1,14191665,1,1,2) [2025-01-07 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191665', 'tblTempUsageDetail_20' ) start [2025-01-07 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191665', 'tblTempUsageDetail_20' ) end [2025-01-07 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:54:21] Production.INFO: ==20505== Releasing lock... [2025-01-07 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:54:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-07 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:55:05 [end_date_ymd] => 2025-01-07 01:55:05 [RateCDR] => 1 ) [2025-01-07 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:55:05' and `end` < '2025-01-07 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:55:19] Production.INFO: count ==217 [2025-01-07 01:55:19] Production.ERROR: pbx CDR StartTime 2025-01-06 22:55:05 - End Time 2025-01-07 01:55:05 [2025-01-07 01:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191670', 'tblTempUsageDetail_20' ) start [2025-01-07 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191670', 'tblTempUsageDetail_20' ) end [2025-01-07 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191670', 'tblTempVendorCDR_20' ) start [2025-01-07 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191670', 'tblTempVendorCDR_20' ) end [2025-01-07 01:55:19] Production.INFO: ProcessCDR(1,14191670,1,1,2) [2025-01-07 01:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191670', 'tblTempUsageDetail_20' ) start [2025-01-07 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191670', 'tblTempUsageDetail_20' ) end [2025-01-07 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:55:22] Production.INFO: ==20613== Releasing lock... [2025-01-07 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:55:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-07 01:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:56:04 [end_date_ymd] => 2025-01-07 01:56:04 [RateCDR] => 1 ) [2025-01-07 01:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:56:04' and `end` < '2025-01-07 01:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:56:18] Production.INFO: count ==217 [2025-01-07 01:56:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:56:04 - End Time 2025-01-07 01:56:04 [2025-01-07 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191675', 'tblTempUsageDetail_20' ) start [2025-01-07 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191675', 'tblTempUsageDetail_20' ) end [2025-01-07 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191675', 'tblTempVendorCDR_20' ) start [2025-01-07 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191675', 'tblTempVendorCDR_20' ) end [2025-01-07 01:56:18] Production.INFO: ProcessCDR(1,14191675,1,1,2) [2025-01-07 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191675', 'tblTempUsageDetail_20' ) start [2025-01-07 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191675', 'tblTempUsageDetail_20' ) end [2025-01-07 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:56:21] Production.INFO: ==20685== Releasing lock... [2025-01-07 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:56:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-07 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:57:05 [end_date_ymd] => 2025-01-07 01:57:05 [RateCDR] => 1 ) [2025-01-07 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:57:05' and `end` < '2025-01-07 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:57:19] Production.INFO: count ==217 [2025-01-07 01:57:19] Production.ERROR: pbx CDR StartTime 2025-01-06 22:57:05 - End Time 2025-01-07 01:57:05 [2025-01-07 01:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191680', 'tblTempUsageDetail_20' ) start [2025-01-07 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191680', 'tblTempUsageDetail_20' ) end [2025-01-07 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191680', 'tblTempVendorCDR_20' ) start [2025-01-07 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191680', 'tblTempVendorCDR_20' ) end [2025-01-07 01:57:19] Production.INFO: ProcessCDR(1,14191680,1,1,2) [2025-01-07 01:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191680', 'tblTempUsageDetail_20' ) start [2025-01-07 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191680', 'tblTempUsageDetail_20' ) end [2025-01-07 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:57:22] Production.INFO: ==20765== Releasing lock... [2025-01-07 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:57:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-07 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:58:05 [end_date_ymd] => 2025-01-07 01:58:05 [RateCDR] => 1 ) [2025-01-07 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:58:05' and `end` < '2025-01-07 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:58:18] Production.INFO: count ==215 [2025-01-07 01:58:18] Production.ERROR: pbx CDR StartTime 2025-01-06 22:58:05 - End Time 2025-01-07 01:58:05 [2025-01-07 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191685', 'tblTempUsageDetail_20' ) start [2025-01-07 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191685', 'tblTempUsageDetail_20' ) end [2025-01-07 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191685', 'tblTempVendorCDR_20' ) start [2025-01-07 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191685', 'tblTempVendorCDR_20' ) end [2025-01-07 01:58:18] Production.INFO: ProcessCDR(1,14191685,1,1,2) [2025-01-07 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191685', 'tblTempUsageDetail_20' ) start [2025-01-07 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191685', 'tblTempUsageDetail_20' ) end [2025-01-07 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:58:21] Production.INFO: ==20837== Releasing lock... [2025-01-07 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:58:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-07 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 22:59:05 [end_date_ymd] => 2025-01-07 01:59:05 [RateCDR] => 1 ) [2025-01-07 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 22:59:05' and `end` < '2025-01-07 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 01:59:20] Production.INFO: count ==214 [2025-01-07 01:59:20] Production.ERROR: pbx CDR StartTime 2025-01-06 22:59:05 - End Time 2025-01-07 01:59:05 [2025-01-07 01:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 01:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191690', 'tblTempUsageDetail_20' ) start [2025-01-07 01:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191690', 'tblTempUsageDetail_20' ) end [2025-01-07 01:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191690', 'tblTempVendorCDR_20' ) start [2025-01-07 01:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191690', 'tblTempVendorCDR_20' ) end [2025-01-07 01:59:20] Production.INFO: ProcessCDR(1,14191690,1,1,2) [2025-01-07 01:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 01:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191690', 'tblTempUsageDetail_20' ) start [2025-01-07 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191690', 'tblTempUsageDetail_20' ) end [2025-01-07 01:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 01:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 01:59:23] Production.INFO: ==20910== Releasing lock... [2025-01-07 01:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 01:59:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-07 02:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:00:05 [end_date_ymd] => 2025-01-07 02:00:05 [RateCDR] => 1 ) [2025-01-07 02:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:00:05' and `end` < '2025-01-07 02:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:00:18] Production.INFO: count ==220 [2025-01-07 02:00:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:00:05 - End Time 2025-01-07 02:00:05 [2025-01-07 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191696', 'tblTempUsageDetail_20' ) start [2025-01-07 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191696', 'tblTempUsageDetail_20' ) end [2025-01-07 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191696', 'tblTempVendorCDR_20' ) start [2025-01-07 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191696', 'tblTempVendorCDR_20' ) end [2025-01-07 02:00:18] Production.INFO: ProcessCDR(1,14191696,1,1,2) [2025-01-07 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191696', 'tblTempUsageDetail_20' ) start [2025-01-07 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191696', 'tblTempUsageDetail_20' ) end [2025-01-07 02:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:00:21] Production.INFO: ==20988== Releasing lock... [2025-01-07 02:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:00:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-07 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:01:05 [end_date_ymd] => 2025-01-07 02:01:05 [RateCDR] => 1 ) [2025-01-07 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:01:05' and `end` < '2025-01-07 02:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:01:18] Production.INFO: count ==232 [2025-01-07 02:01:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:01:05 - End Time 2025-01-07 02:01:05 [2025-01-07 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191701', 'tblTempUsageDetail_20' ) start [2025-01-07 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191701', 'tblTempUsageDetail_20' ) end [2025-01-07 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191701', 'tblTempVendorCDR_20' ) start [2025-01-07 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191701', 'tblTempVendorCDR_20' ) end [2025-01-07 02:01:18] Production.INFO: ProcessCDR(1,14191701,1,1,2) [2025-01-07 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191701', 'tblTempUsageDetail_20' ) start [2025-01-07 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191701', 'tblTempUsageDetail_20' ) end [2025-01-07 02:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:01:21] Production.INFO: ==21161== Releasing lock... [2025-01-07 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:01:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:02:05 [end_date_ymd] => 2025-01-07 02:02:05 [RateCDR] => 1 ) [2025-01-07 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:02:05' and `end` < '2025-01-07 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:02:20] Production.INFO: count ==232 [2025-01-07 02:02:20] Production.ERROR: pbx CDR StartTime 2025-01-06 23:02:05 - End Time 2025-01-07 02:02:05 [2025-01-07 02:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191706', 'tblTempUsageDetail_20' ) start [2025-01-07 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191706', 'tblTempUsageDetail_20' ) end [2025-01-07 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191706', 'tblTempVendorCDR_20' ) start [2025-01-07 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191706', 'tblTempVendorCDR_20' ) end [2025-01-07 02:02:20] Production.INFO: ProcessCDR(1,14191706,1,1,2) [2025-01-07 02:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191706', 'tblTempUsageDetail_20' ) start [2025-01-07 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191706', 'tblTempUsageDetail_20' ) end [2025-01-07 02:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:02:23] Production.INFO: ==21232== Releasing lock... [2025-01-07 02:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:02:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:03:05 [end_date_ymd] => 2025-01-07 02:03:05 [RateCDR] => 1 ) [2025-01-07 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:03:05' and `end` < '2025-01-07 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:03:18] Production.INFO: count ==232 [2025-01-07 02:03:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:03:05 - End Time 2025-01-07 02:03:05 [2025-01-07 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191711', 'tblTempUsageDetail_20' ) start [2025-01-07 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191711', 'tblTempUsageDetail_20' ) end [2025-01-07 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191711', 'tblTempVendorCDR_20' ) start [2025-01-07 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191711', 'tblTempVendorCDR_20' ) end [2025-01-07 02:03:18] Production.INFO: ProcessCDR(1,14191711,1,1,2) [2025-01-07 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191711', 'tblTempUsageDetail_20' ) start [2025-01-07 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191711', 'tblTempUsageDetail_20' ) end [2025-01-07 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:03:21] Production.INFO: ==21304== Releasing lock... [2025-01-07 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:03:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:04:05 [end_date_ymd] => 2025-01-07 02:04:05 [RateCDR] => 1 ) [2025-01-07 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:04:05' and `end` < '2025-01-07 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:04:17] Production.INFO: count ==232 [2025-01-07 02:04:17] Production.ERROR: pbx CDR StartTime 2025-01-06 23:04:05 - End Time 2025-01-07 02:04:05 [2025-01-07 02:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191716', 'tblTempUsageDetail_20' ) start [2025-01-07 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191716', 'tblTempUsageDetail_20' ) end [2025-01-07 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191716', 'tblTempVendorCDR_20' ) start [2025-01-07 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191716', 'tblTempVendorCDR_20' ) end [2025-01-07 02:04:17] Production.INFO: ProcessCDR(1,14191716,1,1,2) [2025-01-07 02:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191716', 'tblTempUsageDetail_20' ) start [2025-01-07 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191716', 'tblTempUsageDetail_20' ) end [2025-01-07 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:04:21] Production.INFO: ==21377== Releasing lock... [2025-01-07 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:04:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:05:05 [end_date_ymd] => 2025-01-07 02:05:05 [RateCDR] => 1 ) [2025-01-07 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:05:05' and `end` < '2025-01-07 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:05:19] Production.INFO: count ==233 [2025-01-07 02:05:19] Production.ERROR: pbx CDR StartTime 2025-01-06 23:05:05 - End Time 2025-01-07 02:05:05 [2025-01-07 02:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191721', 'tblTempUsageDetail_20' ) start [2025-01-07 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191721', 'tblTempUsageDetail_20' ) end [2025-01-07 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191721', 'tblTempVendorCDR_20' ) start [2025-01-07 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191721', 'tblTempVendorCDR_20' ) end [2025-01-07 02:05:19] Production.INFO: ProcessCDR(1,14191721,1,1,2) [2025-01-07 02:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191721', 'tblTempUsageDetail_20' ) start [2025-01-07 02:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191721', 'tblTempUsageDetail_20' ) end [2025-01-07 02:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:05:23] Production.INFO: ==21449== Releasing lock... [2025-01-07 02:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:05:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-07 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:06:05 [end_date_ymd] => 2025-01-07 02:06:05 [RateCDR] => 1 ) [2025-01-07 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:06:05' and `end` < '2025-01-07 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:06:19] Production.INFO: count ==233 [2025-01-07 02:06:19] Production.ERROR: pbx CDR StartTime 2025-01-06 23:06:05 - End Time 2025-01-07 02:06:05 [2025-01-07 02:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191726', 'tblTempUsageDetail_20' ) start [2025-01-07 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191726', 'tblTempUsageDetail_20' ) end [2025-01-07 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191726', 'tblTempVendorCDR_20' ) start [2025-01-07 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191726', 'tblTempVendorCDR_20' ) end [2025-01-07 02:06:19] Production.INFO: ProcessCDR(1,14191726,1,1,2) [2025-01-07 02:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191726', 'tblTempUsageDetail_20' ) start [2025-01-07 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191726', 'tblTempUsageDetail_20' ) end [2025-01-07 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:06:22] Production.INFO: ==21520== Releasing lock... [2025-01-07 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:06:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-07 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:07:05 [end_date_ymd] => 2025-01-07 02:07:05 [RateCDR] => 1 ) [2025-01-07 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:07:05' and `end` < '2025-01-07 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:07:18] Production.INFO: count ==233 [2025-01-07 02:07:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:07:05 - End Time 2025-01-07 02:07:05 [2025-01-07 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191731', 'tblTempUsageDetail_20' ) start [2025-01-07 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191731', 'tblTempUsageDetail_20' ) end [2025-01-07 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191731', 'tblTempVendorCDR_20' ) start [2025-01-07 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191731', 'tblTempVendorCDR_20' ) end [2025-01-07 02:07:18] Production.INFO: ProcessCDR(1,14191731,1,1,2) [2025-01-07 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191731', 'tblTempUsageDetail_20' ) start [2025-01-07 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191731', 'tblTempUsageDetail_20' ) end [2025-01-07 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:07:21] Production.INFO: ==21591== Releasing lock... [2025-01-07 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:07:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-07 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:08:05 [end_date_ymd] => 2025-01-07 02:08:05 [RateCDR] => 1 ) [2025-01-07 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:08:05' and `end` < '2025-01-07 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:08:18] Production.INFO: count ==233 [2025-01-07 02:08:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:08:05 - End Time 2025-01-07 02:08:05 [2025-01-07 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191736', 'tblTempUsageDetail_20' ) start [2025-01-07 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191736', 'tblTempUsageDetail_20' ) end [2025-01-07 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191736', 'tblTempVendorCDR_20' ) start [2025-01-07 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191736', 'tblTempVendorCDR_20' ) end [2025-01-07 02:08:18] Production.INFO: ProcessCDR(1,14191736,1,1,2) [2025-01-07 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191736', 'tblTempUsageDetail_20' ) start [2025-01-07 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191736', 'tblTempUsageDetail_20' ) end [2025-01-07 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:08:21] Production.INFO: ==21666== Releasing lock... [2025-01-07 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:08:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-07 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:09:05 [end_date_ymd] => 2025-01-07 02:09:05 [RateCDR] => 1 ) [2025-01-07 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:09:05' and `end` < '2025-01-07 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:09:18] Production.INFO: count ==230 [2025-01-07 02:09:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:09:05 - End Time 2025-01-07 02:09:05 [2025-01-07 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191741', 'tblTempUsageDetail_20' ) start [2025-01-07 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191741', 'tblTempUsageDetail_20' ) end [2025-01-07 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191741', 'tblTempVendorCDR_20' ) start [2025-01-07 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191741', 'tblTempVendorCDR_20' ) end [2025-01-07 02:09:18] Production.INFO: ProcessCDR(1,14191741,1,1,2) [2025-01-07 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191741', 'tblTempUsageDetail_20' ) start [2025-01-07 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191741', 'tblTempUsageDetail_20' ) end [2025-01-07 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:09:21] Production.INFO: ==21741== Releasing lock... [2025-01-07 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:09:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:10:06 [end_date_ymd] => 2025-01-07 02:10:06 [RateCDR] => 1 ) [2025-01-07 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-01-06 23:10:06' and `end` < '2025-01-07 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-01-07 02:10:20] Production.INFO: count ==236 [2025-01-07 02:10:20] Production.ERROR: pbx CDR StartTime 2025-01-06 23:10:06 - End Time 2025-01-07 02:10:06 [2025-01-07 02:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191747', 'tblTempUsageDetail_20' ) start [2025-01-07 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191747', 'tblTempUsageDetail_20' ) end [2025-01-07 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191747', 'tblTempVendorCDR_20' ) start [2025-01-07 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191747', 'tblTempVendorCDR_20' ) end [2025-01-07 02:10:20] Production.INFO: ProcessCDR(1,14191747,1,1,2) [2025-01-07 02:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191747', 'tblTempUsageDetail_20' ) start [2025-01-07 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191747', 'tblTempUsageDetail_20' ) end [2025-01-07 02:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:10:24] Production.INFO: ==21857== Releasing lock... [2025-01-07 02:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:10:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:11:05 [end_date_ymd] => 2025-01-07 02:11:05 [RateCDR] => 1 ) [2025-01-07 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:11:05' and `end` < '2025-01-07 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:11:18] Production.INFO: count ==236 [2025-01-07 02:11:19] Production.ERROR: pbx CDR StartTime 2025-01-06 23:11:05 - End Time 2025-01-07 02:11:05 [2025-01-07 02:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191752', 'tblTempUsageDetail_20' ) start [2025-01-07 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191752', 'tblTempUsageDetail_20' ) end [2025-01-07 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191752', 'tblTempVendorCDR_20' ) start [2025-01-07 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191752', 'tblTempVendorCDR_20' ) end [2025-01-07 02:11:19] Production.INFO: ProcessCDR(1,14191752,1,1,2) [2025-01-07 02:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191752', 'tblTempUsageDetail_20' ) start [2025-01-07 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191752', 'tblTempUsageDetail_20' ) end [2025-01-07 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:11:22] Production.INFO: ==21928== Releasing lock... [2025-01-07 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:11:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:12:05 [end_date_ymd] => 2025-01-07 02:12:05 [RateCDR] => 1 ) [2025-01-07 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:12:05' and `end` < '2025-01-07 02:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:12:18] Production.INFO: count ==233 [2025-01-07 02:12:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:12:05 - End Time 2025-01-07 02:12:05 [2025-01-07 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191757', 'tblTempUsageDetail_20' ) start [2025-01-07 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191757', 'tblTempUsageDetail_20' ) end [2025-01-07 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191757', 'tblTempVendorCDR_20' ) start [2025-01-07 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191757', 'tblTempVendorCDR_20' ) end [2025-01-07 02:12:18] Production.INFO: ProcessCDR(1,14191757,1,1,2) [2025-01-07 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191757', 'tblTempUsageDetail_20' ) start [2025-01-07 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191757', 'tblTempUsageDetail_20' ) end [2025-01-07 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:12:21] Production.INFO: ==22001== Releasing lock... [2025-01-07 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:12:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:13:05 [end_date_ymd] => 2025-01-07 02:13:05 [RateCDR] => 1 ) [2025-01-07 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:13:05' and `end` < '2025-01-07 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:13:20] Production.INFO: count ==233 [2025-01-07 02:13:20] Production.ERROR: pbx CDR StartTime 2025-01-06 23:13:05 - End Time 2025-01-07 02:13:05 [2025-01-07 02:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191762', 'tblTempUsageDetail_20' ) start [2025-01-07 02:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191762', 'tblTempUsageDetail_20' ) end [2025-01-07 02:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191762', 'tblTempVendorCDR_20' ) start [2025-01-07 02:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191762', 'tblTempVendorCDR_20' ) end [2025-01-07 02:13:20] Production.INFO: ProcessCDR(1,14191762,1,1,2) [2025-01-07 02:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191762', 'tblTempUsageDetail_20' ) start [2025-01-07 02:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191762', 'tblTempUsageDetail_20' ) end [2025-01-07 02:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:13:23] Production.INFO: ==22073== Releasing lock... [2025-01-07 02:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:13:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:14:05 [end_date_ymd] => 2025-01-07 02:14:05 [RateCDR] => 1 ) [2025-01-07 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:14:05' and `end` < '2025-01-07 02:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:14:19] Production.INFO: count ==232 [2025-01-07 02:14:19] Production.ERROR: pbx CDR StartTime 2025-01-06 23:14:05 - End Time 2025-01-07 02:14:05 [2025-01-07 02:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191767', 'tblTempUsageDetail_20' ) start [2025-01-07 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191767', 'tblTempUsageDetail_20' ) end [2025-01-07 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191767', 'tblTempVendorCDR_20' ) start [2025-01-07 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191767', 'tblTempVendorCDR_20' ) end [2025-01-07 02:14:19] Production.INFO: ProcessCDR(1,14191767,1,1,2) [2025-01-07 02:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191767', 'tblTempUsageDetail_20' ) start [2025-01-07 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191767', 'tblTempUsageDetail_20' ) end [2025-01-07 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:14:22] Production.INFO: ==22143== Releasing lock... [2025-01-07 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:14:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:15:04 [end_date_ymd] => 2025-01-07 02:15:04 [RateCDR] => 1 ) [2025-01-07 02:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:15:04' and `end` < '2025-01-07 02:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:15:17] Production.INFO: count ==232 [2025-01-07 02:15:17] Production.ERROR: pbx CDR StartTime 2025-01-06 23:15:04 - End Time 2025-01-07 02:15:04 [2025-01-07 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191768', 'tblTempUsageDetail_20' ) start [2025-01-07 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191768', 'tblTempUsageDetail_20' ) end [2025-01-07 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191768', 'tblTempVendorCDR_20' ) start [2025-01-07 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191768', 'tblTempVendorCDR_20' ) end [2025-01-07 02:15:17] Production.INFO: ProcessCDR(1,14191768,1,1,2) [2025-01-07 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191768', 'tblTempUsageDetail_20' ) start [2025-01-07 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191768', 'tblTempUsageDetail_20' ) end [2025-01-07 02:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:15:20] Production.INFO: ==22215== Releasing lock... [2025-01-07 02:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:15:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:16:05 [end_date_ymd] => 2025-01-07 02:16:05 [RateCDR] => 1 ) [2025-01-07 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:16:05' and `end` < '2025-01-07 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:16:18] Production.INFO: count ==226 [2025-01-07 02:16:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:16:05 - End Time 2025-01-07 02:16:05 [2025-01-07 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191777', 'tblTempUsageDetail_20' ) start [2025-01-07 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191777', 'tblTempUsageDetail_20' ) end [2025-01-07 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191777', 'tblTempVendorCDR_20' ) start [2025-01-07 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191777', 'tblTempVendorCDR_20' ) end [2025-01-07 02:16:18] Production.INFO: ProcessCDR(1,14191777,1,1,2) [2025-01-07 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191777', 'tblTempUsageDetail_20' ) start [2025-01-07 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191777', 'tblTempUsageDetail_20' ) end [2025-01-07 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:16:21] Production.INFO: ==22297== Releasing lock... [2025-01-07 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:17:04 [end_date_ymd] => 2025-01-07 02:17:04 [RateCDR] => 1 ) [2025-01-07 02:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:17:04' and `end` < '2025-01-07 02:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:17:17] Production.INFO: count ==226 [2025-01-07 02:17:17] Production.ERROR: pbx CDR StartTime 2025-01-06 23:17:04 - End Time 2025-01-07 02:17:04 [2025-01-07 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191782', 'tblTempUsageDetail_20' ) start [2025-01-07 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191782', 'tblTempUsageDetail_20' ) end [2025-01-07 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191782', 'tblTempVendorCDR_20' ) start [2025-01-07 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191782', 'tblTempVendorCDR_20' ) end [2025-01-07 02:17:17] Production.INFO: ProcessCDR(1,14191782,1,1,2) [2025-01-07 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191782', 'tblTempUsageDetail_20' ) start [2025-01-07 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191782', 'tblTempUsageDetail_20' ) end [2025-01-07 02:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:17:20] Production.INFO: ==22367== Releasing lock... [2025-01-07 02:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:17:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:18:05 [end_date_ymd] => 2025-01-07 02:18:05 [RateCDR] => 1 ) [2025-01-07 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:18:05' and `end` < '2025-01-07 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:18:19] Production.INFO: count ==228 [2025-01-07 02:18:19] Production.ERROR: pbx CDR StartTime 2025-01-06 23:18:05 - End Time 2025-01-07 02:18:05 [2025-01-07 02:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191787', 'tblTempUsageDetail_20' ) start [2025-01-07 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191787', 'tblTempUsageDetail_20' ) end [2025-01-07 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191787', 'tblTempVendorCDR_20' ) start [2025-01-07 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191787', 'tblTempVendorCDR_20' ) end [2025-01-07 02:18:19] Production.INFO: ProcessCDR(1,14191787,1,1,2) [2025-01-07 02:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191787', 'tblTempUsageDetail_20' ) start [2025-01-07 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191787', 'tblTempUsageDetail_20' ) end [2025-01-07 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:18:22] Production.INFO: ==22439== Releasing lock... [2025-01-07 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:18:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:19:05 [end_date_ymd] => 2025-01-07 02:19:05 [RateCDR] => 1 ) [2025-01-07 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:19:05' and `end` < '2025-01-07 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:19:18] Production.INFO: count ==228 [2025-01-07 02:19:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:19:05 - End Time 2025-01-07 02:19:05 [2025-01-07 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191792', 'tblTempUsageDetail_20' ) start [2025-01-07 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191792', 'tblTempUsageDetail_20' ) end [2025-01-07 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191792', 'tblTempVendorCDR_20' ) start [2025-01-07 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191792', 'tblTempVendorCDR_20' ) end [2025-01-07 02:19:18] Production.INFO: ProcessCDR(1,14191792,1,1,2) [2025-01-07 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191792', 'tblTempUsageDetail_20' ) start [2025-01-07 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191792', 'tblTempUsageDetail_20' ) end [2025-01-07 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:19:21] Production.INFO: ==22512== Releasing lock... [2025-01-07 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:19:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:20:06 [end_date_ymd] => 2025-01-07 02:20:06 [RateCDR] => 1 ) [2025-01-07 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:20:06' and `end` < '2025-01-07 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:20:19] Production.INFO: count ==236 [2025-01-07 02:20:19] Production.ERROR: pbx CDR StartTime 2025-01-06 23:20:06 - End Time 2025-01-07 02:20:06 [2025-01-07 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191798', 'tblTempUsageDetail_20' ) start [2025-01-07 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191798', 'tblTempUsageDetail_20' ) end [2025-01-07 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191798', 'tblTempVendorCDR_20' ) start [2025-01-07 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191798', 'tblTempVendorCDR_20' ) end [2025-01-07 02:20:19] Production.INFO: ProcessCDR(1,14191798,1,1,2) [2025-01-07 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191798', 'tblTempUsageDetail_20' ) start [2025-01-07 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191798', 'tblTempUsageDetail_20' ) end [2025-01-07 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:20:23] Production.INFO: ==22587== Releasing lock... [2025-01-07 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:20:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:21:05 [end_date_ymd] => 2025-01-07 02:21:05 [RateCDR] => 1 ) [2025-01-07 02:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:21:05' and `end` < '2025-01-07 02:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:21:20] Production.INFO: count ==237 [2025-01-07 02:21:20] Production.ERROR: pbx CDR StartTime 2025-01-06 23:21:05 - End Time 2025-01-07 02:21:05 [2025-01-07 02:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191803', 'tblTempUsageDetail_20' ) start [2025-01-07 02:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191803', 'tblTempUsageDetail_20' ) end [2025-01-07 02:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191803', 'tblTempVendorCDR_20' ) start [2025-01-07 02:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191803', 'tblTempVendorCDR_20' ) end [2025-01-07 02:21:20] Production.INFO: ProcessCDR(1,14191803,1,1,2) [2025-01-07 02:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191803', 'tblTempUsageDetail_20' ) start [2025-01-07 02:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191803', 'tblTempUsageDetail_20' ) end [2025-01-07 02:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:21:23] Production.INFO: ==22661== Releasing lock... [2025-01-07 02:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:21:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:22:05 [end_date_ymd] => 2025-01-07 02:22:05 [RateCDR] => 1 ) [2025-01-07 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:22:05' and `end` < '2025-01-07 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:22:18] Production.INFO: count ==236 [2025-01-07 02:22:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:22:05 - End Time 2025-01-07 02:22:05 [2025-01-07 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191808', 'tblTempUsageDetail_20' ) start [2025-01-07 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191808', 'tblTempUsageDetail_20' ) end [2025-01-07 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191808', 'tblTempVendorCDR_20' ) start [2025-01-07 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191808', 'tblTempVendorCDR_20' ) end [2025-01-07 02:22:18] Production.INFO: ProcessCDR(1,14191808,1,1,2) [2025-01-07 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191808', 'tblTempUsageDetail_20' ) start [2025-01-07 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191808', 'tblTempUsageDetail_20' ) end [2025-01-07 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:22:21] Production.INFO: ==22734== Releasing lock... [2025-01-07 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:23:05 [end_date_ymd] => 2025-01-07 02:23:05 [RateCDR] => 1 ) [2025-01-07 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-01-06 23:23:05' and `end` < '2025-01-07 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-01-07 02:23:18] Production.INFO: count ==235 [2025-01-07 02:23:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:23:05 - End Time 2025-01-07 02:23:05 [2025-01-07 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191813', 'tblTempUsageDetail_20' ) start [2025-01-07 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191813', 'tblTempUsageDetail_20' ) end [2025-01-07 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191813', 'tblTempVendorCDR_20' ) start [2025-01-07 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191813', 'tblTempVendorCDR_20' ) end [2025-01-07 02:23:18] Production.INFO: ProcessCDR(1,14191813,1,1,2) [2025-01-07 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191813', 'tblTempUsageDetail_20' ) start [2025-01-07 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191813', 'tblTempUsageDetail_20' ) end [2025-01-07 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:23:21] Production.INFO: ==22805== Releasing lock... [2025-01-07 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:23:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:24:05 [end_date_ymd] => 2025-01-07 02:24:05 [RateCDR] => 1 ) [2025-01-07 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:24:05' and `end` < '2025-01-07 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:24:19] Production.INFO: count ==235 [2025-01-07 02:24:19] Production.ERROR: pbx CDR StartTime 2025-01-06 23:24:05 - End Time 2025-01-07 02:24:05 [2025-01-07 02:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191818', 'tblTempUsageDetail_20' ) start [2025-01-07 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191818', 'tblTempUsageDetail_20' ) end [2025-01-07 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191818', 'tblTempVendorCDR_20' ) start [2025-01-07 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191818', 'tblTempVendorCDR_20' ) end [2025-01-07 02:24:19] Production.INFO: ProcessCDR(1,14191818,1,1,2) [2025-01-07 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191818', 'tblTempUsageDetail_20' ) start [2025-01-07 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191818', 'tblTempUsageDetail_20' ) end [2025-01-07 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:24:22] Production.INFO: ==22876== Releasing lock... [2025-01-07 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:24:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:25:06 [end_date_ymd] => 2025-01-07 02:25:06 [RateCDR] => 1 ) [2025-01-07 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-01-06 23:25:06' and `end` < '2025-01-07 02:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:25:19] Production.INFO: count ==234 [2025-01-07 02:25:19] Production.ERROR: pbx CDR StartTime 2025-01-06 23:25:06 - End Time 2025-01-07 02:25:06 [2025-01-07 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191823', 'tblTempUsageDetail_20' ) start [2025-01-07 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191823', 'tblTempUsageDetail_20' ) end [2025-01-07 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191823', 'tblTempVendorCDR_20' ) start [2025-01-07 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191823', 'tblTempVendorCDR_20' ) end [2025-01-07 02:25:19] Production.INFO: ProcessCDR(1,14191823,1,1,2) [2025-01-07 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191823', 'tblTempUsageDetail_20' ) start [2025-01-07 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191823', 'tblTempUsageDetail_20' ) end [2025-01-07 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:25:22] Production.INFO: ==22945== Releasing lock... [2025-01-07 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:25:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:26:05 [end_date_ymd] => 2025-01-07 02:26:05 [RateCDR] => 1 ) [2025-01-07 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:26:05' and `end` < '2025-01-07 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:26:18] Production.INFO: count ==233 [2025-01-07 02:26:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:26:05 - End Time 2025-01-07 02:26:05 [2025-01-07 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191828', 'tblTempUsageDetail_20' ) start [2025-01-07 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191828', 'tblTempUsageDetail_20' ) end [2025-01-07 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191828', 'tblTempVendorCDR_20' ) start [2025-01-07 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191828', 'tblTempVendorCDR_20' ) end [2025-01-07 02:26:18] Production.INFO: ProcessCDR(1,14191828,1,1,2) [2025-01-07 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191828', 'tblTempUsageDetail_20' ) start [2025-01-07 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191828', 'tblTempUsageDetail_20' ) end [2025-01-07 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:26:22] Production.INFO: ==23054== Releasing lock... [2025-01-07 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:26:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:27:06 [end_date_ymd] => 2025-01-07 02:27:06 [RateCDR] => 1 ) [2025-01-07 02:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:27:06' and `end` < '2025-01-07 02:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:27:19] Production.INFO: count ==233 [2025-01-07 02:27:19] Production.ERROR: pbx CDR StartTime 2025-01-06 23:27:06 - End Time 2025-01-07 02:27:06 [2025-01-07 02:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191833', 'tblTempUsageDetail_20' ) start [2025-01-07 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191833', 'tblTempUsageDetail_20' ) end [2025-01-07 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191833', 'tblTempVendorCDR_20' ) start [2025-01-07 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191833', 'tblTempVendorCDR_20' ) end [2025-01-07 02:27:19] Production.INFO: ProcessCDR(1,14191833,1,1,2) [2025-01-07 02:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191833', 'tblTempUsageDetail_20' ) start [2025-01-07 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191833', 'tblTempUsageDetail_20' ) end [2025-01-07 02:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:27:22] Production.INFO: ==23130== Releasing lock... [2025-01-07 02:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:27:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:28:05 [end_date_ymd] => 2025-01-07 02:28:05 [RateCDR] => 1 ) [2025-01-07 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:28:05' and `end` < '2025-01-07 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:28:17] Production.INFO: count ==232 [2025-01-07 02:28:17] Production.ERROR: pbx CDR StartTime 2025-01-06 23:28:05 - End Time 2025-01-07 02:28:05 [2025-01-07 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191838', 'tblTempUsageDetail_20' ) start [2025-01-07 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191838', 'tblTempUsageDetail_20' ) end [2025-01-07 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191838', 'tblTempVendorCDR_20' ) start [2025-01-07 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191838', 'tblTempVendorCDR_20' ) end [2025-01-07 02:28:17] Production.INFO: ProcessCDR(1,14191838,1,1,2) [2025-01-07 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191838', 'tblTempUsageDetail_20' ) start [2025-01-07 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191838', 'tblTempUsageDetail_20' ) end [2025-01-07 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:28:21] Production.INFO: ==23201== Releasing lock... [2025-01-07 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:28:21] Production.INFO: 29 MB #Memory Used# [2025-01-07 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:29:05 [end_date_ymd] => 2025-01-07 02:29:05 [RateCDR] => 1 ) [2025-01-07 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:29:05' and `end` < '2025-01-07 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:29:18] Production.INFO: count ==232 [2025-01-07 02:29:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:29:05 - End Time 2025-01-07 02:29:05 [2025-01-07 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191843', 'tblTempUsageDetail_20' ) start [2025-01-07 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191843', 'tblTempUsageDetail_20' ) end [2025-01-07 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191843', 'tblTempVendorCDR_20' ) start [2025-01-07 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191843', 'tblTempVendorCDR_20' ) end [2025-01-07 02:29:18] Production.INFO: ProcessCDR(1,14191843,1,1,2) [2025-01-07 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191843', 'tblTempUsageDetail_20' ) start [2025-01-07 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191843', 'tblTempUsageDetail_20' ) end [2025-01-07 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:29:21] Production.INFO: ==23274== Releasing lock... [2025-01-07 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:29:21] Production.INFO: 29 MB #Memory Used# [2025-01-07 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:30:05 [end_date_ymd] => 2025-01-07 02:30:05 [RateCDR] => 1 ) [2025-01-07 02:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:30:05' and `end` < '2025-01-07 02:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:30:18] Production.INFO: count ==232 [2025-01-07 02:30:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:30:05 - End Time 2025-01-07 02:30:05 [2025-01-07 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191848', 'tblTempUsageDetail_20' ) start [2025-01-07 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191848', 'tblTempUsageDetail_20' ) end [2025-01-07 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191848', 'tblTempVendorCDR_20' ) start [2025-01-07 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191848', 'tblTempVendorCDR_20' ) end [2025-01-07 02:30:18] Production.INFO: ProcessCDR(1,14191848,1,1,2) [2025-01-07 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191848', 'tblTempUsageDetail_20' ) start [2025-01-07 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191848', 'tblTempUsageDetail_20' ) end [2025-01-07 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:30:21] Production.INFO: ==23347== Releasing lock... [2025-01-07 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:30:21] Production.INFO: 29 MB #Memory Used# [2025-01-07 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:31:05 [end_date_ymd] => 2025-01-07 02:31:05 [RateCDR] => 1 ) [2025-01-07 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:31:05' and `end` < '2025-01-07 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:31:18] Production.INFO: count ==232 [2025-01-07 02:31:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:31:05 - End Time 2025-01-07 02:31:05 [2025-01-07 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191854', 'tblTempUsageDetail_20' ) start [2025-01-07 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191854', 'tblTempUsageDetail_20' ) end [2025-01-07 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191854', 'tblTempVendorCDR_20' ) start [2025-01-07 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191854', 'tblTempVendorCDR_20' ) end [2025-01-07 02:31:18] Production.INFO: ProcessCDR(1,14191854,1,1,2) [2025-01-07 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191854', 'tblTempUsageDetail_20' ) start [2025-01-07 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191854', 'tblTempUsageDetail_20' ) end [2025-01-07 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:31:21] Production.INFO: ==23421== Releasing lock... [2025-01-07 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:31:21] Production.INFO: 29 MB #Memory Used# [2025-01-07 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:32:05 [end_date_ymd] => 2025-01-07 02:32:05 [RateCDR] => 1 ) [2025-01-07 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:32:05' and `end` < '2025-01-07 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:32:19] Production.INFO: count ==229 [2025-01-07 02:32:19] Production.ERROR: pbx CDR StartTime 2025-01-06 23:32:05 - End Time 2025-01-07 02:32:05 [2025-01-07 02:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191859', 'tblTempUsageDetail_20' ) start [2025-01-07 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191859', 'tblTempUsageDetail_20' ) end [2025-01-07 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191859', 'tblTempVendorCDR_20' ) start [2025-01-07 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191859', 'tblTempVendorCDR_20' ) end [2025-01-07 02:32:19] Production.INFO: ProcessCDR(1,14191859,1,1,2) [2025-01-07 02:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191859', 'tblTempUsageDetail_20' ) start [2025-01-07 02:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191859', 'tblTempUsageDetail_20' ) end [2025-01-07 02:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:32:23] Production.INFO: ==23495== Releasing lock... [2025-01-07 02:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:32:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:33:05 [end_date_ymd] => 2025-01-07 02:33:05 [RateCDR] => 1 ) [2025-01-07 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:33:05' and `end` < '2025-01-07 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:33:19] Production.INFO: count ==229 [2025-01-07 02:33:19] Production.ERROR: pbx CDR StartTime 2025-01-06 23:33:05 - End Time 2025-01-07 02:33:05 [2025-01-07 02:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191864', 'tblTempUsageDetail_20' ) start [2025-01-07 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191864', 'tblTempUsageDetail_20' ) end [2025-01-07 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191864', 'tblTempVendorCDR_20' ) start [2025-01-07 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191864', 'tblTempVendorCDR_20' ) end [2025-01-07 02:33:19] Production.INFO: ProcessCDR(1,14191864,1,1,2) [2025-01-07 02:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191864', 'tblTempUsageDetail_20' ) start [2025-01-07 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191864', 'tblTempUsageDetail_20' ) end [2025-01-07 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:33:22] Production.INFO: ==23565== Releasing lock... [2025-01-07 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:33:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:34:05 [end_date_ymd] => 2025-01-07 02:34:05 [RateCDR] => 1 ) [2025-01-07 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:34:05' and `end` < '2025-01-07 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:34:18] Production.INFO: count ==229 [2025-01-07 02:34:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:34:05 - End Time 2025-01-07 02:34:05 [2025-01-07 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191869', 'tblTempUsageDetail_20' ) start [2025-01-07 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191869', 'tblTempUsageDetail_20' ) end [2025-01-07 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191869', 'tblTempVendorCDR_20' ) start [2025-01-07 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191869', 'tblTempVendorCDR_20' ) end [2025-01-07 02:34:18] Production.INFO: ProcessCDR(1,14191869,1,1,2) [2025-01-07 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191869', 'tblTempUsageDetail_20' ) start [2025-01-07 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191869', 'tblTempUsageDetail_20' ) end [2025-01-07 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:34:21] Production.INFO: ==23636== Releasing lock... [2025-01-07 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:34:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:35:04 [end_date_ymd] => 2025-01-07 02:35:04 [RateCDR] => 1 ) [2025-01-07 02:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:35:04' and `end` < '2025-01-07 02:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:35:17] Production.INFO: count ==229 [2025-01-07 02:35:17] Production.ERROR: pbx CDR StartTime 2025-01-06 23:35:04 - End Time 2025-01-07 02:35:04 [2025-01-07 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191874', 'tblTempUsageDetail_20' ) start [2025-01-07 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191874', 'tblTempUsageDetail_20' ) end [2025-01-07 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191874', 'tblTempVendorCDR_20' ) start [2025-01-07 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191874', 'tblTempVendorCDR_20' ) end [2025-01-07 02:35:17] Production.INFO: ProcessCDR(1,14191874,1,1,2) [2025-01-07 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191874', 'tblTempUsageDetail_20' ) start [2025-01-07 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191874', 'tblTempUsageDetail_20' ) end [2025-01-07 02:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:35:20] Production.INFO: ==23711== Releasing lock... [2025-01-07 02:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:35:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:36:05 [end_date_ymd] => 2025-01-07 02:36:05 [RateCDR] => 1 ) [2025-01-07 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:36:05' and `end` < '2025-01-07 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:36:19] Production.INFO: count ==229 [2025-01-07 02:36:19] Production.ERROR: pbx CDR StartTime 2025-01-06 23:36:05 - End Time 2025-01-07 02:36:05 [2025-01-07 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191879', 'tblTempUsageDetail_20' ) start [2025-01-07 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191879', 'tblTempUsageDetail_20' ) end [2025-01-07 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191879', 'tblTempVendorCDR_20' ) start [2025-01-07 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191879', 'tblTempVendorCDR_20' ) end [2025-01-07 02:36:19] Production.INFO: ProcessCDR(1,14191879,1,1,2) [2025-01-07 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191879', 'tblTempUsageDetail_20' ) start [2025-01-07 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191879', 'tblTempUsageDetail_20' ) end [2025-01-07 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:36:22] Production.INFO: ==23781== Releasing lock... [2025-01-07 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:36:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:37:04 [end_date_ymd] => 2025-01-07 02:37:04 [RateCDR] => 1 ) [2025-01-07 02:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:37:04' and `end` < '2025-01-07 02:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:37:17] Production.INFO: count ==229 [2025-01-07 02:37:17] Production.ERROR: pbx CDR StartTime 2025-01-06 23:37:04 - End Time 2025-01-07 02:37:04 [2025-01-07 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191884', 'tblTempUsageDetail_20' ) start [2025-01-07 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191884', 'tblTempUsageDetail_20' ) end [2025-01-07 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191884', 'tblTempVendorCDR_20' ) start [2025-01-07 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191884', 'tblTempVendorCDR_20' ) end [2025-01-07 02:37:17] Production.INFO: ProcessCDR(1,14191884,1,1,2) [2025-01-07 02:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191884', 'tblTempUsageDetail_20' ) start [2025-01-07 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191884', 'tblTempUsageDetail_20' ) end [2025-01-07 02:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:37:20] Production.INFO: ==23851== Releasing lock... [2025-01-07 02:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:37:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:38:05 [end_date_ymd] => 2025-01-07 02:38:05 [RateCDR] => 1 ) [2025-01-07 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:38:05' and `end` < '2025-01-07 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:38:18] Production.INFO: count ==229 [2025-01-07 02:38:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:38:05 - End Time 2025-01-07 02:38:05 [2025-01-07 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191889', 'tblTempUsageDetail_20' ) start [2025-01-07 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191889', 'tblTempUsageDetail_20' ) end [2025-01-07 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191889', 'tblTempVendorCDR_20' ) start [2025-01-07 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191889', 'tblTempVendorCDR_20' ) end [2025-01-07 02:38:18] Production.INFO: ProcessCDR(1,14191889,1,1,2) [2025-01-07 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191889', 'tblTempUsageDetail_20' ) start [2025-01-07 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191889', 'tblTempUsageDetail_20' ) end [2025-01-07 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:38:22] Production.INFO: ==23922== Releasing lock... [2025-01-07 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:38:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:39:04 [end_date_ymd] => 2025-01-07 02:39:04 [RateCDR] => 1 ) [2025-01-07 02:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:39:04' and `end` < '2025-01-07 02:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:39:19] Production.INFO: count ==229 [2025-01-07 02:39:19] Production.ERROR: pbx CDR StartTime 2025-01-06 23:39:04 - End Time 2025-01-07 02:39:04 [2025-01-07 02:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191894', 'tblTempUsageDetail_20' ) start [2025-01-07 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191894', 'tblTempUsageDetail_20' ) end [2025-01-07 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191894', 'tblTempVendorCDR_20' ) start [2025-01-07 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191894', 'tblTempVendorCDR_20' ) end [2025-01-07 02:39:19] Production.INFO: ProcessCDR(1,14191894,1,1,2) [2025-01-07 02:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191894', 'tblTempUsageDetail_20' ) start [2025-01-07 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191894', 'tblTempUsageDetail_20' ) end [2025-01-07 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:39:22] Production.INFO: ==23991== Releasing lock... [2025-01-07 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:39:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:40:06 [end_date_ymd] => 2025-01-07 02:40:06 [RateCDR] => 1 ) [2025-01-07 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:40:06' and `end` < '2025-01-07 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:40:20] Production.INFO: count ==237 [2025-01-07 02:40:20] Production.ERROR: pbx CDR StartTime 2025-01-06 23:40:06 - End Time 2025-01-07 02:40:06 [2025-01-07 02:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191900', 'tblTempUsageDetail_20' ) start [2025-01-07 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191900', 'tblTempUsageDetail_20' ) end [2025-01-07 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191900', 'tblTempVendorCDR_20' ) start [2025-01-07 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191900', 'tblTempVendorCDR_20' ) end [2025-01-07 02:40:20] Production.INFO: ProcessCDR(1,14191900,1,1,2) [2025-01-07 02:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191900', 'tblTempUsageDetail_20' ) start [2025-01-07 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191900', 'tblTempUsageDetail_20' ) end [2025-01-07 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:40:23] Production.INFO: ==24063== Releasing lock... [2025-01-07 02:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:40:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:41:05 [end_date_ymd] => 2025-01-07 02:41:05 [RateCDR] => 1 ) [2025-01-07 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:41:05' and `end` < '2025-01-07 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:41:20] Production.INFO: count ==241 [2025-01-07 02:41:20] Production.ERROR: pbx CDR StartTime 2025-01-06 23:41:05 - End Time 2025-01-07 02:41:05 [2025-01-07 02:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191905', 'tblTempUsageDetail_20' ) start [2025-01-07 02:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191905', 'tblTempUsageDetail_20' ) end [2025-01-07 02:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191905', 'tblTempVendorCDR_20' ) start [2025-01-07 02:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191905', 'tblTempVendorCDR_20' ) end [2025-01-07 02:41:20] Production.INFO: ProcessCDR(1,14191905,1,1,2) [2025-01-07 02:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191905', 'tblTempUsageDetail_20' ) start [2025-01-07 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191905', 'tblTempUsageDetail_20' ) end [2025-01-07 02:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:41:23] Production.INFO: ==24143== Releasing lock... [2025-01-07 02:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:41:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:42:04 [end_date_ymd] => 2025-01-07 02:42:04 [RateCDR] => 1 ) [2025-01-07 02:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:42:04' and `end` < '2025-01-07 02:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:42:17] Production.INFO: count ==241 [2025-01-07 02:42:17] Production.ERROR: pbx CDR StartTime 2025-01-06 23:42:04 - End Time 2025-01-07 02:42:04 [2025-01-07 02:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191910', 'tblTempUsageDetail_20' ) start [2025-01-07 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191910', 'tblTempUsageDetail_20' ) end [2025-01-07 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191910', 'tblTempVendorCDR_20' ) start [2025-01-07 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191910', 'tblTempVendorCDR_20' ) end [2025-01-07 02:42:17] Production.INFO: ProcessCDR(1,14191910,1,1,2) [2025-01-07 02:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191910', 'tblTempUsageDetail_20' ) start [2025-01-07 02:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191910', 'tblTempUsageDetail_20' ) end [2025-01-07 02:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:42:20] Production.INFO: ==24254== Releasing lock... [2025-01-07 02:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:42:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:43:05 [end_date_ymd] => 2025-01-07 02:43:05 [RateCDR] => 1 ) [2025-01-07 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:43:05' and `end` < '2025-01-07 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:43:19] Production.INFO: count ==240 [2025-01-07 02:43:19] Production.ERROR: pbx CDR StartTime 2025-01-06 23:43:05 - End Time 2025-01-07 02:43:05 [2025-01-07 02:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191915', 'tblTempUsageDetail_20' ) start [2025-01-07 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191915', 'tblTempUsageDetail_20' ) end [2025-01-07 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191915', 'tblTempVendorCDR_20' ) start [2025-01-07 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191915', 'tblTempVendorCDR_20' ) end [2025-01-07 02:43:19] Production.INFO: ProcessCDR(1,14191915,1,1,2) [2025-01-07 02:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191915', 'tblTempUsageDetail_20' ) start [2025-01-07 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191915', 'tblTempUsageDetail_20' ) end [2025-01-07 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:43:22] Production.INFO: ==24329== Releasing lock... [2025-01-07 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:43:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:44:05 [end_date_ymd] => 2025-01-07 02:44:05 [RateCDR] => 1 ) [2025-01-07 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:44:05' and `end` < '2025-01-07 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:44:17] Production.INFO: count ==240 [2025-01-07 02:44:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:44:05 - End Time 2025-01-07 02:44:05 [2025-01-07 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191920', 'tblTempUsageDetail_20' ) start [2025-01-07 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191920', 'tblTempUsageDetail_20' ) end [2025-01-07 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191920', 'tblTempVendorCDR_20' ) start [2025-01-07 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191920', 'tblTempVendorCDR_20' ) end [2025-01-07 02:44:18] Production.INFO: ProcessCDR(1,14191920,1,1,2) [2025-01-07 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191920', 'tblTempUsageDetail_20' ) start [2025-01-07 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191920', 'tblTempUsageDetail_20' ) end [2025-01-07 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:44:21] Production.INFO: ==24398== Releasing lock... [2025-01-07 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:45:05 [end_date_ymd] => 2025-01-07 02:45:05 [RateCDR] => 1 ) [2025-01-07 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:45:05' and `end` < '2025-01-07 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:45:18] Production.INFO: count ==240 [2025-01-07 02:45:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:45:05 - End Time 2025-01-07 02:45:05 [2025-01-07 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191925', 'tblTempUsageDetail_20' ) start [2025-01-07 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191925', 'tblTempUsageDetail_20' ) end [2025-01-07 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191925', 'tblTempVendorCDR_20' ) start [2025-01-07 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191925', 'tblTempVendorCDR_20' ) end [2025-01-07 02:45:18] Production.INFO: ProcessCDR(1,14191925,1,1,2) [2025-01-07 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191925', 'tblTempUsageDetail_20' ) start [2025-01-07 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191925', 'tblTempUsageDetail_20' ) end [2025-01-07 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:45:21] Production.INFO: ==24470== Releasing lock... [2025-01-07 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:45:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:46:05 [end_date_ymd] => 2025-01-07 02:46:05 [RateCDR] => 1 ) [2025-01-07 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:46:05' and `end` < '2025-01-07 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:46:18] Production.INFO: count ==240 [2025-01-07 02:46:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:46:05 - End Time 2025-01-07 02:46:05 [2025-01-07 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191930', 'tblTempUsageDetail_20' ) start [2025-01-07 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191930', 'tblTempUsageDetail_20' ) end [2025-01-07 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191930', 'tblTempVendorCDR_20' ) start [2025-01-07 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191930', 'tblTempVendorCDR_20' ) end [2025-01-07 02:46:18] Production.INFO: ProcessCDR(1,14191930,1,1,2) [2025-01-07 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191930', 'tblTempUsageDetail_20' ) start [2025-01-07 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191930', 'tblTempUsageDetail_20' ) end [2025-01-07 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:46:21] Production.INFO: ==24541== Releasing lock... [2025-01-07 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:46:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:47:05 [end_date_ymd] => 2025-01-07 02:47:05 [RateCDR] => 1 ) [2025-01-07 02:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:47:05' and `end` < '2025-01-07 02:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:47:18] Production.INFO: count ==240 [2025-01-07 02:47:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:47:05 - End Time 2025-01-07 02:47:05 [2025-01-07 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191935', 'tblTempUsageDetail_20' ) start [2025-01-07 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191935', 'tblTempUsageDetail_20' ) end [2025-01-07 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191935', 'tblTempVendorCDR_20' ) start [2025-01-07 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191935', 'tblTempVendorCDR_20' ) end [2025-01-07 02:47:18] Production.INFO: ProcessCDR(1,14191935,1,1,2) [2025-01-07 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191935', 'tblTempUsageDetail_20' ) start [2025-01-07 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191935', 'tblTempUsageDetail_20' ) end [2025-01-07 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:47:21] Production.INFO: ==24612== Releasing lock... [2025-01-07 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:47:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:48:05 [end_date_ymd] => 2025-01-07 02:48:05 [RateCDR] => 1 ) [2025-01-07 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:48:05' and `end` < '2025-01-07 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:48:20] Production.INFO: count ==240 [2025-01-07 02:48:20] Production.ERROR: pbx CDR StartTime 2025-01-06 23:48:05 - End Time 2025-01-07 02:48:05 [2025-01-07 02:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191940', 'tblTempUsageDetail_20' ) start [2025-01-07 02:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191940', 'tblTempUsageDetail_20' ) end [2025-01-07 02:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191940', 'tblTempVendorCDR_20' ) start [2025-01-07 02:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191940', 'tblTempVendorCDR_20' ) end [2025-01-07 02:48:20] Production.INFO: ProcessCDR(1,14191940,1,1,2) [2025-01-07 02:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191940', 'tblTempUsageDetail_20' ) start [2025-01-07 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191940', 'tblTempUsageDetail_20' ) end [2025-01-07 02:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:48:23] Production.INFO: ==24704== Releasing lock... [2025-01-07 02:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:48:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:49:05 [end_date_ymd] => 2025-01-07 02:49:05 [RateCDR] => 1 ) [2025-01-07 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:49:05' and `end` < '2025-01-07 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:49:18] Production.INFO: count ==240 [2025-01-07 02:49:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:49:05 - End Time 2025-01-07 02:49:05 [2025-01-07 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191945', 'tblTempUsageDetail_20' ) start [2025-01-07 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191945', 'tblTempUsageDetail_20' ) end [2025-01-07 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191945', 'tblTempVendorCDR_20' ) start [2025-01-07 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191945', 'tblTempVendorCDR_20' ) end [2025-01-07 02:49:18] Production.INFO: ProcessCDR(1,14191945,1,1,2) [2025-01-07 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191945', 'tblTempUsageDetail_20' ) start [2025-01-07 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191945', 'tblTempUsageDetail_20' ) end [2025-01-07 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:49:21] Production.INFO: ==24774== Releasing lock... [2025-01-07 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:49:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:50:05 [end_date_ymd] => 2025-01-07 02:50:05 [RateCDR] => 1 ) [2025-01-07 02:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:50:05' and `end` < '2025-01-07 02:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:50:18] Production.INFO: count ==244 [2025-01-07 02:50:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:50:05 - End Time 2025-01-07 02:50:05 [2025-01-07 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191950', 'tblTempUsageDetail_20' ) start [2025-01-07 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191950', 'tblTempUsageDetail_20' ) end [2025-01-07 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191950', 'tblTempVendorCDR_20' ) start [2025-01-07 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191950', 'tblTempVendorCDR_20' ) end [2025-01-07 02:50:18] Production.INFO: ProcessCDR(1,14191950,1,1,2) [2025-01-07 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191950', 'tblTempUsageDetail_20' ) start [2025-01-07 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191950', 'tblTempUsageDetail_20' ) end [2025-01-07 02:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:50:21] Production.INFO: ==24849== Releasing lock... [2025-01-07 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:50:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:51:04 [end_date_ymd] => 2025-01-07 02:51:04 [RateCDR] => 1 ) [2025-01-07 02:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:51:04' and `end` < '2025-01-07 02:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:51:18] Production.INFO: count ==244 [2025-01-07 02:51:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:51:04 - End Time 2025-01-07 02:51:04 [2025-01-07 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191956', 'tblTempUsageDetail_20' ) start [2025-01-07 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191956', 'tblTempUsageDetail_20' ) end [2025-01-07 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191956', 'tblTempVendorCDR_20' ) start [2025-01-07 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191956', 'tblTempVendorCDR_20' ) end [2025-01-07 02:51:18] Production.INFO: ProcessCDR(1,14191956,1,1,2) [2025-01-07 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191956', 'tblTempUsageDetail_20' ) start [2025-01-07 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191956', 'tblTempUsageDetail_20' ) end [2025-01-07 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:51:21] Production.INFO: ==24924== Releasing lock... [2025-01-07 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:51:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:52:05 [end_date_ymd] => 2025-01-07 02:52:05 [RateCDR] => 1 ) [2025-01-07 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:52:05' and `end` < '2025-01-07 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:52:17] Production.INFO: count ==244 [2025-01-07 02:52:17] Production.ERROR: pbx CDR StartTime 2025-01-06 23:52:05 - End Time 2025-01-07 02:52:05 [2025-01-07 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191961', 'tblTempUsageDetail_20' ) start [2025-01-07 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191961', 'tblTempUsageDetail_20' ) end [2025-01-07 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191961', 'tblTempVendorCDR_20' ) start [2025-01-07 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191961', 'tblTempVendorCDR_20' ) end [2025-01-07 02:52:18] Production.INFO: ProcessCDR(1,14191961,1,1,2) [2025-01-07 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191961', 'tblTempUsageDetail_20' ) start [2025-01-07 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191961', 'tblTempUsageDetail_20' ) end [2025-01-07 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:52:21] Production.INFO: ==24998== Releasing lock... [2025-01-07 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:52:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:53:04 [end_date_ymd] => 2025-01-07 02:53:04 [RateCDR] => 1 ) [2025-01-07 02:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:53:04' and `end` < '2025-01-07 02:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:53:17] Production.INFO: count ==244 [2025-01-07 02:53:17] Production.ERROR: pbx CDR StartTime 2025-01-06 23:53:04 - End Time 2025-01-07 02:53:04 [2025-01-07 02:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191966', 'tblTempUsageDetail_20' ) start [2025-01-07 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191966', 'tblTempUsageDetail_20' ) end [2025-01-07 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191966', 'tblTempVendorCDR_20' ) start [2025-01-07 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191966', 'tblTempVendorCDR_20' ) end [2025-01-07 02:53:17] Production.INFO: ProcessCDR(1,14191966,1,1,2) [2025-01-07 02:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191966', 'tblTempUsageDetail_20' ) start [2025-01-07 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191966', 'tblTempUsageDetail_20' ) end [2025-01-07 02:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:53:20] Production.INFO: ==25068== Releasing lock... [2025-01-07 02:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:53:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:54:05 [end_date_ymd] => 2025-01-07 02:54:05 [RateCDR] => 1 ) [2025-01-07 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:54:05' and `end` < '2025-01-07 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:54:18] Production.INFO: count ==244 [2025-01-07 02:54:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:54:05 - End Time 2025-01-07 02:54:05 [2025-01-07 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191971', 'tblTempUsageDetail_20' ) start [2025-01-07 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191971', 'tblTempUsageDetail_20' ) end [2025-01-07 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191971', 'tblTempVendorCDR_20' ) start [2025-01-07 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191971', 'tblTempVendorCDR_20' ) end [2025-01-07 02:54:18] Production.INFO: ProcessCDR(1,14191971,1,1,2) [2025-01-07 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191971', 'tblTempUsageDetail_20' ) start [2025-01-07 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191971', 'tblTempUsageDetail_20' ) end [2025-01-07 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:54:21] Production.INFO: ==25141== Releasing lock... [2025-01-07 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:54:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:55:05 [end_date_ymd] => 2025-01-07 02:55:05 [RateCDR] => 1 ) [2025-01-07 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:55:05' and `end` < '2025-01-07 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:55:18] Production.INFO: count ==244 [2025-01-07 02:55:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:55:05 - End Time 2025-01-07 02:55:05 [2025-01-07 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191976', 'tblTempUsageDetail_20' ) start [2025-01-07 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191976', 'tblTempUsageDetail_20' ) end [2025-01-07 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191976', 'tblTempVendorCDR_20' ) start [2025-01-07 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191976', 'tblTempVendorCDR_20' ) end [2025-01-07 02:55:18] Production.INFO: ProcessCDR(1,14191976,1,1,2) [2025-01-07 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191976', 'tblTempUsageDetail_20' ) start [2025-01-07 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191976', 'tblTempUsageDetail_20' ) end [2025-01-07 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:55:21] Production.INFO: ==25219== Releasing lock... [2025-01-07 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:55:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:56:04 [end_date_ymd] => 2025-01-07 02:56:04 [RateCDR] => 1 ) [2025-01-07 02:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:56:04' and `end` < '2025-01-07 02:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:56:17] Production.INFO: count ==244 [2025-01-07 02:56:17] Production.ERROR: pbx CDR StartTime 2025-01-06 23:56:04 - End Time 2025-01-07 02:56:04 [2025-01-07 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191981', 'tblTempUsageDetail_20' ) start [2025-01-07 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191981', 'tblTempUsageDetail_20' ) end [2025-01-07 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191981', 'tblTempVendorCDR_20' ) start [2025-01-07 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191981', 'tblTempVendorCDR_20' ) end [2025-01-07 02:56:17] Production.INFO: ProcessCDR(1,14191981,1,1,2) [2025-01-07 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191981', 'tblTempUsageDetail_20' ) start [2025-01-07 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191981', 'tblTempUsageDetail_20' ) end [2025-01-07 02:56:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:56:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:56:20] Production.INFO: ==25292== Releasing lock... [2025-01-07 02:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:56:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:57:05 [end_date_ymd] => 2025-01-07 02:57:05 [RateCDR] => 1 ) [2025-01-07 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:57:05' and `end` < '2025-01-07 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:57:18] Production.INFO: count ==244 [2025-01-07 02:57:18] Production.ERROR: pbx CDR StartTime 2025-01-06 23:57:05 - End Time 2025-01-07 02:57:05 [2025-01-07 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191986', 'tblTempUsageDetail_20' ) start [2025-01-07 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191986', 'tblTempUsageDetail_20' ) end [2025-01-07 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191986', 'tblTempVendorCDR_20' ) start [2025-01-07 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191986', 'tblTempVendorCDR_20' ) end [2025-01-07 02:57:18] Production.INFO: ProcessCDR(1,14191986,1,1,2) [2025-01-07 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191986', 'tblTempUsageDetail_20' ) start [2025-01-07 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191986', 'tblTempUsageDetail_20' ) end [2025-01-07 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:57:21] Production.INFO: ==25405== Releasing lock... [2025-01-07 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:57:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:58:05 [end_date_ymd] => 2025-01-07 02:58:05 [RateCDR] => 1 ) [2025-01-07 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:58:05' and `end` < '2025-01-07 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:58:19] Production.INFO: count ==244 [2025-01-07 02:58:19] Production.ERROR: pbx CDR StartTime 2025-01-06 23:58:05 - End Time 2025-01-07 02:58:05 [2025-01-07 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191991', 'tblTempUsageDetail_20' ) start [2025-01-07 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191991', 'tblTempUsageDetail_20' ) end [2025-01-07 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191991', 'tblTempVendorCDR_20' ) start [2025-01-07 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191991', 'tblTempVendorCDR_20' ) end [2025-01-07 02:58:19] Production.INFO: ProcessCDR(1,14191991,1,1,2) [2025-01-07 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191991', 'tblTempUsageDetail_20' ) start [2025-01-07 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191991', 'tblTempUsageDetail_20' ) end [2025-01-07 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:58:22] Production.INFO: ==25484== Releasing lock... [2025-01-07 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:58:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 23:59:05 [end_date_ymd] => 2025-01-07 02:59:05 [RateCDR] => 1 ) [2025-01-07 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 23:59:05' and `end` < '2025-01-07 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 02:59:17] Production.INFO: count ==244 [2025-01-07 02:59:17] Production.ERROR: pbx CDR StartTime 2025-01-06 23:59:05 - End Time 2025-01-07 02:59:05 [2025-01-07 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191996', 'tblTempUsageDetail_20' ) start [2025-01-07 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191996', 'tblTempUsageDetail_20' ) end [2025-01-07 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191996', 'tblTempVendorCDR_20' ) start [2025-01-07 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191996', 'tblTempVendorCDR_20' ) end [2025-01-07 02:59:17] Production.INFO: ProcessCDR(1,14191996,1,1,2) [2025-01-07 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 02:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191996', 'tblTempUsageDetail_20' ) start [2025-01-07 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191996', 'tblTempUsageDetail_20' ) end [2025-01-07 02:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 02:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 02:59:20] Production.INFO: ==25561== Releasing lock... [2025-01-07 02:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 02:59:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:00:06 [end_date_ymd] => 2025-01-07 03:00:06 [RateCDR] => 1 ) [2025-01-07 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:00:06' and `end` < '2025-01-07 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:00:20] Production.INFO: count ==246 [2025-01-07 03:00:20] Production.ERROR: pbx CDR StartTime 2025-01-07 00:00:06 - End Time 2025-01-07 03:00:06 [2025-01-07 03:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192002', 'tblTempUsageDetail_20' ) start [2025-01-07 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192002', 'tblTempUsageDetail_20' ) end [2025-01-07 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192002', 'tblTempVendorCDR_20' ) start [2025-01-07 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192002', 'tblTempVendorCDR_20' ) end [2025-01-07 03:00:20] Production.INFO: ProcessCDR(1,14192002,1,1,2) [2025-01-07 03:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192002', 'tblTempUsageDetail_20' ) start [2025-01-07 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192002', 'tblTempUsageDetail_20' ) end [2025-01-07 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:00:23] Production.INFO: ==25646== Releasing lock... [2025-01-07 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:00:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 03:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:01:04 [end_date_ymd] => 2025-01-07 03:01:04 [RateCDR] => 1 ) [2025-01-07 03:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:01:04' and `end` < '2025-01-07 03:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:01:17] Production.INFO: count ==246 [2025-01-07 03:01:17] Production.ERROR: pbx CDR StartTime 2025-01-07 00:01:04 - End Time 2025-01-07 03:01:04 [2025-01-07 03:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192007', 'tblTempUsageDetail_20' ) start [2025-01-07 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192007', 'tblTempUsageDetail_20' ) end [2025-01-07 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192007', 'tblTempVendorCDR_20' ) start [2025-01-07 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192007', 'tblTempVendorCDR_20' ) end [2025-01-07 03:01:17] Production.INFO: ProcessCDR(1,14192007,1,1,2) [2025-01-07 03:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192007', 'tblTempUsageDetail_20' ) start [2025-01-07 03:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192007', 'tblTempUsageDetail_20' ) end [2025-01-07 03:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:01:20] Production.INFO: ==25741== Releasing lock... [2025-01-07 03:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:01:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:02:05 [end_date_ymd] => 2025-01-07 03:02:05 [RateCDR] => 1 ) [2025-01-07 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:02:05' and `end` < '2025-01-07 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:02:18] Production.INFO: count ==246 [2025-01-07 03:02:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:02:05 - End Time 2025-01-07 03:02:05 [2025-01-07 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192012', 'tblTempUsageDetail_20' ) start [2025-01-07 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192012', 'tblTempUsageDetail_20' ) end [2025-01-07 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192012', 'tblTempVendorCDR_20' ) start [2025-01-07 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192012', 'tblTempVendorCDR_20' ) end [2025-01-07 03:02:18] Production.INFO: ProcessCDR(1,14192012,1,1,2) [2025-01-07 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192012', 'tblTempUsageDetail_20' ) start [2025-01-07 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192012', 'tblTempUsageDetail_20' ) end [2025-01-07 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:02:21] Production.INFO: ==25896== Releasing lock... [2025-01-07 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:02:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 03:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:03:04 [end_date_ymd] => 2025-01-07 03:03:04 [RateCDR] => 1 ) [2025-01-07 03:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:03:04' and `end` < '2025-01-07 03:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:03:17] Production.INFO: count ==246 [2025-01-07 03:03:17] Production.ERROR: pbx CDR StartTime 2025-01-07 00:03:04 - End Time 2025-01-07 03:03:04 [2025-01-07 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192017', 'tblTempUsageDetail_20' ) start [2025-01-07 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192017', 'tblTempUsageDetail_20' ) end [2025-01-07 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192017', 'tblTempVendorCDR_20' ) start [2025-01-07 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192017', 'tblTempVendorCDR_20' ) end [2025-01-07 03:03:17] Production.INFO: ProcessCDR(1,14192017,1,1,2) [2025-01-07 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192017', 'tblTempUsageDetail_20' ) start [2025-01-07 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192017', 'tblTempUsageDetail_20' ) end [2025-01-07 03:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:03:20] Production.INFO: ==25976== Releasing lock... [2025-01-07 03:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:03:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:04:05 [end_date_ymd] => 2025-01-07 03:04:05 [RateCDR] => 1 ) [2025-01-07 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:04:05' and `end` < '2025-01-07 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:04:17] Production.INFO: count ==243 [2025-01-07 03:04:17] Production.ERROR: pbx CDR StartTime 2025-01-07 00:04:05 - End Time 2025-01-07 03:04:05 [2025-01-07 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192022', 'tblTempUsageDetail_20' ) start [2025-01-07 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192022', 'tblTempUsageDetail_20' ) end [2025-01-07 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192022', 'tblTempVendorCDR_20' ) start [2025-01-07 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192022', 'tblTempVendorCDR_20' ) end [2025-01-07 03:04:18] Production.INFO: ProcessCDR(1,14192022,1,1,2) [2025-01-07 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192022', 'tblTempUsageDetail_20' ) start [2025-01-07 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192022', 'tblTempUsageDetail_20' ) end [2025-01-07 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:04:21] Production.INFO: ==26056== Releasing lock... [2025-01-07 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:04:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:05:05 [end_date_ymd] => 2025-01-07 03:05:05 [RateCDR] => 1 ) [2025-01-07 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:05:05' and `end` < '2025-01-07 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:05:18] Production.INFO: count ==243 [2025-01-07 03:05:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:05:05 - End Time 2025-01-07 03:05:05 [2025-01-07 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192027', 'tblTempUsageDetail_20' ) start [2025-01-07 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192027', 'tblTempUsageDetail_20' ) end [2025-01-07 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192027', 'tblTempVendorCDR_20' ) start [2025-01-07 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192027', 'tblTempVendorCDR_20' ) end [2025-01-07 03:05:18] Production.INFO: ProcessCDR(1,14192027,1,1,2) [2025-01-07 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192027', 'tblTempUsageDetail_20' ) start [2025-01-07 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192027', 'tblTempUsageDetail_20' ) end [2025-01-07 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:05:22] Production.INFO: ==26174== Releasing lock... [2025-01-07 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:05:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:06:05 [end_date_ymd] => 2025-01-07 03:06:05 [RateCDR] => 1 ) [2025-01-07 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:06:05' and `end` < '2025-01-07 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:06:18] Production.INFO: count ==243 [2025-01-07 03:06:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:06:05 - End Time 2025-01-07 03:06:05 [2025-01-07 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192032', 'tblTempUsageDetail_20' ) start [2025-01-07 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192032', 'tblTempUsageDetail_20' ) end [2025-01-07 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192032', 'tblTempVendorCDR_20' ) start [2025-01-07 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192032', 'tblTempVendorCDR_20' ) end [2025-01-07 03:06:18] Production.INFO: ProcessCDR(1,14192032,1,1,2) [2025-01-07 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192032', 'tblTempUsageDetail_20' ) start [2025-01-07 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192032', 'tblTempUsageDetail_20' ) end [2025-01-07 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:06:21] Production.INFO: ==26295== Releasing lock... [2025-01-07 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:07:05 [end_date_ymd] => 2025-01-07 03:07:05 [RateCDR] => 1 ) [2025-01-07 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:07:05' and `end` < '2025-01-07 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:07:18] Production.INFO: count ==243 [2025-01-07 03:07:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:07:05 - End Time 2025-01-07 03:07:05 [2025-01-07 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192037', 'tblTempUsageDetail_20' ) start [2025-01-07 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192037', 'tblTempUsageDetail_20' ) end [2025-01-07 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192037', 'tblTempVendorCDR_20' ) start [2025-01-07 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192037', 'tblTempVendorCDR_20' ) end [2025-01-07 03:07:18] Production.INFO: ProcessCDR(1,14192037,1,1,2) [2025-01-07 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192037', 'tblTempUsageDetail_20' ) start [2025-01-07 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192037', 'tblTempUsageDetail_20' ) end [2025-01-07 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:07:21] Production.INFO: ==26379== Releasing lock... [2025-01-07 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:07:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:08:05 [end_date_ymd] => 2025-01-07 03:08:05 [RateCDR] => 1 ) [2025-01-07 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:08:05' and `end` < '2025-01-07 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:08:18] Production.INFO: count ==243 [2025-01-07 03:08:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:08:05 - End Time 2025-01-07 03:08:05 [2025-01-07 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192042', 'tblTempUsageDetail_20' ) start [2025-01-07 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192042', 'tblTempUsageDetail_20' ) end [2025-01-07 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192042', 'tblTempVendorCDR_20' ) start [2025-01-07 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192042', 'tblTempVendorCDR_20' ) end [2025-01-07 03:08:18] Production.INFO: ProcessCDR(1,14192042,1,1,2) [2025-01-07 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192042', 'tblTempUsageDetail_20' ) start [2025-01-07 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192042', 'tblTempUsageDetail_20' ) end [2025-01-07 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:08:21] Production.INFO: ==26459== Releasing lock... [2025-01-07 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:09:05 [end_date_ymd] => 2025-01-07 03:09:05 [RateCDR] => 1 ) [2025-01-07 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:09:05' and `end` < '2025-01-07 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:09:19] Production.INFO: count ==243 [2025-01-07 03:09:19] Production.ERROR: pbx CDR StartTime 2025-01-07 00:09:05 - End Time 2025-01-07 03:09:05 [2025-01-07 03:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192047', 'tblTempUsageDetail_20' ) start [2025-01-07 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192047', 'tblTempUsageDetail_20' ) end [2025-01-07 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192047', 'tblTempVendorCDR_20' ) start [2025-01-07 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192047', 'tblTempVendorCDR_20' ) end [2025-01-07 03:09:19] Production.INFO: ProcessCDR(1,14192047,1,1,2) [2025-01-07 03:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192047', 'tblTempUsageDetail_20' ) start [2025-01-07 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192047', 'tblTempUsageDetail_20' ) end [2025-01-07 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:09:22] Production.INFO: ==26649== Releasing lock... [2025-01-07 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:09:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:10:05 [end_date_ymd] => 2025-01-07 03:10:05 [RateCDR] => 1 ) [2025-01-07 03:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:10:05' and `end` < '2025-01-07 03:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:10:17] Production.INFO: count ==243 [2025-01-07 03:10:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:10:05 - End Time 2025-01-07 03:10:05 [2025-01-07 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192052', 'tblTempUsageDetail_20' ) start [2025-01-07 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192052', 'tblTempUsageDetail_20' ) end [2025-01-07 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192052', 'tblTempVendorCDR_20' ) start [2025-01-07 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192052', 'tblTempVendorCDR_20' ) end [2025-01-07 03:10:18] Production.INFO: ProcessCDR(1,14192052,1,1,2) [2025-01-07 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192052', 'tblTempUsageDetail_20' ) start [2025-01-07 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192052', 'tblTempUsageDetail_20' ) end [2025-01-07 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:10:21] Production.INFO: ==26782== Releasing lock... [2025-01-07 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:10:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:11:05 [end_date_ymd] => 2025-01-07 03:11:05 [RateCDR] => 1 ) [2025-01-07 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:11:05' and `end` < '2025-01-07 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:11:17] Production.INFO: count ==229 [2025-01-07 03:11:17] Production.ERROR: pbx CDR StartTime 2025-01-07 00:11:05 - End Time 2025-01-07 03:11:05 [2025-01-07 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192058', 'tblTempUsageDetail_20' ) start [2025-01-07 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192058', 'tblTempUsageDetail_20' ) end [2025-01-07 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192058', 'tblTempVendorCDR_20' ) start [2025-01-07 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192058', 'tblTempVendorCDR_20' ) end [2025-01-07 03:11:17] Production.INFO: ProcessCDR(1,14192058,1,1,2) [2025-01-07 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192058', 'tblTempUsageDetail_20' ) start [2025-01-07 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192058', 'tblTempUsageDetail_20' ) end [2025-01-07 03:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:11:20] Production.INFO: ==26869== Releasing lock... [2025-01-07 03:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:11:20] Production.INFO: 29 MB #Memory Used# [2025-01-07 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:12:05 [end_date_ymd] => 2025-01-07 03:12:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 00:12:05' and `end` < '2025-01-07 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-01-07 03:12:18] Production.INFO: count ==229 [2025-01-07 03:12:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:12:05 - End Time 2025-01-07 03:12:05 [2025-01-07 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192063', 'tblTempUsageDetail_20' ) start [2025-01-07 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192063', 'tblTempUsageDetail_20' ) end [2025-01-07 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192063', 'tblTempVendorCDR_20' ) start [2025-01-07 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192063', 'tblTempVendorCDR_20' ) end [2025-01-07 03:12:18] Production.INFO: ProcessCDR(1,14192063,1,1,2) [2025-01-07 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192063', 'tblTempUsageDetail_20' ) start [2025-01-07 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192063', 'tblTempUsageDetail_20' ) end [2025-01-07 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:12:21] Production.INFO: ==26952== Releasing lock... [2025-01-07 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:12:21] Production.INFO: 29 MB #Memory Used# [2025-01-07 03:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:13:04 [end_date_ymd] => 2025-01-07 03:13:04 [RateCDR] => 1 ) [2025-01-07 03:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:13:04' and `end` < '2025-01-07 03:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:13:18] Production.INFO: count ==229 [2025-01-07 03:13:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:13:04 - End Time 2025-01-07 03:13:04 [2025-01-07 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192068', 'tblTempUsageDetail_20' ) start [2025-01-07 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192068', 'tblTempUsageDetail_20' ) end [2025-01-07 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192068', 'tblTempVendorCDR_20' ) start [2025-01-07 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192068', 'tblTempVendorCDR_20' ) end [2025-01-07 03:13:18] Production.INFO: ProcessCDR(1,14192068,1,1,2) [2025-01-07 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192068', 'tblTempUsageDetail_20' ) start [2025-01-07 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192068', 'tblTempUsageDetail_20' ) end [2025-01-07 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:13:21] Production.INFO: ==27148== Releasing lock... [2025-01-07 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:13:21] Production.INFO: 29 MB #Memory Used# [2025-01-07 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:14:05 [end_date_ymd] => 2025-01-07 03:14:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 00:14:05' and `end` < '2025-01-07 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-01-07 03:14:19] Production.INFO: count ==229 [2025-01-07 03:14:19] Production.ERROR: pbx CDR StartTime 2025-01-07 00:14:05 - End Time 2025-01-07 03:14:05 [2025-01-07 03:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192073', 'tblTempUsageDetail_20' ) start [2025-01-07 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192073', 'tblTempUsageDetail_20' ) end [2025-01-07 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192073', 'tblTempVendorCDR_20' ) start [2025-01-07 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192073', 'tblTempVendorCDR_20' ) end [2025-01-07 03:14:19] Production.INFO: ProcessCDR(1,14192073,1,1,2) [2025-01-07 03:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192073', 'tblTempUsageDetail_20' ) start [2025-01-07 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192073', 'tblTempUsageDetail_20' ) end [2025-01-07 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:14:22] Production.INFO: ==27225== Releasing lock... [2025-01-07 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:14:22] Production.INFO: 29 MB #Memory Used# [2025-01-07 03:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:15:04 [end_date_ymd] => 2025-01-07 03:15:04 [RateCDR] => 1 ) [2025-01-07 03:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:15:04' and `end` < '2025-01-07 03:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:15:17] Production.INFO: count ==229 [2025-01-07 03:15:17] Production.ERROR: pbx CDR StartTime 2025-01-07 00:15:04 - End Time 2025-01-07 03:15:04 [2025-01-07 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192078', 'tblTempUsageDetail_20' ) start [2025-01-07 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192078', 'tblTempUsageDetail_20' ) end [2025-01-07 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192078', 'tblTempVendorCDR_20' ) start [2025-01-07 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192078', 'tblTempVendorCDR_20' ) end [2025-01-07 03:15:17] Production.INFO: ProcessCDR(1,14192078,1,1,2) [2025-01-07 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192078', 'tblTempUsageDetail_20' ) start [2025-01-07 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192078', 'tblTempUsageDetail_20' ) end [2025-01-07 03:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:15:20] Production.INFO: ==27304== Releasing lock... [2025-01-07 03:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:15:20] Production.INFO: 29 MB #Memory Used# [2025-01-07 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:16:05 [end_date_ymd] => 2025-01-07 03:16:05 [RateCDR] => 1 ) [2025-01-07 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:16:05' and `end` < '2025-01-07 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:16:18] Production.INFO: count ==229 [2025-01-07 03:16:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:16:05 - End Time 2025-01-07 03:16:05 [2025-01-07 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192083', 'tblTempUsageDetail_20' ) start [2025-01-07 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192083', 'tblTempUsageDetail_20' ) end [2025-01-07 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192083', 'tblTempVendorCDR_20' ) start [2025-01-07 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192083', 'tblTempVendorCDR_20' ) end [2025-01-07 03:16:18] Production.INFO: ProcessCDR(1,14192083,1,1,2) [2025-01-07 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192083', 'tblTempUsageDetail_20' ) start [2025-01-07 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192083', 'tblTempUsageDetail_20' ) end [2025-01-07 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:16:21] Production.INFO: ==27381== Releasing lock... [2025-01-07 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:16:21] Production.INFO: 29 MB #Memory Used# [2025-01-07 03:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:17:04 [end_date_ymd] => 2025-01-07 03:17:04 [RateCDR] => 1 ) [2025-01-07 03:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:17:04' and `end` < '2025-01-07 03:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:17:18] Production.INFO: count ==229 [2025-01-07 03:17:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:17:04 - End Time 2025-01-07 03:17:04 [2025-01-07 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192088', 'tblTempUsageDetail_20' ) start [2025-01-07 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192088', 'tblTempUsageDetail_20' ) end [2025-01-07 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192088', 'tblTempVendorCDR_20' ) start [2025-01-07 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192088', 'tblTempVendorCDR_20' ) end [2025-01-07 03:17:18] Production.INFO: ProcessCDR(1,14192088,1,1,2) [2025-01-07 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192088', 'tblTempUsageDetail_20' ) start [2025-01-07 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192088', 'tblTempUsageDetail_20' ) end [2025-01-07 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:17:21] Production.INFO: ==27532== Releasing lock... [2025-01-07 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:17:21] Production.INFO: 29 MB #Memory Used# [2025-01-07 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:18:05 [end_date_ymd] => 2025-01-07 03:18:05 [RateCDR] => 1 ) [2025-01-07 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:18:05' and `end` < '2025-01-07 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:18:18] Production.INFO: count ==229 [2025-01-07 03:18:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:18:05 - End Time 2025-01-07 03:18:05 [2025-01-07 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192093', 'tblTempUsageDetail_20' ) start [2025-01-07 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192093', 'tblTempUsageDetail_20' ) end [2025-01-07 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192093', 'tblTempVendorCDR_20' ) start [2025-01-07 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192093', 'tblTempVendorCDR_20' ) end [2025-01-07 03:18:18] Production.INFO: ProcessCDR(1,14192093,1,1,2) [2025-01-07 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192093', 'tblTempUsageDetail_20' ) start [2025-01-07 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192093', 'tblTempUsageDetail_20' ) end [2025-01-07 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:18:22] Production.INFO: ==27609== Releasing lock... [2025-01-07 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:18:22] Production.INFO: 29 MB #Memory Used# [2025-01-07 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:19:05 [end_date_ymd] => 2025-01-07 03:19:05 [RateCDR] => 1 ) [2025-01-07 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:19:05' and `end` < '2025-01-07 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:19:18] Production.INFO: count ==229 [2025-01-07 03:19:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:19:05 - End Time 2025-01-07 03:19:05 [2025-01-07 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192098', 'tblTempUsageDetail_20' ) start [2025-01-07 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192098', 'tblTempUsageDetail_20' ) end [2025-01-07 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192098', 'tblTempVendorCDR_20' ) start [2025-01-07 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192098', 'tblTempVendorCDR_20' ) end [2025-01-07 03:19:18] Production.INFO: ProcessCDR(1,14192098,1,1,2) [2025-01-07 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192098', 'tblTempUsageDetail_20' ) start [2025-01-07 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192098', 'tblTempUsageDetail_20' ) end [2025-01-07 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:19:21] Production.INFO: ==27685== Releasing lock... [2025-01-07 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:19:21] Production.INFO: 29 MB #Memory Used# [2025-01-07 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:20:05 [end_date_ymd] => 2025-01-07 03:20:05 [RateCDR] => 1 ) [2025-01-07 03:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:20:05' and `end` < '2025-01-07 03:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:20:18] Production.INFO: count ==224 [2025-01-07 03:20:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:20:05 - End Time 2025-01-07 03:20:05 [2025-01-07 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192104', 'tblTempUsageDetail_20' ) start [2025-01-07 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192104', 'tblTempUsageDetail_20' ) end [2025-01-07 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192104', 'tblTempVendorCDR_20' ) start [2025-01-07 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192104', 'tblTempVendorCDR_20' ) end [2025-01-07 03:20:18] Production.INFO: ProcessCDR(1,14192104,1,1,2) [2025-01-07 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192104', 'tblTempUsageDetail_20' ) start [2025-01-07 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192104', 'tblTempUsageDetail_20' ) end [2025-01-07 03:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:20:21] Production.INFO: ==27761== Releasing lock... [2025-01-07 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:20:21] Production.INFO: 29 MB #Memory Used# [2025-01-07 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:21:05 [end_date_ymd] => 2025-01-07 03:21:05 [RateCDR] => 1 ) [2025-01-07 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:21:05' and `end` < '2025-01-07 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:21:18] Production.INFO: count ==214 [2025-01-07 03:21:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:21:05 - End Time 2025-01-07 03:21:05 [2025-01-07 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192109', 'tblTempUsageDetail_20' ) start [2025-01-07 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192109', 'tblTempUsageDetail_20' ) end [2025-01-07 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192109', 'tblTempVendorCDR_20' ) start [2025-01-07 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192109', 'tblTempVendorCDR_20' ) end [2025-01-07 03:21:18] Production.INFO: ProcessCDR(1,14192109,1,1,2) [2025-01-07 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192109', 'tblTempUsageDetail_20' ) start [2025-01-07 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192109', 'tblTempUsageDetail_20' ) end [2025-01-07 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:21:21] Production.INFO: ==27834== Releasing lock... [2025-01-07 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:21:21] Production.INFO: 29 MB #Memory Used# [2025-01-07 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:22:05 [end_date_ymd] => 2025-01-07 03:22:05 [RateCDR] => 1 ) [2025-01-07 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:22:05' and `end` < '2025-01-07 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:22:18] Production.INFO: count ==214 [2025-01-07 03:22:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:22:05 - End Time 2025-01-07 03:22:05 [2025-01-07 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192114', 'tblTempUsageDetail_20' ) start [2025-01-07 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192114', 'tblTempUsageDetail_20' ) end [2025-01-07 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192114', 'tblTempVendorCDR_20' ) start [2025-01-07 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192114', 'tblTempVendorCDR_20' ) end [2025-01-07 03:22:18] Production.INFO: ProcessCDR(1,14192114,1,1,2) [2025-01-07 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192114', 'tblTempUsageDetail_20' ) start [2025-01-07 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192114', 'tblTempUsageDetail_20' ) end [2025-01-07 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:22:21] Production.INFO: ==27909== Releasing lock... [2025-01-07 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:22:21] Production.INFO: 29 MB #Memory Used# [2025-01-07 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:23:05 [end_date_ymd] => 2025-01-07 03:23:05 [RateCDR] => 1 ) [2025-01-07 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:23:05' and `end` < '2025-01-07 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:23:17] Production.INFO: count ==214 [2025-01-07 03:23:17] Production.ERROR: pbx CDR StartTime 2025-01-07 00:23:05 - End Time 2025-01-07 03:23:05 [2025-01-07 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192119', 'tblTempUsageDetail_20' ) start [2025-01-07 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192119', 'tblTempUsageDetail_20' ) end [2025-01-07 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192119', 'tblTempVendorCDR_20' ) start [2025-01-07 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192119', 'tblTempVendorCDR_20' ) end [2025-01-07 03:23:17] Production.INFO: ProcessCDR(1,14192119,1,1,2) [2025-01-07 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192119', 'tblTempUsageDetail_20' ) start [2025-01-07 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192119', 'tblTempUsageDetail_20' ) end [2025-01-07 03:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:23:20] Production.INFO: ==27981== Releasing lock... [2025-01-07 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:23:20] Production.INFO: 29 MB #Memory Used# [2025-01-07 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:24:05 [end_date_ymd] => 2025-01-07 03:24:05 [RateCDR] => 1 ) [2025-01-07 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:24:05' and `end` < '2025-01-07 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:24:18] Production.INFO: count ==214 [2025-01-07 03:24:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:24:05 - End Time 2025-01-07 03:24:05 [2025-01-07 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192123', 'tblTempUsageDetail_20' ) start [2025-01-07 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192123', 'tblTempUsageDetail_20' ) end [2025-01-07 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192123', 'tblTempVendorCDR_20' ) start [2025-01-07 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192123', 'tblTempVendorCDR_20' ) end [2025-01-07 03:24:18] Production.INFO: ProcessCDR(1,14192123,1,1,2) [2025-01-07 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192123', 'tblTempUsageDetail_20' ) start [2025-01-07 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192123', 'tblTempUsageDetail_20' ) end [2025-01-07 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:24:21] Production.INFO: ==28052== Releasing lock... [2025-01-07 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:24:21] Production.INFO: 29 MB #Memory Used# [2025-01-07 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:25:05 [end_date_ymd] => 2025-01-07 03:25:05 [RateCDR] => 1 ) [2025-01-07 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:25:05' and `end` < '2025-01-07 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:25:18] Production.INFO: count ==214 [2025-01-07 03:25:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:25:05 - End Time 2025-01-07 03:25:05 [2025-01-07 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192129', 'tblTempUsageDetail_20' ) start [2025-01-07 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192129', 'tblTempUsageDetail_20' ) end [2025-01-07 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192129', 'tblTempVendorCDR_20' ) start [2025-01-07 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192129', 'tblTempVendorCDR_20' ) end [2025-01-07 03:25:18] Production.INFO: ProcessCDR(1,14192129,1,1,2) [2025-01-07 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192129', 'tblTempUsageDetail_20' ) start [2025-01-07 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192129', 'tblTempUsageDetail_20' ) end [2025-01-07 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:25:21] Production.INFO: ==28125== Releasing lock... [2025-01-07 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:25:21] Production.INFO: 29 MB #Memory Used# [2025-01-07 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:26:05 [end_date_ymd] => 2025-01-07 03:26:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 00:26:05' and `end` < '2025-01-07 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-01-07 03:26:18] Production.INFO: count ==214 [2025-01-07 03:26:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:26:05 - End Time 2025-01-07 03:26:05 [2025-01-07 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192134', 'tblTempUsageDetail_20' ) start [2025-01-07 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192134', 'tblTempUsageDetail_20' ) end [2025-01-07 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192134', 'tblTempVendorCDR_20' ) start [2025-01-07 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192134', 'tblTempVendorCDR_20' ) end [2025-01-07 03:26:18] Production.INFO: ProcessCDR(1,14192134,1,1,2) [2025-01-07 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192134', 'tblTempUsageDetail_20' ) start [2025-01-07 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192134', 'tblTempUsageDetail_20' ) end [2025-01-07 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:26:21] Production.INFO: ==28237== Releasing lock... [2025-01-07 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:26:21] Production.INFO: 29 MB #Memory Used# [2025-01-07 03:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:27:04 [end_date_ymd] => 2025-01-07 03:27:04 [RateCDR] => 1 ) [2025-01-07 03:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:27:04' and `end` < '2025-01-07 03:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:27:17] Production.INFO: count ==214 [2025-01-07 03:27:17] Production.ERROR: pbx CDR StartTime 2025-01-07 00:27:04 - End Time 2025-01-07 03:27:04 [2025-01-07 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192139', 'tblTempUsageDetail_20' ) start [2025-01-07 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192139', 'tblTempUsageDetail_20' ) end [2025-01-07 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192139', 'tblTempVendorCDR_20' ) start [2025-01-07 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192139', 'tblTempVendorCDR_20' ) end [2025-01-07 03:27:17] Production.INFO: ProcessCDR(1,14192139,1,1,2) [2025-01-07 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192139', 'tblTempUsageDetail_20' ) start [2025-01-07 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192139', 'tblTempUsageDetail_20' ) end [2025-01-07 03:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:27:20] Production.INFO: ==28305== Releasing lock... [2025-01-07 03:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:27:20] Production.INFO: 29 MB #Memory Used# [2025-01-07 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:28:05 [end_date_ymd] => 2025-01-07 03:28:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 00:28:05' and `end` < '2025-01-07 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:28:18] Production.INFO: count ==212 [2025-01-07 03:28:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:28:05 - End Time 2025-01-07 03:28:05 [2025-01-07 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192144', 'tblTempUsageDetail_20' ) start [2025-01-07 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192144', 'tblTempUsageDetail_20' ) end [2025-01-07 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192144', 'tblTempVendorCDR_20' ) start [2025-01-07 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192144', 'tblTempVendorCDR_20' ) end [2025-01-07 03:28:18] Production.INFO: ProcessCDR(1,14192144,1,1,2) [2025-01-07 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192144', 'tblTempUsageDetail_20' ) start [2025-01-07 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192144', 'tblTempUsageDetail_20' ) end [2025-01-07 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:28:21] Production.INFO: ==28377== Releasing lock... [2025-01-07 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:28:21] Production.INFO: 29 MB #Memory Used# [2025-01-07 03:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:29:04 [end_date_ymd] => 2025-01-07 03:29:04 [RateCDR] => 1 ) [2025-01-07 03:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:29:04' and `end` < '2025-01-07 03:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:29:17] Production.INFO: count ==212 [2025-01-07 03:29:17] Production.ERROR: pbx CDR StartTime 2025-01-07 00:29:04 - End Time 2025-01-07 03:29:04 [2025-01-07 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192149', 'tblTempUsageDetail_20' ) start [2025-01-07 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192149', 'tblTempUsageDetail_20' ) end [2025-01-07 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192149', 'tblTempVendorCDR_20' ) start [2025-01-07 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192149', 'tblTempVendorCDR_20' ) end [2025-01-07 03:29:17] Production.INFO: ProcessCDR(1,14192149,1,1,2) [2025-01-07 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192149', 'tblTempUsageDetail_20' ) start [2025-01-07 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192149', 'tblTempUsageDetail_20' ) end [2025-01-07 03:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:29:20] Production.INFO: ==28445== Releasing lock... [2025-01-07 03:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:29:20] Production.INFO: 29 MB #Memory Used# [2025-01-07 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:30:05 [end_date_ymd] => 2025-01-07 03:30:05 [RateCDR] => 1 ) [2025-01-07 03:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:30:05' and `end` < '2025-01-07 03:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:30:19] Production.INFO: count ==207 [2025-01-07 03:30:19] Production.ERROR: pbx CDR StartTime 2025-01-07 00:30:05 - End Time 2025-01-07 03:30:05 [2025-01-07 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192155', 'tblTempUsageDetail_20' ) start [2025-01-07 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192155', 'tblTempUsageDetail_20' ) end [2025-01-07 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192155', 'tblTempVendorCDR_20' ) start [2025-01-07 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192155', 'tblTempVendorCDR_20' ) end [2025-01-07 03:30:19] Production.INFO: ProcessCDR(1,14192155,1,1,2) [2025-01-07 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192155', 'tblTempUsageDetail_20' ) start [2025-01-07 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192155', 'tblTempUsageDetail_20' ) end [2025-01-07 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:30:22] Production.INFO: ==28556== Releasing lock... [2025-01-07 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:30:22] Production.INFO: 29 MB #Memory Used# [2025-01-07 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:31:06 [end_date_ymd] => 2025-01-07 03:31:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 00:31:06' and `end` < '2025-01-07 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-01-07 03:31:19] Production.INFO: count ==207 [2025-01-07 03:31:19] Production.ERROR: pbx CDR StartTime 2025-01-07 00:31:06 - End Time 2025-01-07 03:31:06 [2025-01-07 03:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192160', 'tblTempUsageDetail_20' ) start [2025-01-07 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192160', 'tblTempUsageDetail_20' ) end [2025-01-07 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192160', 'tblTempVendorCDR_20' ) start [2025-01-07 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192160', 'tblTempVendorCDR_20' ) end [2025-01-07 03:31:19] Production.INFO: ProcessCDR(1,14192160,1,1,2) [2025-01-07 03:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192160', 'tblTempUsageDetail_20' ) start [2025-01-07 03:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192160', 'tblTempUsageDetail_20' ) end [2025-01-07 03:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:31:23] Production.INFO: ==28634== Releasing lock... [2025-01-07 03:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:31:23] Production.INFO: 29 MB #Memory Used# [2025-01-07 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:32:05 [end_date_ymd] => 2025-01-07 03:32:05 [RateCDR] => 1 ) [2025-01-07 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:32:05' and `end` < '2025-01-07 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:32:18] Production.INFO: count ==207 [2025-01-07 03:32:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:32:05 - End Time 2025-01-07 03:32:05 [2025-01-07 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192165', 'tblTempUsageDetail_20' ) start [2025-01-07 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192165', 'tblTempUsageDetail_20' ) end [2025-01-07 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192165', 'tblTempVendorCDR_20' ) start [2025-01-07 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192165', 'tblTempVendorCDR_20' ) end [2025-01-07 03:32:18] Production.INFO: ProcessCDR(1,14192165,1,1,2) [2025-01-07 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192165', 'tblTempUsageDetail_20' ) start [2025-01-07 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192165', 'tblTempUsageDetail_20' ) end [2025-01-07 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:32:21] Production.INFO: ==28702== Releasing lock... [2025-01-07 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:32:21] Production.INFO: 29 MB #Memory Used# [2025-01-07 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:33:05 [end_date_ymd] => 2025-01-07 03:33:05 [RateCDR] => 1 ) [2025-01-07 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:33:05' and `end` < '2025-01-07 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:33:18] Production.INFO: count ==201 [2025-01-07 03:33:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:33:05 - End Time 2025-01-07 03:33:05 [2025-01-07 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192170', 'tblTempUsageDetail_20' ) start [2025-01-07 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192170', 'tblTempUsageDetail_20' ) end [2025-01-07 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192170', 'tblTempVendorCDR_20' ) start [2025-01-07 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192170', 'tblTempVendorCDR_20' ) end [2025-01-07 03:33:18] Production.INFO: ProcessCDR(1,14192170,1,1,2) [2025-01-07 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192170', 'tblTempUsageDetail_20' ) start [2025-01-07 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192170', 'tblTempUsageDetail_20' ) end [2025-01-07 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:33:21] Production.INFO: ==28773== Releasing lock... [2025-01-07 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:34:05 [end_date_ymd] => 2025-01-07 03:34:05 [RateCDR] => 1 ) [2025-01-07 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:34:05' and `end` < '2025-01-07 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:34:18] Production.INFO: count ==200 [2025-01-07 03:34:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:34:05 - End Time 2025-01-07 03:34:05 [2025-01-07 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192175', 'tblTempUsageDetail_20' ) start [2025-01-07 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192175', 'tblTempUsageDetail_20' ) end [2025-01-07 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192175', 'tblTempVendorCDR_20' ) start [2025-01-07 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192175', 'tblTempVendorCDR_20' ) end [2025-01-07 03:34:18] Production.INFO: ProcessCDR(1,14192175,1,1,2) [2025-01-07 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192175', 'tblTempUsageDetail_20' ) start [2025-01-07 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192175', 'tblTempUsageDetail_20' ) end [2025-01-07 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:34:21] Production.INFO: ==28843== Releasing lock... [2025-01-07 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:35:05 [end_date_ymd] => 2025-01-07 03:35:05 [RateCDR] => 1 ) [2025-01-07 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:35:05' and `end` < '2025-01-07 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:35:19] Production.INFO: count ==200 [2025-01-07 03:35:19] Production.ERROR: pbx CDR StartTime 2025-01-07 00:35:05 - End Time 2025-01-07 03:35:05 [2025-01-07 03:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192180', 'tblTempUsageDetail_20' ) start [2025-01-07 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192180', 'tblTempUsageDetail_20' ) end [2025-01-07 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192180', 'tblTempVendorCDR_20' ) start [2025-01-07 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192180', 'tblTempVendorCDR_20' ) end [2025-01-07 03:35:19] Production.INFO: ProcessCDR(1,14192180,1,1,2) [2025-01-07 03:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192180', 'tblTempUsageDetail_20' ) start [2025-01-07 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192180', 'tblTempUsageDetail_20' ) end [2025-01-07 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:35:22] Production.INFO: ==28912== Releasing lock... [2025-01-07 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:35:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:36:04 [end_date_ymd] => 2025-01-07 03:36:04 [RateCDR] => 1 ) [2025-01-07 03:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:36:04' and `end` < '2025-01-07 03:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:36:17] Production.INFO: count ==200 [2025-01-07 03:36:17] Production.ERROR: pbx CDR StartTime 2025-01-07 00:36:04 - End Time 2025-01-07 03:36:04 [2025-01-07 03:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192185', 'tblTempUsageDetail_20' ) start [2025-01-07 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192185', 'tblTempUsageDetail_20' ) end [2025-01-07 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192185', 'tblTempVendorCDR_20' ) start [2025-01-07 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192185', 'tblTempVendorCDR_20' ) end [2025-01-07 03:36:17] Production.INFO: ProcessCDR(1,14192185,1,1,2) [2025-01-07 03:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192185', 'tblTempUsageDetail_20' ) start [2025-01-07 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192185', 'tblTempUsageDetail_20' ) end [2025-01-07 03:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:36:20] Production.INFO: ==28986== Releasing lock... [2025-01-07 03:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:36:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:37:05 [end_date_ymd] => 2025-01-07 03:37:05 [RateCDR] => 1 ) [2025-01-07 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:37:05' and `end` < '2025-01-07 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:37:18] Production.INFO: count ==200 [2025-01-07 03:37:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:37:05 - End Time 2025-01-07 03:37:05 [2025-01-07 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192190', 'tblTempUsageDetail_20' ) start [2025-01-07 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192190', 'tblTempUsageDetail_20' ) end [2025-01-07 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192190', 'tblTempVendorCDR_20' ) start [2025-01-07 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192190', 'tblTempVendorCDR_20' ) end [2025-01-07 03:37:18] Production.INFO: ProcessCDR(1,14192190,1,1,2) [2025-01-07 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192190', 'tblTempUsageDetail_20' ) start [2025-01-07 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192190', 'tblTempUsageDetail_20' ) end [2025-01-07 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:37:21] Production.INFO: ==29054== Releasing lock... [2025-01-07 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:38:05 [end_date_ymd] => 2025-01-07 03:38:05 [RateCDR] => 1 ) [2025-01-07 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:38:05' and `end` < '2025-01-07 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:38:18] Production.INFO: count ==200 [2025-01-07 03:38:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:38:05 - End Time 2025-01-07 03:38:05 [2025-01-07 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192195', 'tblTempUsageDetail_20' ) start [2025-01-07 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192195', 'tblTempUsageDetail_20' ) end [2025-01-07 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192195', 'tblTempVendorCDR_20' ) start [2025-01-07 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192195', 'tblTempVendorCDR_20' ) end [2025-01-07 03:38:18] Production.INFO: ProcessCDR(1,14192195,1,1,2) [2025-01-07 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192195', 'tblTempUsageDetail_20' ) start [2025-01-07 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192195', 'tblTempUsageDetail_20' ) end [2025-01-07 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:38:21] Production.INFO: ==29127== Releasing lock... [2025-01-07 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:39:05 [end_date_ymd] => 2025-01-07 03:39:05 [RateCDR] => 1 ) [2025-01-07 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:39:05' and `end` < '2025-01-07 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:39:18] Production.INFO: count ==200 [2025-01-07 03:39:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:39:05 - End Time 2025-01-07 03:39:05 [2025-01-07 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192200', 'tblTempUsageDetail_20' ) start [2025-01-07 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192200', 'tblTempUsageDetail_20' ) end [2025-01-07 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192200', 'tblTempVendorCDR_20' ) start [2025-01-07 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192200', 'tblTempVendorCDR_20' ) end [2025-01-07 03:39:18] Production.INFO: ProcessCDR(1,14192200,1,1,2) [2025-01-07 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192200', 'tblTempUsageDetail_20' ) start [2025-01-07 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192200', 'tblTempUsageDetail_20' ) end [2025-01-07 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:39:21] Production.INFO: ==29196== Releasing lock... [2025-01-07 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:40:06 [end_date_ymd] => 2025-01-07 03:40:06 [RateCDR] => 1 ) [2025-01-07 03:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:40:06' and `end` < '2025-01-07 03:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:40:19] Production.INFO: count ==192 [2025-01-07 03:40:19] Production.ERROR: pbx CDR StartTime 2025-01-07 00:40:06 - End Time 2025-01-07 03:40:06 [2025-01-07 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192206', 'tblTempUsageDetail_20' ) start [2025-01-07 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192206', 'tblTempUsageDetail_20' ) end [2025-01-07 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192206', 'tblTempVendorCDR_20' ) start [2025-01-07 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192206', 'tblTempVendorCDR_20' ) end [2025-01-07 03:40:19] Production.INFO: ProcessCDR(1,14192206,1,1,2) [2025-01-07 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192206', 'tblTempUsageDetail_20' ) start [2025-01-07 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192206', 'tblTempUsageDetail_20' ) end [2025-01-07 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:40:22] Production.INFO: ==29267== Releasing lock... [2025-01-07 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:40:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:41:05 [end_date_ymd] => 2025-01-07 03:41:05 [RateCDR] => 1 ) [2025-01-07 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:41:05' and `end` < '2025-01-07 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:41:18] Production.INFO: count ==188 [2025-01-07 03:41:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:41:05 - End Time 2025-01-07 03:41:05 [2025-01-07 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192211', 'tblTempUsageDetail_20' ) start [2025-01-07 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192211', 'tblTempUsageDetail_20' ) end [2025-01-07 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192211', 'tblTempVendorCDR_20' ) start [2025-01-07 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192211', 'tblTempVendorCDR_20' ) end [2025-01-07 03:41:18] Production.INFO: ProcessCDR(1,14192211,1,1,2) [2025-01-07 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192211', 'tblTempUsageDetail_20' ) start [2025-01-07 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192211', 'tblTempUsageDetail_20' ) end [2025-01-07 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:41:22] Production.INFO: ==29337== Releasing lock... [2025-01-07 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:41:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:42:05 [end_date_ymd] => 2025-01-07 03:42:05 [RateCDR] => 1 ) [2025-01-07 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:42:05' and `end` < '2025-01-07 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:42:18] Production.INFO: count ==188 [2025-01-07 03:42:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:42:05 - End Time 2025-01-07 03:42:05 [2025-01-07 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192216', 'tblTempUsageDetail_20' ) start [2025-01-07 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192216', 'tblTempUsageDetail_20' ) end [2025-01-07 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192216', 'tblTempVendorCDR_20' ) start [2025-01-07 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192216', 'tblTempVendorCDR_20' ) end [2025-01-07 03:42:18] Production.INFO: ProcessCDR(1,14192216,1,1,2) [2025-01-07 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192216', 'tblTempUsageDetail_20' ) start [2025-01-07 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192216', 'tblTempUsageDetail_20' ) end [2025-01-07 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:42:21] Production.INFO: ==29412== Releasing lock... [2025-01-07 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:42:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:43:04 [end_date_ymd] => 2025-01-07 03:43:04 [RateCDR] => 1 ) [2025-01-07 03:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:43:04' and `end` < '2025-01-07 03:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:43:17] Production.INFO: count ==188 [2025-01-07 03:43:17] Production.ERROR: pbx CDR StartTime 2025-01-07 00:43:04 - End Time 2025-01-07 03:43:04 [2025-01-07 03:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192221', 'tblTempUsageDetail_20' ) start [2025-01-07 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192221', 'tblTempUsageDetail_20' ) end [2025-01-07 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192221', 'tblTempVendorCDR_20' ) start [2025-01-07 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192221', 'tblTempVendorCDR_20' ) end [2025-01-07 03:43:17] Production.INFO: ProcessCDR(1,14192221,1,1,2) [2025-01-07 03:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192221', 'tblTempUsageDetail_20' ) start [2025-01-07 03:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192221', 'tblTempUsageDetail_20' ) end [2025-01-07 03:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:43:20] Production.INFO: ==29490== Releasing lock... [2025-01-07 03:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:43:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:44:05 [end_date_ymd] => 2025-01-07 03:44:05 [RateCDR] => 1 ) [2025-01-07 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:44:05' and `end` < '2025-01-07 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:44:18] Production.INFO: count ==188 [2025-01-07 03:44:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:44:05 - End Time 2025-01-07 03:44:05 [2025-01-07 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192226', 'tblTempUsageDetail_20' ) start [2025-01-07 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192226', 'tblTempUsageDetail_20' ) end [2025-01-07 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192226', 'tblTempVendorCDR_20' ) start [2025-01-07 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192226', 'tblTempVendorCDR_20' ) end [2025-01-07 03:44:18] Production.INFO: ProcessCDR(1,14192226,1,1,2) [2025-01-07 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192226', 'tblTempUsageDetail_20' ) start [2025-01-07 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192226', 'tblTempUsageDetail_20' ) end [2025-01-07 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:44:21] Production.INFO: ==29570== Releasing lock... [2025-01-07 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:45:05 [end_date_ymd] => 2025-01-07 03:45:05 [RateCDR] => 1 ) [2025-01-07 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:45:05' and `end` < '2025-01-07 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:45:18] Production.INFO: count ==188 [2025-01-07 03:45:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:45:05 - End Time 2025-01-07 03:45:05 [2025-01-07 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192231', 'tblTempUsageDetail_20' ) start [2025-01-07 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192231', 'tblTempUsageDetail_20' ) end [2025-01-07 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192231', 'tblTempVendorCDR_20' ) start [2025-01-07 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192231', 'tblTempVendorCDR_20' ) end [2025-01-07 03:45:18] Production.INFO: ProcessCDR(1,14192231,1,1,2) [2025-01-07 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192231', 'tblTempUsageDetail_20' ) start [2025-01-07 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192231', 'tblTempUsageDetail_20' ) end [2025-01-07 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:45:21] Production.INFO: ==29689== Releasing lock... [2025-01-07 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:46:05 [end_date_ymd] => 2025-01-07 03:46:05 [RateCDR] => 1 ) [2025-01-07 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:46:05' and `end` < '2025-01-07 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:46:19] Production.INFO: count ==188 [2025-01-07 03:46:19] Production.ERROR: pbx CDR StartTime 2025-01-07 00:46:05 - End Time 2025-01-07 03:46:05 [2025-01-07 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192236', 'tblTempUsageDetail_20' ) start [2025-01-07 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192236', 'tblTempUsageDetail_20' ) end [2025-01-07 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192236', 'tblTempVendorCDR_20' ) start [2025-01-07 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192236', 'tblTempVendorCDR_20' ) end [2025-01-07 03:46:19] Production.INFO: ProcessCDR(1,14192236,1,1,2) [2025-01-07 03:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192236', 'tblTempUsageDetail_20' ) start [2025-01-07 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192236', 'tblTempUsageDetail_20' ) end [2025-01-07 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:46:22] Production.INFO: ==29778== Releasing lock... [2025-01-07 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:46:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:47:05 [end_date_ymd] => 2025-01-07 03:47:05 [RateCDR] => 1 ) [2025-01-07 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:47:05' and `end` < '2025-01-07 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:47:19] Production.INFO: count ==188 [2025-01-07 03:47:19] Production.ERROR: pbx CDR StartTime 2025-01-07 00:47:05 - End Time 2025-01-07 03:47:05 [2025-01-07 03:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192241', 'tblTempUsageDetail_20' ) start [2025-01-07 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192241', 'tblTempUsageDetail_20' ) end [2025-01-07 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192241', 'tblTempVendorCDR_20' ) start [2025-01-07 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192241', 'tblTempVendorCDR_20' ) end [2025-01-07 03:47:19] Production.INFO: ProcessCDR(1,14192241,1,1,2) [2025-01-07 03:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192241', 'tblTempUsageDetail_20' ) start [2025-01-07 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192241', 'tblTempUsageDetail_20' ) end [2025-01-07 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:47:22] Production.INFO: ==29878== Releasing lock... [2025-01-07 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:47:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:48:05 [end_date_ymd] => 2025-01-07 03:48:05 [RateCDR] => 1 ) [2025-01-07 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:48:05' and `end` < '2025-01-07 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:48:18] Production.INFO: count ==187 [2025-01-07 03:48:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:48:05 - End Time 2025-01-07 03:48:05 [2025-01-07 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192246', 'tblTempUsageDetail_20' ) start [2025-01-07 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192246', 'tblTempUsageDetail_20' ) end [2025-01-07 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192246', 'tblTempVendorCDR_20' ) start [2025-01-07 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192246', 'tblTempVendorCDR_20' ) end [2025-01-07 03:48:18] Production.INFO: ProcessCDR(1,14192246,1,1,2) [2025-01-07 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192246', 'tblTempUsageDetail_20' ) start [2025-01-07 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192246', 'tblTempUsageDetail_20' ) end [2025-01-07 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:48:21] Production.INFO: ==29956== Releasing lock... [2025-01-07 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:49:04 [end_date_ymd] => 2025-01-07 03:49:04 [RateCDR] => 1 ) [2025-01-07 03:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:49:04' and `end` < '2025-01-07 03:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:49:19] Production.INFO: count ==186 [2025-01-07 03:49:19] Production.ERROR: pbx CDR StartTime 2025-01-07 00:49:04 - End Time 2025-01-07 03:49:04 [2025-01-07 03:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192251', 'tblTempUsageDetail_20' ) start [2025-01-07 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192251', 'tblTempUsageDetail_20' ) end [2025-01-07 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192251', 'tblTempVendorCDR_20' ) start [2025-01-07 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192251', 'tblTempVendorCDR_20' ) end [2025-01-07 03:49:19] Production.INFO: ProcessCDR(1,14192251,1,1,2) [2025-01-07 03:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192251', 'tblTempUsageDetail_20' ) start [2025-01-07 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192251', 'tblTempUsageDetail_20' ) end [2025-01-07 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:49:22] Production.INFO: ==30037== Releasing lock... [2025-01-07 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:49:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:50:05 [end_date_ymd] => 2025-01-07 03:50:05 [RateCDR] => 1 ) [2025-01-07 03:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:50:05' and `end` < '2025-01-07 03:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:50:18] Production.INFO: count ==180 [2025-01-07 03:50:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:50:05 - End Time 2025-01-07 03:50:05 [2025-01-07 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192257', 'tblTempUsageDetail_20' ) start [2025-01-07 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192257', 'tblTempUsageDetail_20' ) end [2025-01-07 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192257', 'tblTempVendorCDR_20' ) start [2025-01-07 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192257', 'tblTempVendorCDR_20' ) end [2025-01-07 03:50:18] Production.INFO: ProcessCDR(1,14192257,1,1,2) [2025-01-07 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192257', 'tblTempUsageDetail_20' ) start [2025-01-07 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192257', 'tblTempUsageDetail_20' ) end [2025-01-07 03:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:50:21] Production.INFO: ==30121== Releasing lock... [2025-01-07 03:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:50:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:51:04 [end_date_ymd] => 2025-01-07 03:51:04 [RateCDR] => 1 ) [2025-01-07 03:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:51:04' and `end` < '2025-01-07 03:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:51:17] Production.INFO: count ==176 [2025-01-07 03:51:17] Production.ERROR: pbx CDR StartTime 2025-01-07 00:51:04 - End Time 2025-01-07 03:51:04 [2025-01-07 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192262', 'tblTempUsageDetail_20' ) start [2025-01-07 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192262', 'tblTempUsageDetail_20' ) end [2025-01-07 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192262', 'tblTempVendorCDR_20' ) start [2025-01-07 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192262', 'tblTempVendorCDR_20' ) end [2025-01-07 03:51:17] Production.INFO: ProcessCDR(1,14192262,1,1,2) [2025-01-07 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192262', 'tblTempUsageDetail_20' ) start [2025-01-07 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192262', 'tblTempUsageDetail_20' ) end [2025-01-07 03:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:51:20] Production.INFO: ==30212== Releasing lock... [2025-01-07 03:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:51:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:52:05 [end_date_ymd] => 2025-01-07 03:52:05 [RateCDR] => 1 ) [2025-01-07 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:52:05' and `end` < '2025-01-07 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:52:17] Production.INFO: count ==176 [2025-01-07 03:52:17] Production.ERROR: pbx CDR StartTime 2025-01-07 00:52:05 - End Time 2025-01-07 03:52:05 [2025-01-07 03:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192263', 'tblTempUsageDetail_20' ) start [2025-01-07 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192263', 'tblTempUsageDetail_20' ) end [2025-01-07 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192263', 'tblTempVendorCDR_20' ) start [2025-01-07 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192263', 'tblTempVendorCDR_20' ) end [2025-01-07 03:52:17] Production.INFO: ProcessCDR(1,14192263,1,1,2) [2025-01-07 03:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192263', 'tblTempUsageDetail_20' ) start [2025-01-07 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192263', 'tblTempUsageDetail_20' ) end [2025-01-07 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:52:21] Production.INFO: ==30290== Releasing lock... [2025-01-07 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:52:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:53:04 [end_date_ymd] => 2025-01-07 03:53:04 [RateCDR] => 1 ) [2025-01-07 03:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:53:04' and `end` < '2025-01-07 03:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:53:18] Production.INFO: count ==176 [2025-01-07 03:53:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:53:04 - End Time 2025-01-07 03:53:04 [2025-01-07 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192272', 'tblTempUsageDetail_20' ) start [2025-01-07 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192272', 'tblTempUsageDetail_20' ) end [2025-01-07 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192272', 'tblTempVendorCDR_20' ) start [2025-01-07 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192272', 'tblTempVendorCDR_20' ) end [2025-01-07 03:53:18] Production.INFO: ProcessCDR(1,14192272,1,1,2) [2025-01-07 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192272', 'tblTempUsageDetail_20' ) start [2025-01-07 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192272', 'tblTempUsageDetail_20' ) end [2025-01-07 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:53:21] Production.INFO: ==30370== Releasing lock... [2025-01-07 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:54:05 [end_date_ymd] => 2025-01-07 03:54:05 [RateCDR] => 1 ) [2025-01-07 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:54:05' and `end` < '2025-01-07 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:54:19] Production.INFO: count ==176 [2025-01-07 03:54:19] Production.ERROR: pbx CDR StartTime 2025-01-07 00:54:05 - End Time 2025-01-07 03:54:05 [2025-01-07 03:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192276', 'tblTempUsageDetail_20' ) start [2025-01-07 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192276', 'tblTempUsageDetail_20' ) end [2025-01-07 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192276', 'tblTempVendorCDR_20' ) start [2025-01-07 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192276', 'tblTempVendorCDR_20' ) end [2025-01-07 03:54:19] Production.INFO: ProcessCDR(1,14192276,1,1,2) [2025-01-07 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192276', 'tblTempUsageDetail_20' ) start [2025-01-07 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192276', 'tblTempUsageDetail_20' ) end [2025-01-07 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:54:22] Production.INFO: ==30441== Releasing lock... [2025-01-07 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:54:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:55:04 [end_date_ymd] => 2025-01-07 03:55:04 [RateCDR] => 1 ) [2025-01-07 03:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:55:04' and `end` < '2025-01-07 03:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:55:17] Production.INFO: count ==174 [2025-01-07 03:55:17] Production.ERROR: pbx CDR StartTime 2025-01-07 00:55:04 - End Time 2025-01-07 03:55:04 [2025-01-07 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192282', 'tblTempUsageDetail_20' ) start [2025-01-07 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192282', 'tblTempUsageDetail_20' ) end [2025-01-07 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192282', 'tblTempVendorCDR_20' ) start [2025-01-07 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192282', 'tblTempVendorCDR_20' ) end [2025-01-07 03:55:17] Production.INFO: ProcessCDR(1,14192282,1,1,2) [2025-01-07 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192282', 'tblTempUsageDetail_20' ) start [2025-01-07 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192282', 'tblTempUsageDetail_20' ) end [2025-01-07 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:55:21] Production.INFO: ==30514== Releasing lock... [2025-01-07 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:56:05 [end_date_ymd] => 2025-01-07 03:56:05 [RateCDR] => 1 ) [2025-01-07 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:56:05' and `end` < '2025-01-07 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:56:18] Production.INFO: count ==174 [2025-01-07 03:56:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:56:05 - End Time 2025-01-07 03:56:05 [2025-01-07 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192287', 'tblTempUsageDetail_20' ) start [2025-01-07 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192287', 'tblTempUsageDetail_20' ) end [2025-01-07 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192287', 'tblTempVendorCDR_20' ) start [2025-01-07 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192287', 'tblTempVendorCDR_20' ) end [2025-01-07 03:56:18] Production.INFO: ProcessCDR(1,14192287,1,1,2) [2025-01-07 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192287', 'tblTempUsageDetail_20' ) start [2025-01-07 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192287', 'tblTempUsageDetail_20' ) end [2025-01-07 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:56:21] Production.INFO: ==30585== Releasing lock... [2025-01-07 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:57:04 [end_date_ymd] => 2025-01-07 03:57:04 [RateCDR] => 1 ) [2025-01-07 03:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:57:04' and `end` < '2025-01-07 03:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:57:18] Production.INFO: count ==173 [2025-01-07 03:57:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:57:04 - End Time 2025-01-07 03:57:04 [2025-01-07 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192292', 'tblTempUsageDetail_20' ) start [2025-01-07 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192292', 'tblTempUsageDetail_20' ) end [2025-01-07 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192292', 'tblTempVendorCDR_20' ) start [2025-01-07 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192292', 'tblTempVendorCDR_20' ) end [2025-01-07 03:57:18] Production.INFO: ProcessCDR(1,14192292,1,1,2) [2025-01-07 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192292', 'tblTempUsageDetail_20' ) start [2025-01-07 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192292', 'tblTempUsageDetail_20' ) end [2025-01-07 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:57:21] Production.INFO: ==30656== Releasing lock... [2025-01-07 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:58:05 [end_date_ymd] => 2025-01-07 03:58:05 [RateCDR] => 1 ) [2025-01-07 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:58:05' and `end` < '2025-01-07 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:58:18] Production.INFO: count ==173 [2025-01-07 03:58:18] Production.ERROR: pbx CDR StartTime 2025-01-07 00:58:05 - End Time 2025-01-07 03:58:05 [2025-01-07 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192297', 'tblTempUsageDetail_20' ) start [2025-01-07 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192297', 'tblTempUsageDetail_20' ) end [2025-01-07 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192297', 'tblTempVendorCDR_20' ) start [2025-01-07 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192297', 'tblTempVendorCDR_20' ) end [2025-01-07 03:58:18] Production.INFO: ProcessCDR(1,14192297,1,1,2) [2025-01-07 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192297', 'tblTempUsageDetail_20' ) start [2025-01-07 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192297', 'tblTempUsageDetail_20' ) end [2025-01-07 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:58:21] Production.INFO: ==30727== Releasing lock... [2025-01-07 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:58:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 00:59:06 [end_date_ymd] => 2025-01-07 03:59:06 [RateCDR] => 1 ) [2025-01-07 03:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 00:59:06' and `end` < '2025-01-07 03:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 03:59:19] Production.INFO: count ==173 [2025-01-07 03:59:19] Production.ERROR: pbx CDR StartTime 2025-01-07 00:59:06 - End Time 2025-01-07 03:59:06 [2025-01-07 03:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192302', 'tblTempUsageDetail_20' ) start [2025-01-07 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192302', 'tblTempUsageDetail_20' ) end [2025-01-07 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192302', 'tblTempVendorCDR_20' ) start [2025-01-07 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192302', 'tblTempVendorCDR_20' ) end [2025-01-07 03:59:19] Production.INFO: ProcessCDR(1,14192302,1,1,2) [2025-01-07 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192302', 'tblTempUsageDetail_20' ) start [2025-01-07 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192302', 'tblTempUsageDetail_20' ) end [2025-01-07 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 03:59:22] Production.INFO: ==30802== Releasing lock... [2025-01-07 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 03:59:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:00:06 [end_date_ymd] => 2025-01-07 04:00:06 [RateCDR] => 1 ) [2025-01-07 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:00:06' and `end` < '2025-01-07 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:00:20] Production.INFO: count ==165 [2025-01-07 04:00:20] Production.ERROR: pbx CDR StartTime 2025-01-07 01:00:06 - End Time 2025-01-07 04:00:06 [2025-01-07 04:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192309', 'tblTempUsageDetail_20' ) start [2025-01-07 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192309', 'tblTempUsageDetail_20' ) end [2025-01-07 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192309', 'tblTempVendorCDR_20' ) start [2025-01-07 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192309', 'tblTempVendorCDR_20' ) end [2025-01-07 04:00:20] Production.INFO: ProcessCDR(1,14192309,1,1,2) [2025-01-07 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192309', 'tblTempUsageDetail_20' ) start [2025-01-07 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192309', 'tblTempUsageDetail_20' ) end [2025-01-07 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:00:23] Production.INFO: ==30877== Releasing lock... [2025-01-07 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:00:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:01:05 [end_date_ymd] => 2025-01-07 04:01:05 [RateCDR] => 1 ) [2025-01-07 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:01:05' and `end` < '2025-01-07 04:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:01:19] Production.INFO: count ==157 [2025-01-07 04:01:19] Production.ERROR: pbx CDR StartTime 2025-01-07 01:01:05 - End Time 2025-01-07 04:01:05 [2025-01-07 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192314', 'tblTempUsageDetail_20' ) start [2025-01-07 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192314', 'tblTempUsageDetail_20' ) end [2025-01-07 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192314', 'tblTempVendorCDR_20' ) start [2025-01-07 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192314', 'tblTempVendorCDR_20' ) end [2025-01-07 04:01:19] Production.INFO: ProcessCDR(1,14192314,1,1,2) [2025-01-07 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192314', 'tblTempUsageDetail_20' ) start [2025-01-07 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192314', 'tblTempUsageDetail_20' ) end [2025-01-07 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:01:22] Production.INFO: ==31003== Releasing lock... [2025-01-07 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:01:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:02:05 [end_date_ymd] => 2025-01-07 04:02:05 [RateCDR] => 1 ) [2025-01-07 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:02:05' and `end` < '2025-01-07 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:02:17] Production.INFO: count ==157 [2025-01-07 04:02:17] Production.ERROR: pbx CDR StartTime 2025-01-07 01:02:05 - End Time 2025-01-07 04:02:05 [2025-01-07 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192319', 'tblTempUsageDetail_20' ) start [2025-01-07 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192319', 'tblTempUsageDetail_20' ) end [2025-01-07 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192319', 'tblTempVendorCDR_20' ) start [2025-01-07 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192319', 'tblTempVendorCDR_20' ) end [2025-01-07 04:02:17] Production.INFO: ProcessCDR(1,14192319,1,1,2) [2025-01-07 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192319', 'tblTempUsageDetail_20' ) start [2025-01-07 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192319', 'tblTempUsageDetail_20' ) end [2025-01-07 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:02:21] Production.INFO: ==31076== Releasing lock... [2025-01-07 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:02:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:03:05 [end_date_ymd] => 2025-01-07 04:03:05 [RateCDR] => 1 ) [2025-01-07 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:03:05' and `end` < '2025-01-07 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:03:18] Production.INFO: count ==157 [2025-01-07 04:03:18] Production.ERROR: pbx CDR StartTime 2025-01-07 01:03:05 - End Time 2025-01-07 04:03:05 [2025-01-07 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192324', 'tblTempUsageDetail_20' ) start [2025-01-07 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192324', 'tblTempUsageDetail_20' ) end [2025-01-07 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192324', 'tblTempVendorCDR_20' ) start [2025-01-07 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192324', 'tblTempVendorCDR_20' ) end [2025-01-07 04:03:18] Production.INFO: ProcessCDR(1,14192324,1,1,2) [2025-01-07 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192324', 'tblTempUsageDetail_20' ) start [2025-01-07 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192324', 'tblTempUsageDetail_20' ) end [2025-01-07 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:03:21] Production.INFO: ==31148== Releasing lock... [2025-01-07 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:04:05 [end_date_ymd] => 2025-01-07 04:04:05 [RateCDR] => 1 ) [2025-01-07 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:04:05' and `end` < '2025-01-07 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:04:19] Production.INFO: count ==152 [2025-01-07 04:04:19] Production.ERROR: pbx CDR StartTime 2025-01-07 01:04:05 - End Time 2025-01-07 04:04:05 [2025-01-07 04:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192329', 'tblTempUsageDetail_20' ) start [2025-01-07 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192329', 'tblTempUsageDetail_20' ) end [2025-01-07 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192329', 'tblTempVendorCDR_20' ) start [2025-01-07 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192329', 'tblTempVendorCDR_20' ) end [2025-01-07 04:04:19] Production.INFO: ProcessCDR(1,14192329,1,1,2) [2025-01-07 04:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192329', 'tblTempUsageDetail_20' ) start [2025-01-07 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192329', 'tblTempUsageDetail_20' ) end [2025-01-07 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:04:22] Production.INFO: ==31222== Releasing lock... [2025-01-07 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:04:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:05:05 [end_date_ymd] => 2025-01-07 04:05:05 [RateCDR] => 1 ) [2025-01-07 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:05:05' and `end` < '2025-01-07 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:05:18] Production.INFO: count ==151 [2025-01-07 04:05:18] Production.ERROR: pbx CDR StartTime 2025-01-07 01:05:05 - End Time 2025-01-07 04:05:05 [2025-01-07 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192334', 'tblTempUsageDetail_20' ) start [2025-01-07 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192334', 'tblTempUsageDetail_20' ) end [2025-01-07 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192334', 'tblTempVendorCDR_20' ) start [2025-01-07 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192334', 'tblTempVendorCDR_20' ) end [2025-01-07 04:05:18] Production.INFO: ProcessCDR(1,14192334,1,1,2) [2025-01-07 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192334', 'tblTempUsageDetail_20' ) start [2025-01-07 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192334', 'tblTempUsageDetail_20' ) end [2025-01-07 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:05:21] Production.INFO: ==31297== Releasing lock... [2025-01-07 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:05:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:06:05 [end_date_ymd] => 2025-01-07 04:06:05 [RateCDR] => 1 ) [2025-01-07 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:06:05' and `end` < '2025-01-07 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:06:19] Production.INFO: count ==151 [2025-01-07 04:06:19] Production.ERROR: pbx CDR StartTime 2025-01-07 01:06:05 - End Time 2025-01-07 04:06:05 [2025-01-07 04:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192338', 'tblTempUsageDetail_20' ) start [2025-01-07 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192338', 'tblTempUsageDetail_20' ) end [2025-01-07 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192338', 'tblTempVendorCDR_20' ) start [2025-01-07 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192338', 'tblTempVendorCDR_20' ) end [2025-01-07 04:06:19] Production.INFO: ProcessCDR(1,14192338,1,1,2) [2025-01-07 04:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192338', 'tblTempUsageDetail_20' ) start [2025-01-07 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192338', 'tblTempUsageDetail_20' ) end [2025-01-07 04:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:06:22] Production.INFO: ==31367== Releasing lock... [2025-01-07 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:06:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:07:05 [end_date_ymd] => 2025-01-07 04:07:05 [RateCDR] => 1 ) [2025-01-07 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:07:05' and `end` < '2025-01-07 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:07:18] Production.INFO: count ==150 [2025-01-07 04:07:18] Production.ERROR: pbx CDR StartTime 2025-01-07 01:07:05 - End Time 2025-01-07 04:07:05 [2025-01-07 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192344', 'tblTempUsageDetail_20' ) start [2025-01-07 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192344', 'tblTempUsageDetail_20' ) end [2025-01-07 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192344', 'tblTempVendorCDR_20' ) start [2025-01-07 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192344', 'tblTempVendorCDR_20' ) end [2025-01-07 04:07:18] Production.INFO: ProcessCDR(1,14192344,1,1,2) [2025-01-07 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192344', 'tblTempUsageDetail_20' ) start [2025-01-07 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192344', 'tblTempUsageDetail_20' ) end [2025-01-07 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:07:21] Production.INFO: ==31444== Releasing lock... [2025-01-07 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:07:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:08:05 [end_date_ymd] => 2025-01-07 04:08:05 [RateCDR] => 1 ) [2025-01-07 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:08:05' and `end` < '2025-01-07 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:08:19] Production.INFO: count ==150 [2025-01-07 04:08:19] Production.ERROR: pbx CDR StartTime 2025-01-07 01:08:05 - End Time 2025-01-07 04:08:05 [2025-01-07 04:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192349', 'tblTempUsageDetail_20' ) start [2025-01-07 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192349', 'tblTempUsageDetail_20' ) end [2025-01-07 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192349', 'tblTempVendorCDR_20' ) start [2025-01-07 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192349', 'tblTempVendorCDR_20' ) end [2025-01-07 04:08:19] Production.INFO: ProcessCDR(1,14192349,1,1,2) [2025-01-07 04:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192349', 'tblTempUsageDetail_20' ) start [2025-01-07 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192349', 'tblTempUsageDetail_20' ) end [2025-01-07 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:08:22] Production.INFO: ==31517== Releasing lock... [2025-01-07 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:08:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:09:04 [end_date_ymd] => 2025-01-07 04:09:04 [RateCDR] => 1 ) [2025-01-07 04:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:09:04' and `end` < '2025-01-07 04:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:09:17] Production.INFO: count ==150 [2025-01-07 04:09:17] Production.ERROR: pbx CDR StartTime 2025-01-07 01:09:04 - End Time 2025-01-07 04:09:04 [2025-01-07 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192354', 'tblTempUsageDetail_20' ) start [2025-01-07 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192354', 'tblTempUsageDetail_20' ) end [2025-01-07 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192354', 'tblTempVendorCDR_20' ) start [2025-01-07 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192354', 'tblTempVendorCDR_20' ) end [2025-01-07 04:09:17] Production.INFO: ProcessCDR(1,14192354,1,1,2) [2025-01-07 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192354', 'tblTempUsageDetail_20' ) start [2025-01-07 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192354', 'tblTempUsageDetail_20' ) end [2025-01-07 04:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:09:20] Production.INFO: ==31589== Releasing lock... [2025-01-07 04:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:09:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:10:06 [end_date_ymd] => 2025-01-07 04:10:06 [RateCDR] => 1 ) [2025-01-07 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:10:06' and `end` < '2025-01-07 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:10:19] Production.INFO: count ==144 [2025-01-07 04:10:19] Production.ERROR: pbx CDR StartTime 2025-01-07 01:10:06 - End Time 2025-01-07 04:10:06 [2025-01-07 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192360', 'tblTempUsageDetail_20' ) start [2025-01-07 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192360', 'tblTempUsageDetail_20' ) end [2025-01-07 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192360', 'tblTempVendorCDR_20' ) start [2025-01-07 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192360', 'tblTempVendorCDR_20' ) end [2025-01-07 04:10:19] Production.INFO: ProcessCDR(1,14192360,1,1,2) [2025-01-07 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192360', 'tblTempUsageDetail_20' ) start [2025-01-07 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192360', 'tblTempUsageDetail_20' ) end [2025-01-07 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:10:22] Production.INFO: ==31663== Releasing lock... [2025-01-07 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:10:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:11:05 [end_date_ymd] => 2025-01-07 04:11:05 [RateCDR] => 1 ) [2025-01-07 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:11:05' and `end` < '2025-01-07 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:11:18] Production.INFO: count ==140 [2025-01-07 04:11:18] Production.ERROR: pbx CDR StartTime 2025-01-07 01:11:05 - End Time 2025-01-07 04:11:05 [2025-01-07 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192365', 'tblTempUsageDetail_20' ) start [2025-01-07 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192365', 'tblTempUsageDetail_20' ) end [2025-01-07 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192365', 'tblTempVendorCDR_20' ) start [2025-01-07 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192365', 'tblTempVendorCDR_20' ) end [2025-01-07 04:11:18] Production.INFO: ProcessCDR(1,14192365,1,1,2) [2025-01-07 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192365', 'tblTempUsageDetail_20' ) start [2025-01-07 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192365', 'tblTempUsageDetail_20' ) end [2025-01-07 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:11:21] Production.INFO: ==31734== Releasing lock... [2025-01-07 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:11:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:12:04 [end_date_ymd] => 2025-01-07 04:12:04 [RateCDR] => 1 ) [2025-01-07 04:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:12:04' and `end` < '2025-01-07 04:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:12:18] Production.INFO: count ==140 [2025-01-07 04:12:18] Production.ERROR: pbx CDR StartTime 2025-01-07 01:12:04 - End Time 2025-01-07 04:12:04 [2025-01-07 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192370', 'tblTempUsageDetail_20' ) start [2025-01-07 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192370', 'tblTempUsageDetail_20' ) end [2025-01-07 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192370', 'tblTempVendorCDR_20' ) start [2025-01-07 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192370', 'tblTempVendorCDR_20' ) end [2025-01-07 04:12:18] Production.INFO: ProcessCDR(1,14192370,1,1,2) [2025-01-07 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192370', 'tblTempUsageDetail_20' ) start [2025-01-07 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192370', 'tblTempUsageDetail_20' ) end [2025-01-07 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:12:21] Production.INFO: ==31805== Releasing lock... [2025-01-07 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:12:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:13:05 [end_date_ymd] => 2025-01-07 04:13:05 [RateCDR] => 1 ) [2025-01-07 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:13:05' and `end` < '2025-01-07 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:13:20] Production.INFO: count ==139 [2025-01-07 04:13:20] Production.ERROR: pbx CDR StartTime 2025-01-07 01:13:05 - End Time 2025-01-07 04:13:05 [2025-01-07 04:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192375', 'tblTempUsageDetail_20' ) start [2025-01-07 04:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192375', 'tblTempUsageDetail_20' ) end [2025-01-07 04:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192375', 'tblTempVendorCDR_20' ) start [2025-01-07 04:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192375', 'tblTempVendorCDR_20' ) end [2025-01-07 04:13:20] Production.INFO: ProcessCDR(1,14192375,1,1,2) [2025-01-07 04:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192375', 'tblTempUsageDetail_20' ) start [2025-01-07 04:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192375', 'tblTempUsageDetail_20' ) end [2025-01-07 04:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:13:23] Production.INFO: ==31876== Releasing lock... [2025-01-07 04:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:13:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:14:04 [end_date_ymd] => 2025-01-07 04:14:04 [RateCDR] => 1 ) [2025-01-07 04:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:14:04' and `end` < '2025-01-07 04:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:14:17] Production.INFO: count ==139 [2025-01-07 04:14:17] Production.ERROR: pbx CDR StartTime 2025-01-07 01:14:04 - End Time 2025-01-07 04:14:04 [2025-01-07 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192380', 'tblTempUsageDetail_20' ) start [2025-01-07 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192380', 'tblTempUsageDetail_20' ) end [2025-01-07 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192380', 'tblTempVendorCDR_20' ) start [2025-01-07 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192380', 'tblTempVendorCDR_20' ) end [2025-01-07 04:14:17] Production.INFO: ProcessCDR(1,14192380,1,1,2) [2025-01-07 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192380', 'tblTempUsageDetail_20' ) start [2025-01-07 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192380', 'tblTempUsageDetail_20' ) end [2025-01-07 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:14:21] Production.INFO: ==31945== Releasing lock... [2025-01-07 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:14:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:15:05 [end_date_ymd] => 2025-01-07 04:15:05 [RateCDR] => 1 ) [2025-01-07 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:15:05' and `end` < '2025-01-07 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:15:18] Production.INFO: count ==139 [2025-01-07 04:15:18] Production.ERROR: pbx CDR StartTime 2025-01-07 01:15:05 - End Time 2025-01-07 04:15:05 [2025-01-07 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192385', 'tblTempUsageDetail_20' ) start [2025-01-07 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192385', 'tblTempUsageDetail_20' ) end [2025-01-07 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192385', 'tblTempVendorCDR_20' ) start [2025-01-07 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192385', 'tblTempVendorCDR_20' ) end [2025-01-07 04:15:18] Production.INFO: ProcessCDR(1,14192385,1,1,2) [2025-01-07 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192385', 'tblTempUsageDetail_20' ) start [2025-01-07 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192385', 'tblTempUsageDetail_20' ) end [2025-01-07 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:15:21] Production.INFO: ==32021== Releasing lock... [2025-01-07 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:15:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:16:05 [end_date_ymd] => 2025-01-07 04:16:05 [RateCDR] => 1 ) [2025-01-07 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:16:05' and `end` < '2025-01-07 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:16:18] Production.INFO: count ==139 [2025-01-07 04:16:18] Production.ERROR: pbx CDR StartTime 2025-01-07 01:16:05 - End Time 2025-01-07 04:16:05 [2025-01-07 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192390', 'tblTempUsageDetail_20' ) start [2025-01-07 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192390', 'tblTempUsageDetail_20' ) end [2025-01-07 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192390', 'tblTempVendorCDR_20' ) start [2025-01-07 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192390', 'tblTempVendorCDR_20' ) end [2025-01-07 04:16:18] Production.INFO: ProcessCDR(1,14192390,1,1,2) [2025-01-07 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192390', 'tblTempUsageDetail_20' ) start [2025-01-07 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192390', 'tblTempUsageDetail_20' ) end [2025-01-07 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:16:21] Production.INFO: ==32094== Releasing lock... [2025-01-07 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:16:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:17:06 [end_date_ymd] => 2025-01-07 04:17:06 [RateCDR] => 1 ) [2025-01-07 04:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:17:06' and `end` < '2025-01-07 04:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:17:18] Production.INFO: count ==139 [2025-01-07 04:17:18] Production.ERROR: pbx CDR StartTime 2025-01-07 01:17:06 - End Time 2025-01-07 04:17:06 [2025-01-07 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192395', 'tblTempUsageDetail_20' ) start [2025-01-07 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192395', 'tblTempUsageDetail_20' ) end [2025-01-07 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192395', 'tblTempVendorCDR_20' ) start [2025-01-07 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192395', 'tblTempVendorCDR_20' ) end [2025-01-07 04:17:18] Production.INFO: ProcessCDR(1,14192395,1,1,2) [2025-01-07 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192395', 'tblTempUsageDetail_20' ) start [2025-01-07 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192395', 'tblTempUsageDetail_20' ) end [2025-01-07 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:17:21] Production.INFO: ==32203== Releasing lock... [2025-01-07 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:17:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:18:04 [end_date_ymd] => 2025-01-07 04:18:04 [RateCDR] => 1 ) [2025-01-07 04:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:18:04' and `end` < '2025-01-07 04:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:18:17] Production.INFO: count ==139 [2025-01-07 04:18:17] Production.ERROR: pbx CDR StartTime 2025-01-07 01:18:04 - End Time 2025-01-07 04:18:04 [2025-01-07 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192400', 'tblTempUsageDetail_20' ) start [2025-01-07 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192400', 'tblTempUsageDetail_20' ) end [2025-01-07 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192400', 'tblTempVendorCDR_20' ) start [2025-01-07 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192400', 'tblTempVendorCDR_20' ) end [2025-01-07 04:18:17] Production.INFO: ProcessCDR(1,14192400,1,1,2) [2025-01-07 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192400', 'tblTempUsageDetail_20' ) start [2025-01-07 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192400', 'tblTempUsageDetail_20' ) end [2025-01-07 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:18:21] Production.INFO: ==32292== Releasing lock... [2025-01-07 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:18:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:19:05 [end_date_ymd] => 2025-01-07 04:19:05 [RateCDR] => 1 ) [2025-01-07 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:19:05' and `end` < '2025-01-07 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:19:18] Production.INFO: count ==139 [2025-01-07 04:19:18] Production.ERROR: pbx CDR StartTime 2025-01-07 01:19:05 - End Time 2025-01-07 04:19:05 [2025-01-07 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192405', 'tblTempUsageDetail_20' ) start [2025-01-07 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192405', 'tblTempUsageDetail_20' ) end [2025-01-07 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192405', 'tblTempVendorCDR_20' ) start [2025-01-07 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192405', 'tblTempVendorCDR_20' ) end [2025-01-07 04:19:18] Production.INFO: ProcessCDR(1,14192405,1,1,2) [2025-01-07 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192405', 'tblTempUsageDetail_20' ) start [2025-01-07 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192405', 'tblTempUsageDetail_20' ) end [2025-01-07 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:19:21] Production.INFO: ==32365== Releasing lock... [2025-01-07 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:19:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:20:06 [end_date_ymd] => 2025-01-07 04:20:06 [RateCDR] => 1 ) [2025-01-07 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:20:06' and `end` < '2025-01-07 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:20:20] Production.INFO: count ==135 [2025-01-07 04:20:20] Production.ERROR: pbx CDR StartTime 2025-01-07 01:20:06 - End Time 2025-01-07 04:20:06 [2025-01-07 04:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192411', 'tblTempUsageDetail_20' ) start [2025-01-07 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192411', 'tblTempUsageDetail_20' ) end [2025-01-07 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192411', 'tblTempVendorCDR_20' ) start [2025-01-07 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192411', 'tblTempVendorCDR_20' ) end [2025-01-07 04:20:20] Production.INFO: ProcessCDR(1,14192411,1,1,2) [2025-01-07 04:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192411', 'tblTempUsageDetail_20' ) start [2025-01-07 04:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192411', 'tblTempUsageDetail_20' ) end [2025-01-07 04:20:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:20:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:20:27] Production.INFO: ==32437== Releasing lock... [2025-01-07 04:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:20:27] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:21:05 [end_date_ymd] => 2025-01-07 04:21:05 [RateCDR] => 1 ) [2025-01-07 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:21:05' and `end` < '2025-01-07 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:21:18] Production.INFO: count ==135 [2025-01-07 04:21:18] Production.ERROR: pbx CDR StartTime 2025-01-07 01:21:05 - End Time 2025-01-07 04:21:05 [2025-01-07 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192416', 'tblTempUsageDetail_20' ) start [2025-01-07 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192416', 'tblTempUsageDetail_20' ) end [2025-01-07 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192416', 'tblTempVendorCDR_20' ) start [2025-01-07 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192416', 'tblTempVendorCDR_20' ) end [2025-01-07 04:21:18] Production.INFO: ProcessCDR(1,14192416,1,1,2) [2025-01-07 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192416', 'tblTempUsageDetail_20' ) start [2025-01-07 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192416', 'tblTempUsageDetail_20' ) end [2025-01-07 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:21:21] Production.INFO: ==32514== Releasing lock... [2025-01-07 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:21:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:22:06 [end_date_ymd] => 2025-01-07 04:22:06 [RateCDR] => 1 ) [2025-01-07 04:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:22:06' and `end` < '2025-01-07 04:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:22:19] Production.INFO: count ==135 [2025-01-07 04:22:19] Production.ERROR: pbx CDR StartTime 2025-01-07 01:22:06 - End Time 2025-01-07 04:22:06 [2025-01-07 04:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192421', 'tblTempUsageDetail_20' ) start [2025-01-07 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192421', 'tblTempUsageDetail_20' ) end [2025-01-07 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192421', 'tblTempVendorCDR_20' ) start [2025-01-07 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192421', 'tblTempVendorCDR_20' ) end [2025-01-07 04:22:19] Production.INFO: ProcessCDR(1,14192421,1,1,2) [2025-01-07 04:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192421', 'tblTempUsageDetail_20' ) start [2025-01-07 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192421', 'tblTempUsageDetail_20' ) end [2025-01-07 04:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:22:22] Production.INFO: ==32586== Releasing lock... [2025-01-07 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:22:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:23:05 [end_date_ymd] => 2025-01-07 04:23:05 [RateCDR] => 1 ) [2025-01-07 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:23:05' and `end` < '2025-01-07 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:23:18] Production.INFO: count ==135 [2025-01-07 04:23:18] Production.ERROR: pbx CDR StartTime 2025-01-07 01:23:05 - End Time 2025-01-07 04:23:05 [2025-01-07 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192426', 'tblTempUsageDetail_20' ) start [2025-01-07 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192426', 'tblTempUsageDetail_20' ) end [2025-01-07 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192426', 'tblTempVendorCDR_20' ) start [2025-01-07 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192426', 'tblTempVendorCDR_20' ) end [2025-01-07 04:23:18] Production.INFO: ProcessCDR(1,14192426,1,1,2) [2025-01-07 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192426', 'tblTempUsageDetail_20' ) start [2025-01-07 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192426', 'tblTempUsageDetail_20' ) end [2025-01-07 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:23:21] Production.INFO: ==32658== Releasing lock... [2025-01-07 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:23:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:24:05 [end_date_ymd] => 2025-01-07 04:24:05 [RateCDR] => 1 ) [2025-01-07 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:24:05' and `end` < '2025-01-07 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:24:19] Production.INFO: count ==135 [2025-01-07 04:24:19] Production.ERROR: pbx CDR StartTime 2025-01-07 01:24:05 - End Time 2025-01-07 04:24:05 [2025-01-07 04:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192431', 'tblTempUsageDetail_20' ) start [2025-01-07 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192431', 'tblTempUsageDetail_20' ) end [2025-01-07 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192431', 'tblTempVendorCDR_20' ) start [2025-01-07 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192431', 'tblTempVendorCDR_20' ) end [2025-01-07 04:24:19] Production.INFO: ProcessCDR(1,14192431,1,1,2) [2025-01-07 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192431', 'tblTempUsageDetail_20' ) start [2025-01-07 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192431', 'tblTempUsageDetail_20' ) end [2025-01-07 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:24:22] Production.INFO: ==32732== Releasing lock... [2025-01-07 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:24:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:25:05 [end_date_ymd] => 2025-01-07 04:25:05 [RateCDR] => 1 ) [2025-01-07 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:25:05' and `end` < '2025-01-07 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:25:17] Production.INFO: count ==135 [2025-01-07 04:25:17] Production.ERROR: pbx CDR StartTime 2025-01-07 01:25:05 - End Time 2025-01-07 04:25:05 [2025-01-07 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192436', 'tblTempUsageDetail_20' ) start [2025-01-07 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192436', 'tblTempUsageDetail_20' ) end [2025-01-07 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192436', 'tblTempVendorCDR_20' ) start [2025-01-07 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192436', 'tblTempVendorCDR_20' ) end [2025-01-07 04:25:17] Production.INFO: ProcessCDR(1,14192436,1,1,2) [2025-01-07 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192436', 'tblTempUsageDetail_20' ) start [2025-01-07 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192436', 'tblTempUsageDetail_20' ) end [2025-01-07 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:25:21] Production.INFO: ==355== Releasing lock... [2025-01-07 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:25:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:26:05 [end_date_ymd] => 2025-01-07 04:26:05 [RateCDR] => 1 ) [2025-01-07 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:26:05' and `end` < '2025-01-07 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:26:20] Production.INFO: count ==128 [2025-01-07 04:26:20] Production.ERROR: pbx CDR StartTime 2025-01-07 01:26:05 - End Time 2025-01-07 04:26:05 [2025-01-07 04:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192441', 'tblTempUsageDetail_20' ) start [2025-01-07 04:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192441', 'tblTempUsageDetail_20' ) end [2025-01-07 04:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192441', 'tblTempVendorCDR_20' ) start [2025-01-07 04:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192441', 'tblTempVendorCDR_20' ) end [2025-01-07 04:26:20] Production.INFO: ProcessCDR(1,14192441,1,1,2) [2025-01-07 04:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192441', 'tblTempUsageDetail_20' ) start [2025-01-07 04:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192441', 'tblTempUsageDetail_20' ) end [2025-01-07 04:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:26:23] Production.INFO: ==447== Releasing lock... [2025-01-07 04:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:26:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:27:05 [end_date_ymd] => 2025-01-07 04:27:05 [RateCDR] => 1 ) [2025-01-07 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:27:05' and `end` < '2025-01-07 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:27:18] Production.INFO: count ==128 [2025-01-07 04:27:18] Production.ERROR: pbx CDR StartTime 2025-01-07 01:27:05 - End Time 2025-01-07 04:27:05 [2025-01-07 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192446', 'tblTempUsageDetail_20' ) start [2025-01-07 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192446', 'tblTempUsageDetail_20' ) end [2025-01-07 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192446', 'tblTempVendorCDR_20' ) start [2025-01-07 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192446', 'tblTempVendorCDR_20' ) end [2025-01-07 04:27:18] Production.INFO: ProcessCDR(1,14192446,1,1,2) [2025-01-07 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192446', 'tblTempUsageDetail_20' ) start [2025-01-07 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192446', 'tblTempUsageDetail_20' ) end [2025-01-07 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:27:21] Production.INFO: ==543== Releasing lock... [2025-01-07 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:28:05 [end_date_ymd] => 2025-01-07 04:28:05 [RateCDR] => 1 ) [2025-01-07 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:28:05' and `end` < '2025-01-07 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:28:19] Production.INFO: count ==128 [2025-01-07 04:28:19] Production.ERROR: pbx CDR StartTime 2025-01-07 01:28:05 - End Time 2025-01-07 04:28:05 [2025-01-07 04:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192451', 'tblTempUsageDetail_20' ) start [2025-01-07 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192451', 'tblTempUsageDetail_20' ) end [2025-01-07 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192451', 'tblTempVendorCDR_20' ) start [2025-01-07 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192451', 'tblTempVendorCDR_20' ) end [2025-01-07 04:28:19] Production.INFO: ProcessCDR(1,14192451,1,1,2) [2025-01-07 04:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192451', 'tblTempUsageDetail_20' ) start [2025-01-07 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192451', 'tblTempUsageDetail_20' ) end [2025-01-07 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:28:22] Production.INFO: ==647== Releasing lock... [2025-01-07 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:28:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 04:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:29:04 [end_date_ymd] => 2025-01-07 04:29:04 [RateCDR] => 1 ) [2025-01-07 04:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:29:04' and `end` < '2025-01-07 04:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:29:19] Production.INFO: count ==128 [2025-01-07 04:29:19] Production.ERROR: pbx CDR StartTime 2025-01-07 01:29:04 - End Time 2025-01-07 04:29:04 [2025-01-07 04:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192456', 'tblTempUsageDetail_20' ) start [2025-01-07 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192456', 'tblTempUsageDetail_20' ) end [2025-01-07 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192456', 'tblTempVendorCDR_20' ) start [2025-01-07 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192456', 'tblTempVendorCDR_20' ) end [2025-01-07 04:29:19] Production.INFO: ProcessCDR(1,14192456,1,1,2) [2025-01-07 04:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192456', 'tblTempUsageDetail_20' ) start [2025-01-07 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192456', 'tblTempUsageDetail_20' ) end [2025-01-07 04:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:29:22] Production.INFO: ==768== Releasing lock... [2025-01-07 04:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:29:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:30:06 [end_date_ymd] => 2025-01-07 04:30:06 [RateCDR] => 1 ) [2025-01-07 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:30:06' and `end` < '2025-01-07 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:30:19] Production.INFO: count ==133 [2025-01-07 04:30:19] Production.ERROR: pbx CDR StartTime 2025-01-07 01:30:06 - End Time 2025-01-07 04:30:06 [2025-01-07 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192462', 'tblTempUsageDetail_20' ) start [2025-01-07 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192462', 'tblTempUsageDetail_20' ) end [2025-01-07 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192462', 'tblTempVendorCDR_20' ) start [2025-01-07 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192462', 'tblTempVendorCDR_20' ) end [2025-01-07 04:30:19] Production.INFO: ProcessCDR(1,14192462,1,1,2) [2025-01-07 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192462', 'tblTempUsageDetail_20' ) start [2025-01-07 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192462', 'tblTempUsageDetail_20' ) end [2025-01-07 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:30:22] Production.INFO: ==866== Releasing lock... [2025-01-07 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:31:05 [end_date_ymd] => 2025-01-07 04:31:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 01:31:05' and `end` < '2025-01-07 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-01-07 04:31:19] Production.INFO: count ==140 [2025-01-07 04:31:19] Production.ERROR: pbx CDR StartTime 2025-01-07 01:31:05 - End Time 2025-01-07 04:31:05 [2025-01-07 04:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192468', 'tblTempUsageDetail_20' ) start [2025-01-07 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192468', 'tblTempUsageDetail_20' ) end [2025-01-07 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192468', 'tblTempVendorCDR_20' ) start [2025-01-07 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192468', 'tblTempVendorCDR_20' ) end [2025-01-07 04:31:19] Production.INFO: ProcessCDR(1,14192468,1,1,2) [2025-01-07 04:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192468', 'tblTempUsageDetail_20' ) start [2025-01-07 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192468', 'tblTempUsageDetail_20' ) end [2025-01-07 04:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:31:23] Production.INFO: ==1028== Releasing lock... [2025-01-07 04:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:31:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:32:05 [end_date_ymd] => 2025-01-07 04:32:05 [RateCDR] => 1 ) [2025-01-07 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:32:05' and `end` < '2025-01-07 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:32:18] Production.INFO: count ==140 [2025-01-07 04:32:18] Production.ERROR: pbx CDR StartTime 2025-01-07 01:32:05 - End Time 2025-01-07 04:32:05 [2025-01-07 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192473', 'tblTempUsageDetail_20' ) start [2025-01-07 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192473', 'tblTempUsageDetail_20' ) end [2025-01-07 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192473', 'tblTempVendorCDR_20' ) start [2025-01-07 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192473', 'tblTempVendorCDR_20' ) end [2025-01-07 04:32:18] Production.INFO: ProcessCDR(1,14192473,1,1,2) [2025-01-07 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192473', 'tblTempUsageDetail_20' ) start [2025-01-07 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192473', 'tblTempUsageDetail_20' ) end [2025-01-07 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:32:21] Production.INFO: ==1177== Releasing lock... [2025-01-07 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:33:04 [end_date_ymd] => 2025-01-07 04:33:04 [RateCDR] => 1 ) [2025-01-07 04:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:33:04' and `end` < '2025-01-07 04:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:33:19] Production.INFO: count ==140 [2025-01-07 04:33:19] Production.ERROR: pbx CDR StartTime 2025-01-07 01:33:04 - End Time 2025-01-07 04:33:04 [2025-01-07 04:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192478', 'tblTempUsageDetail_20' ) start [2025-01-07 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192478', 'tblTempUsageDetail_20' ) end [2025-01-07 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192478', 'tblTempVendorCDR_20' ) start [2025-01-07 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192478', 'tblTempVendorCDR_20' ) end [2025-01-07 04:33:19] Production.INFO: ProcessCDR(1,14192478,1,1,2) [2025-01-07 04:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192478', 'tblTempUsageDetail_20' ) start [2025-01-07 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192478', 'tblTempUsageDetail_20' ) end [2025-01-07 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:33:22] Production.INFO: ==1281== Releasing lock... [2025-01-07 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:33:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:34:05 [end_date_ymd] => 2025-01-07 04:34:05 [RateCDR] => 1 ) [2025-01-07 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:34:05' and `end` < '2025-01-07 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:34:18] Production.INFO: count ==140 [2025-01-07 04:34:18] Production.ERROR: pbx CDR StartTime 2025-01-07 01:34:05 - End Time 2025-01-07 04:34:05 [2025-01-07 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192483', 'tblTempUsageDetail_20' ) start [2025-01-07 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192483', 'tblTempUsageDetail_20' ) end [2025-01-07 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192483', 'tblTempVendorCDR_20' ) start [2025-01-07 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192483', 'tblTempVendorCDR_20' ) end [2025-01-07 04:34:18] Production.INFO: ProcessCDR(1,14192483,1,1,2) [2025-01-07 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192483', 'tblTempUsageDetail_20' ) start [2025-01-07 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192483', 'tblTempUsageDetail_20' ) end [2025-01-07 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:34:21] Production.INFO: ==1377== Releasing lock... [2025-01-07 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:34:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:35:04 [end_date_ymd] => 2025-01-07 04:35:04 [RateCDR] => 1 ) [2025-01-07 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-01-07 01:35:04' and `end` < '2025-01-07 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-01-07 04:35:17] Production.INFO: count ==140 [2025-01-07 04:35:17] Production.ERROR: pbx CDR StartTime 2025-01-07 01:35:04 - End Time 2025-01-07 04:35:04 [2025-01-07 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192488', 'tblTempUsageDetail_20' ) start [2025-01-07 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192488', 'tblTempUsageDetail_20' ) end [2025-01-07 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192488', 'tblTempVendorCDR_20' ) start [2025-01-07 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192488', 'tblTempVendorCDR_20' ) end [2025-01-07 04:35:17] Production.INFO: ProcessCDR(1,14192488,1,1,2) [2025-01-07 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192488', 'tblTempUsageDetail_20' ) start [2025-01-07 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192488', 'tblTempUsageDetail_20' ) end [2025-01-07 04:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:35:20] Production.INFO: ==1467== Releasing lock... [2025-01-07 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:35:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:36:05 [end_date_ymd] => 2025-01-07 04:36:05 [RateCDR] => 1 ) [2025-01-07 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:36:05' and `end` < '2025-01-07 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:36:18] Production.INFO: count ==140 [2025-01-07 04:36:18] Production.ERROR: pbx CDR StartTime 2025-01-07 01:36:05 - End Time 2025-01-07 04:36:05 [2025-01-07 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192493', 'tblTempUsageDetail_20' ) start [2025-01-07 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192493', 'tblTempUsageDetail_20' ) end [2025-01-07 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192493', 'tblTempVendorCDR_20' ) start [2025-01-07 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192493', 'tblTempVendorCDR_20' ) end [2025-01-07 04:36:18] Production.INFO: ProcessCDR(1,14192493,1,1,2) [2025-01-07 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192493', 'tblTempUsageDetail_20' ) start [2025-01-07 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192493', 'tblTempUsageDetail_20' ) end [2025-01-07 04:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:36:22] Production.INFO: ==1577== Releasing lock... [2025-01-07 04:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:36:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:37:05 [end_date_ymd] => 2025-01-07 04:37:05 [RateCDR] => 1 ) [2025-01-07 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:37:05' and `end` < '2025-01-07 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:37:18] Production.INFO: count ==140 [2025-01-07 04:37:18] Production.ERROR: pbx CDR StartTime 2025-01-07 01:37:05 - End Time 2025-01-07 04:37:05 [2025-01-07 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192498', 'tblTempUsageDetail_20' ) start [2025-01-07 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192498', 'tblTempUsageDetail_20' ) end [2025-01-07 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192498', 'tblTempVendorCDR_20' ) start [2025-01-07 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192498', 'tblTempVendorCDR_20' ) end [2025-01-07 04:37:18] Production.INFO: ProcessCDR(1,14192498,1,1,2) [2025-01-07 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192498', 'tblTempUsageDetail_20' ) start [2025-01-07 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192498', 'tblTempUsageDetail_20' ) end [2025-01-07 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:37:21] Production.INFO: ==1647== Releasing lock... [2025-01-07 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:37:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:38:06 [end_date_ymd] => 2025-01-07 04:38:06 [RateCDR] => 1 ) [2025-01-07 04:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:38:06' and `end` < '2025-01-07 04:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:38:19] Production.INFO: count ==138 [2025-01-07 04:38:19] Production.ERROR: pbx CDR StartTime 2025-01-07 01:38:06 - End Time 2025-01-07 04:38:06 [2025-01-07 04:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192503', 'tblTempUsageDetail_20' ) start [2025-01-07 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192503', 'tblTempUsageDetail_20' ) end [2025-01-07 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192503', 'tblTempVendorCDR_20' ) start [2025-01-07 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192503', 'tblTempVendorCDR_20' ) end [2025-01-07 04:38:19] Production.INFO: ProcessCDR(1,14192503,1,1,2) [2025-01-07 04:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192503', 'tblTempUsageDetail_20' ) start [2025-01-07 04:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192503', 'tblTempUsageDetail_20' ) end [2025-01-07 04:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:38:23] Production.INFO: ==1720== Releasing lock... [2025-01-07 04:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:38:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:39:05 [end_date_ymd] => 2025-01-07 04:39:05 [RateCDR] => 1 ) [2025-01-07 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:39:05' and `end` < '2025-01-07 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:39:19] Production.INFO: count ==135 [2025-01-07 04:39:19] Production.ERROR: pbx CDR StartTime 2025-01-07 01:39:05 - End Time 2025-01-07 04:39:05 [2025-01-07 04:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192508', 'tblTempUsageDetail_20' ) start [2025-01-07 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192508', 'tblTempUsageDetail_20' ) end [2025-01-07 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192508', 'tblTempVendorCDR_20' ) start [2025-01-07 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192508', 'tblTempVendorCDR_20' ) end [2025-01-07 04:39:19] Production.INFO: ProcessCDR(1,14192508,1,1,2) [2025-01-07 04:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192508', 'tblTempUsageDetail_20' ) start [2025-01-07 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192508', 'tblTempUsageDetail_20' ) end [2025-01-07 04:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:39:22] Production.INFO: ==1791== Releasing lock... [2025-01-07 04:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:39:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:40:06 [end_date_ymd] => 2025-01-07 04:40:06 [RateCDR] => 1 ) [2025-01-07 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:40:06' and `end` < '2025-01-07 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:40:19] Production.INFO: count ==128 [2025-01-07 04:40:19] Production.ERROR: pbx CDR StartTime 2025-01-07 01:40:06 - End Time 2025-01-07 04:40:06 [2025-01-07 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192514', 'tblTempUsageDetail_20' ) start [2025-01-07 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192514', 'tblTempUsageDetail_20' ) end [2025-01-07 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192514', 'tblTempVendorCDR_20' ) start [2025-01-07 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192514', 'tblTempVendorCDR_20' ) end [2025-01-07 04:40:19] Production.INFO: ProcessCDR(1,14192514,1,1,2) [2025-01-07 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192514', 'tblTempUsageDetail_20' ) start [2025-01-07 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192514', 'tblTempUsageDetail_20' ) end [2025-01-07 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:40:22] Production.INFO: ==1869== Releasing lock... [2025-01-07 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:41:05 [end_date_ymd] => 2025-01-07 04:41:05 [RateCDR] => 1 ) [2025-01-07 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:41:05' and `end` < '2025-01-07 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:41:17] Production.INFO: count ==128 [2025-01-07 04:41:17] Production.ERROR: pbx CDR StartTime 2025-01-07 01:41:05 - End Time 2025-01-07 04:41:05 [2025-01-07 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192519', 'tblTempUsageDetail_20' ) start [2025-01-07 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192519', 'tblTempUsageDetail_20' ) end [2025-01-07 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192519', 'tblTempVendorCDR_20' ) start [2025-01-07 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192519', 'tblTempVendorCDR_20' ) end [2025-01-07 04:41:17] Production.INFO: ProcessCDR(1,14192519,1,1,2) [2025-01-07 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192519', 'tblTempUsageDetail_20' ) start [2025-01-07 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192519', 'tblTempUsageDetail_20' ) end [2025-01-07 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:41:21] Production.INFO: ==1941== Releasing lock... [2025-01-07 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:42:05 [end_date_ymd] => 2025-01-07 04:42:05 [RateCDR] => 1 ) [2025-01-07 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:42:05' and `end` < '2025-01-07 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:42:20] Production.INFO: count ==128 [2025-01-07 04:42:20] Production.ERROR: pbx CDR StartTime 2025-01-07 01:42:05 - End Time 2025-01-07 04:42:05 [2025-01-07 04:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192524', 'tblTempUsageDetail_20' ) start [2025-01-07 04:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192524', 'tblTempUsageDetail_20' ) end [2025-01-07 04:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192524', 'tblTempVendorCDR_20' ) start [2025-01-07 04:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192524', 'tblTempVendorCDR_20' ) end [2025-01-07 04:42:20] Production.INFO: ProcessCDR(1,14192524,1,1,2) [2025-01-07 04:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192524', 'tblTempUsageDetail_20' ) start [2025-01-07 04:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192524', 'tblTempUsageDetail_20' ) end [2025-01-07 04:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:42:23] Production.INFO: ==2017== Releasing lock... [2025-01-07 04:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:42:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:43:05 [end_date_ymd] => 2025-01-07 04:43:05 [RateCDR] => 1 ) [2025-01-07 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:43:05' and `end` < '2025-01-07 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:43:18] Production.INFO: count ==128 [2025-01-07 04:43:18] Production.ERROR: pbx CDR StartTime 2025-01-07 01:43:05 - End Time 2025-01-07 04:43:05 [2025-01-07 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192529', 'tblTempUsageDetail_20' ) start [2025-01-07 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192529', 'tblTempUsageDetail_20' ) end [2025-01-07 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192529', 'tblTempVendorCDR_20' ) start [2025-01-07 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192529', 'tblTempVendorCDR_20' ) end [2025-01-07 04:43:18] Production.INFO: ProcessCDR(1,14192529,1,1,2) [2025-01-07 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192529', 'tblTempUsageDetail_20' ) start [2025-01-07 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192529', 'tblTempUsageDetail_20' ) end [2025-01-07 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:43:21] Production.INFO: ==2102== Releasing lock... [2025-01-07 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:44:05 [end_date_ymd] => 2025-01-07 04:44:05 [RateCDR] => 1 ) [2025-01-07 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:44:05' and `end` < '2025-01-07 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:44:18] Production.INFO: count ==128 [2025-01-07 04:44:19] Production.ERROR: pbx CDR StartTime 2025-01-07 01:44:05 - End Time 2025-01-07 04:44:05 [2025-01-07 04:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192534', 'tblTempUsageDetail_20' ) start [2025-01-07 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192534', 'tblTempUsageDetail_20' ) end [2025-01-07 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192534', 'tblTempVendorCDR_20' ) start [2025-01-07 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192534', 'tblTempVendorCDR_20' ) end [2025-01-07 04:44:19] Production.INFO: ProcessCDR(1,14192534,1,1,2) [2025-01-07 04:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192534', 'tblTempUsageDetail_20' ) start [2025-01-07 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192534', 'tblTempUsageDetail_20' ) end [2025-01-07 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:44:22] Production.INFO: ==2177== Releasing lock... [2025-01-07 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:44:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:45:05 [end_date_ymd] => 2025-01-07 04:45:05 [RateCDR] => 1 ) [2025-01-07 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:45:05' and `end` < '2025-01-07 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:45:18] Production.INFO: count ==128 [2025-01-07 04:45:18] Production.ERROR: pbx CDR StartTime 2025-01-07 01:45:05 - End Time 2025-01-07 04:45:05 [2025-01-07 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192539', 'tblTempUsageDetail_20' ) start [2025-01-07 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192539', 'tblTempUsageDetail_20' ) end [2025-01-07 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192539', 'tblTempVendorCDR_20' ) start [2025-01-07 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192539', 'tblTempVendorCDR_20' ) end [2025-01-07 04:45:18] Production.INFO: ProcessCDR(1,14192539,1,1,2) [2025-01-07 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192539', 'tblTempUsageDetail_20' ) start [2025-01-07 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192539', 'tblTempUsageDetail_20' ) end [2025-01-07 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:45:21] Production.INFO: ==2249== Releasing lock... [2025-01-07 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:46:05 [end_date_ymd] => 2025-01-07 04:46:05 [RateCDR] => 1 ) [2025-01-07 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:46:05' and `end` < '2025-01-07 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:46:26] Production.INFO: count ==128 [2025-01-07 04:46:26] Production.ERROR: pbx CDR StartTime 2025-01-07 01:46:05 - End Time 2025-01-07 04:46:05 [2025-01-07 04:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192544', 'tblTempUsageDetail_20' ) start [2025-01-07 04:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192544', 'tblTempUsageDetail_20' ) end [2025-01-07 04:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192544', 'tblTempVendorCDR_20' ) start [2025-01-07 04:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192544', 'tblTempVendorCDR_20' ) end [2025-01-07 04:46:26] Production.INFO: ProcessCDR(1,14192544,1,1,2) [2025-01-07 04:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192544', 'tblTempUsageDetail_20' ) start [2025-01-07 04:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192544', 'tblTempUsageDetail_20' ) end [2025-01-07 04:46:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:46:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:46:29] Production.INFO: ==2324== Releasing lock... [2025-01-07 04:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:46:29] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 04:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:47:06 [end_date_ymd] => 2025-01-07 04:47:06 [RateCDR] => 1 ) [2025-01-07 04:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:47:06' and `end` < '2025-01-07 04:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:47:21] Production.INFO: count ==127 [2025-01-07 04:47:21] Production.ERROR: pbx CDR StartTime 2025-01-07 01:47:06 - End Time 2025-01-07 04:47:06 [2025-01-07 04:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192549', 'tblTempUsageDetail_20' ) start [2025-01-07 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192549', 'tblTempUsageDetail_20' ) end [2025-01-07 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192549', 'tblTempVendorCDR_20' ) start [2025-01-07 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192549', 'tblTempVendorCDR_20' ) end [2025-01-07 04:47:21] Production.INFO: ProcessCDR(1,14192549,1,1,2) [2025-01-07 04:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192549', 'tblTempUsageDetail_20' ) start [2025-01-07 04:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192549', 'tblTempUsageDetail_20' ) end [2025-01-07 04:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:47:24] Production.INFO: ==2416== Releasing lock... [2025-01-07 04:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:47:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:48:05 [end_date_ymd] => 2025-01-07 04:48:05 [RateCDR] => 1 ) [2025-01-07 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:48:05' and `end` < '2025-01-07 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:48:21] Production.INFO: count ==127 [2025-01-07 04:48:21] Production.ERROR: pbx CDR StartTime 2025-01-07 01:48:05 - End Time 2025-01-07 04:48:05 [2025-01-07 04:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192554', 'tblTempUsageDetail_20' ) start [2025-01-07 04:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192554', 'tblTempUsageDetail_20' ) end [2025-01-07 04:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192554', 'tblTempVendorCDR_20' ) start [2025-01-07 04:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192554', 'tblTempVendorCDR_20' ) end [2025-01-07 04:48:21] Production.INFO: ProcessCDR(1,14192554,1,1,2) [2025-01-07 04:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192554', 'tblTempUsageDetail_20' ) start [2025-01-07 04:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192554', 'tblTempUsageDetail_20' ) end [2025-01-07 04:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:48:24] Production.INFO: ==2542== Releasing lock... [2025-01-07 04:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:48:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:49:05 [end_date_ymd] => 2025-01-07 04:49:05 [RateCDR] => 1 ) [2025-01-07 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:49:05' and `end` < '2025-01-07 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:49:20] Production.INFO: count ==123 [2025-01-07 04:49:20] Production.ERROR: pbx CDR StartTime 2025-01-07 01:49:05 - End Time 2025-01-07 04:49:05 [2025-01-07 04:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192559', 'tblTempUsageDetail_20' ) start [2025-01-07 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192559', 'tblTempUsageDetail_20' ) end [2025-01-07 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192559', 'tblTempVendorCDR_20' ) start [2025-01-07 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192559', 'tblTempVendorCDR_20' ) end [2025-01-07 04:49:20] Production.INFO: ProcessCDR(1,14192559,1,1,2) [2025-01-07 04:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192559', 'tblTempUsageDetail_20' ) start [2025-01-07 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192559', 'tblTempUsageDetail_20' ) end [2025-01-07 04:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:49:23] Production.INFO: ==2613== Releasing lock... [2025-01-07 04:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:49:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:50:05 [end_date_ymd] => 2025-01-07 04:50:05 [RateCDR] => 1 ) [2025-01-07 04:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:50:05' and `end` < '2025-01-07 04:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:50:23] Production.INFO: count ==111 [2025-01-07 04:50:23] Production.ERROR: pbx CDR StartTime 2025-01-07 01:50:05 - End Time 2025-01-07 04:50:05 [2025-01-07 04:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192564', 'tblTempUsageDetail_20' ) start [2025-01-07 04:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192564', 'tblTempUsageDetail_20' ) end [2025-01-07 04:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192564', 'tblTempVendorCDR_20' ) start [2025-01-07 04:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192564', 'tblTempVendorCDR_20' ) end [2025-01-07 04:50:23] Production.INFO: ProcessCDR(1,14192564,1,1,2) [2025-01-07 04:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192564', 'tblTempUsageDetail_20' ) start [2025-01-07 04:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192564', 'tblTempUsageDetail_20' ) end [2025-01-07 04:50:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:50:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:50:26] Production.INFO: ==2694== Releasing lock... [2025-01-07 04:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:50:26] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:51:05 [end_date_ymd] => 2025-01-07 04:51:05 [RateCDR] => 1 ) [2025-01-07 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:51:05' and `end` < '2025-01-07 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:51:22] Production.INFO: count ==104 [2025-01-07 04:51:22] Production.ERROR: pbx CDR StartTime 2025-01-07 01:51:05 - End Time 2025-01-07 04:51:05 [2025-01-07 04:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192570', 'tblTempUsageDetail_20' ) start [2025-01-07 04:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192570', 'tblTempUsageDetail_20' ) end [2025-01-07 04:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192570', 'tblTempVendorCDR_20' ) start [2025-01-07 04:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192570', 'tblTempVendorCDR_20' ) end [2025-01-07 04:51:22] Production.INFO: ProcessCDR(1,14192570,1,1,2) [2025-01-07 04:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192570', 'tblTempUsageDetail_20' ) start [2025-01-07 04:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192570', 'tblTempUsageDetail_20' ) end [2025-01-07 04:51:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:51:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:51:25] Production.INFO: ==2786== Releasing lock... [2025-01-07 04:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:51:25] Production.INFO: 28 MB #Memory Used# [2025-01-07 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:52:05 [end_date_ymd] => 2025-01-07 04:52:05 [RateCDR] => 1 ) [2025-01-07 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:52:05' and `end` < '2025-01-07 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:52:22] Production.INFO: count ==104 [2025-01-07 04:52:22] Production.ERROR: pbx CDR StartTime 2025-01-07 01:52:05 - End Time 2025-01-07 04:52:05 [2025-01-07 04:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192575', 'tblTempUsageDetail_20' ) start [2025-01-07 04:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192575', 'tblTempUsageDetail_20' ) end [2025-01-07 04:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192575', 'tblTempVendorCDR_20' ) start [2025-01-07 04:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192575', 'tblTempVendorCDR_20' ) end [2025-01-07 04:52:22] Production.INFO: ProcessCDR(1,14192575,1,1,2) [2025-01-07 04:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192575', 'tblTempUsageDetail_20' ) start [2025-01-07 04:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192575', 'tblTempUsageDetail_20' ) end [2025-01-07 04:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:52:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:52:25] Production.INFO: ==2865== Releasing lock... [2025-01-07 04:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:52:25] Production.INFO: 28 MB #Memory Used# [2025-01-07 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:53:05 [end_date_ymd] => 2025-01-07 04:53:05 [RateCDR] => 1 ) [2025-01-07 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:53:05' and `end` < '2025-01-07 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:53:20] Production.INFO: count ==104 [2025-01-07 04:53:20] Production.ERROR: pbx CDR StartTime 2025-01-07 01:53:05 - End Time 2025-01-07 04:53:05 [2025-01-07 04:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192580', 'tblTempUsageDetail_20' ) start [2025-01-07 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192580', 'tblTempUsageDetail_20' ) end [2025-01-07 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192580', 'tblTempVendorCDR_20' ) start [2025-01-07 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192580', 'tblTempVendorCDR_20' ) end [2025-01-07 04:53:20] Production.INFO: ProcessCDR(1,14192580,1,1,2) [2025-01-07 04:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192580', 'tblTempUsageDetail_20' ) start [2025-01-07 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192580', 'tblTempUsageDetail_20' ) end [2025-01-07 04:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:53:24] Production.INFO: ==2935== Releasing lock... [2025-01-07 04:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:53:24] Production.INFO: 28 MB #Memory Used# [2025-01-07 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:54:05 [end_date_ymd] => 2025-01-07 04:54:05 [RateCDR] => 1 ) [2025-01-07 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:54:05' and `end` < '2025-01-07 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:54:22] Production.INFO: count ==104 [2025-01-07 04:54:22] Production.ERROR: pbx CDR StartTime 2025-01-07 01:54:05 - End Time 2025-01-07 04:54:05 [2025-01-07 04:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192585', 'tblTempUsageDetail_20' ) start [2025-01-07 04:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192585', 'tblTempUsageDetail_20' ) end [2025-01-07 04:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192585', 'tblTempVendorCDR_20' ) start [2025-01-07 04:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192585', 'tblTempVendorCDR_20' ) end [2025-01-07 04:54:22] Production.INFO: ProcessCDR(1,14192585,1,1,2) [2025-01-07 04:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192585', 'tblTempUsageDetail_20' ) start [2025-01-07 04:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192585', 'tblTempUsageDetail_20' ) end [2025-01-07 04:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:54:25] Production.INFO: ==3007== Releasing lock... [2025-01-07 04:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:54:25] Production.INFO: 28 MB #Memory Used# [2025-01-07 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:55:05 [end_date_ymd] => 2025-01-07 04:55:05 [RateCDR] => 1 ) [2025-01-07 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:55:05' and `end` < '2025-01-07 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:55:21] Production.INFO: count ==104 [2025-01-07 04:55:21] Production.ERROR: pbx CDR StartTime 2025-01-07 01:55:05 - End Time 2025-01-07 04:55:05 [2025-01-07 04:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192590', 'tblTempUsageDetail_20' ) start [2025-01-07 04:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192590', 'tblTempUsageDetail_20' ) end [2025-01-07 04:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192590', 'tblTempVendorCDR_20' ) start [2025-01-07 04:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192590', 'tblTempVendorCDR_20' ) end [2025-01-07 04:55:21] Production.INFO: ProcessCDR(1,14192590,1,1,2) [2025-01-07 04:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192590', 'tblTempUsageDetail_20' ) start [2025-01-07 04:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192590', 'tblTempUsageDetail_20' ) end [2025-01-07 04:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:55:24] Production.INFO: ==3080== Releasing lock... [2025-01-07 04:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:55:24] Production.INFO: 28 MB #Memory Used# [2025-01-07 04:56:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:56:07 [end_date_ymd] => 2025-01-07 04:56:07 [RateCDR] => 1 ) [2025-01-07 04:56:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:56:07' and `end` < '2025-01-07 04:56:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:56:21] Production.INFO: count ==104 [2025-01-07 04:56:21] Production.ERROR: pbx CDR StartTime 2025-01-07 01:56:07 - End Time 2025-01-07 04:56:07 [2025-01-07 04:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192595', 'tblTempUsageDetail_20' ) start [2025-01-07 04:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192595', 'tblTempUsageDetail_20' ) end [2025-01-07 04:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192595', 'tblTempVendorCDR_20' ) start [2025-01-07 04:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192595', 'tblTempVendorCDR_20' ) end [2025-01-07 04:56:22] Production.INFO: ProcessCDR(1,14192595,1,1,2) [2025-01-07 04:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192595', 'tblTempUsageDetail_20' ) start [2025-01-07 04:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192595', 'tblTempUsageDetail_20' ) end [2025-01-07 04:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:56:25] Production.INFO: ==3158== Releasing lock... [2025-01-07 04:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:56:25] Production.INFO: 28 MB #Memory Used# [2025-01-07 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:57:05 [end_date_ymd] => 2025-01-07 04:57:05 [RateCDR] => 1 ) [2025-01-07 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:57:05' and `end` < '2025-01-07 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:57:20] Production.INFO: count ==104 [2025-01-07 04:57:20] Production.ERROR: pbx CDR StartTime 2025-01-07 01:57:05 - End Time 2025-01-07 04:57:05 [2025-01-07 04:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192600', 'tblTempUsageDetail_20' ) start [2025-01-07 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192600', 'tblTempUsageDetail_20' ) end [2025-01-07 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192600', 'tblTempVendorCDR_20' ) start [2025-01-07 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192600', 'tblTempVendorCDR_20' ) end [2025-01-07 04:57:20] Production.INFO: ProcessCDR(1,14192600,1,1,2) [2025-01-07 04:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192600', 'tblTempUsageDetail_20' ) start [2025-01-07 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192600', 'tblTempUsageDetail_20' ) end [2025-01-07 04:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:57:23] Production.INFO: ==3251== Releasing lock... [2025-01-07 04:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:57:23] Production.INFO: 28 MB #Memory Used# [2025-01-07 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:58:05 [end_date_ymd] => 2025-01-07 04:58:05 [RateCDR] => 1 ) [2025-01-07 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 01:58:05' and `end` < '2025-01-07 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:58:21] Production.INFO: count ==104 [2025-01-07 04:58:21] Production.ERROR: pbx CDR StartTime 2025-01-07 01:58:05 - End Time 2025-01-07 04:58:05 [2025-01-07 04:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192605', 'tblTempUsageDetail_20' ) start [2025-01-07 04:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192605', 'tblTempUsageDetail_20' ) end [2025-01-07 04:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192605', 'tblTempVendorCDR_20' ) start [2025-01-07 04:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192605', 'tblTempVendorCDR_20' ) end [2025-01-07 04:58:21] Production.INFO: ProcessCDR(1,14192605,1,1,2) [2025-01-07 04:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192605', 'tblTempUsageDetail_20' ) start [2025-01-07 04:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192605', 'tblTempUsageDetail_20' ) end [2025-01-07 04:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:58:24] Production.INFO: ==3336== Releasing lock... [2025-01-07 04:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:58:24] Production.INFO: 28 MB #Memory Used# [2025-01-07 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 01:59:04 [end_date_ymd] => 2025-01-07 04:59:04 [RateCDR] => 1 ) [2025-01-07 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-01-07 01:59:04' and `end` < '2025-01-07 04:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 04:59:20] Production.INFO: count ==104 [2025-01-07 04:59:20] Production.ERROR: pbx CDR StartTime 2025-01-07 01:59:04 - End Time 2025-01-07 04:59:04 [2025-01-07 04:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192610', 'tblTempUsageDetail_20' ) start [2025-01-07 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192610', 'tblTempUsageDetail_20' ) end [2025-01-07 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192610', 'tblTempVendorCDR_20' ) start [2025-01-07 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192610', 'tblTempVendorCDR_20' ) end [2025-01-07 04:59:20] Production.INFO: ProcessCDR(1,14192610,1,1,2) [2025-01-07 04:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 04:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192610', 'tblTempUsageDetail_20' ) start [2025-01-07 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192610', 'tblTempUsageDetail_20' ) end [2025-01-07 04:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 04:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 04:59:23] Production.INFO: ==3410== Releasing lock... [2025-01-07 04:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 04:59:23] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:00:06 [end_date_ymd] => 2025-01-07 05:00:06 [RateCDR] => 1 ) [2025-01-07 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:00:06' and `end` < '2025-01-07 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:00:21] Production.INFO: count ==97 [2025-01-07 05:00:22] Production.ERROR: pbx CDR StartTime 2025-01-07 02:00:06 - End Time 2025-01-07 05:00:06 [2025-01-07 05:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192615', 'tblTempUsageDetail_20' ) start [2025-01-07 05:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192615', 'tblTempUsageDetail_20' ) end [2025-01-07 05:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192615', 'tblTempVendorCDR_20' ) start [2025-01-07 05:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192615', 'tblTempVendorCDR_20' ) end [2025-01-07 05:00:22] Production.INFO: ProcessCDR(1,14192615,1,1,2) [2025-01-07 05:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192615', 'tblTempUsageDetail_20' ) start [2025-01-07 05:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192615', 'tblTempUsageDetail_20' ) end [2025-01-07 05:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:00:25] Production.INFO: ==3486== Releasing lock... [2025-01-07 05:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:00:25] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:01:05 [end_date_ymd] => 2025-01-07 05:01:05 [RateCDR] => 1 ) [2025-01-07 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:01:05' and `end` < '2025-01-07 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:01:21] Production.INFO: count ==85 [2025-01-07 05:01:21] Production.ERROR: pbx CDR StartTime 2025-01-07 02:01:05 - End Time 2025-01-07 05:01:05 [2025-01-07 05:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192621', 'tblTempUsageDetail_20' ) start [2025-01-07 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192621', 'tblTempUsageDetail_20' ) end [2025-01-07 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192621', 'tblTempVendorCDR_20' ) start [2025-01-07 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192621', 'tblTempVendorCDR_20' ) end [2025-01-07 05:01:21] Production.INFO: ProcessCDR(1,14192621,1,1,2) [2025-01-07 05:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192621', 'tblTempUsageDetail_20' ) start [2025-01-07 05:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192621', 'tblTempUsageDetail_20' ) end [2025-01-07 05:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:01:24] Production.INFO: ==3572== Releasing lock... [2025-01-07 05:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:01:24] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:02:05 [end_date_ymd] => 2025-01-07 05:02:05 [RateCDR] => 1 ) [2025-01-07 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:02:05' and `end` < '2025-01-07 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:02:22] Production.INFO: count ==86 [2025-01-07 05:02:22] Production.ERROR: pbx CDR StartTime 2025-01-07 02:02:05 - End Time 2025-01-07 05:02:05 [2025-01-07 05:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192626', 'tblTempUsageDetail_20' ) start [2025-01-07 05:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192626', 'tblTempUsageDetail_20' ) end [2025-01-07 05:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192626', 'tblTempVendorCDR_20' ) start [2025-01-07 05:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192626', 'tblTempVendorCDR_20' ) end [2025-01-07 05:02:23] Production.INFO: ProcessCDR(1,14192626,1,1,2) [2025-01-07 05:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192626', 'tblTempUsageDetail_20' ) start [2025-01-07 05:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192626', 'tblTempUsageDetail_20' ) end [2025-01-07 05:02:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:02:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:02:27] Production.INFO: ==3662== Releasing lock... [2025-01-07 05:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:02:27] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:03:05 [end_date_ymd] => 2025-01-07 05:03:05 [RateCDR] => 1 ) [2025-01-07 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:03:05' and `end` < '2025-01-07 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:03:20] Production.INFO: count ==86 [2025-01-07 05:03:20] Production.ERROR: pbx CDR StartTime 2025-01-07 02:03:05 - End Time 2025-01-07 05:03:05 [2025-01-07 05:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192631', 'tblTempUsageDetail_20' ) start [2025-01-07 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192631', 'tblTempUsageDetail_20' ) end [2025-01-07 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192631', 'tblTempVendorCDR_20' ) start [2025-01-07 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192631', 'tblTempVendorCDR_20' ) end [2025-01-07 05:03:20] Production.INFO: ProcessCDR(1,14192631,1,1,2) [2025-01-07 05:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192631', 'tblTempUsageDetail_20' ) start [2025-01-07 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192631', 'tblTempUsageDetail_20' ) end [2025-01-07 05:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:03:23] Production.INFO: ==3772== Releasing lock... [2025-01-07 05:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:03:23] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:04:04 [end_date_ymd] => 2025-01-07 05:04:04 [RateCDR] => 1 ) [2025-01-07 05:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:04:04' and `end` < '2025-01-07 05:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:04:18] Production.INFO: count ==86 [2025-01-07 05:04:18] Production.ERROR: pbx CDR StartTime 2025-01-07 02:04:04 - End Time 2025-01-07 05:04:04 [2025-01-07 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192636', 'tblTempUsageDetail_20' ) start [2025-01-07 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192636', 'tblTempUsageDetail_20' ) end [2025-01-07 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192636', 'tblTempVendorCDR_20' ) start [2025-01-07 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192636', 'tblTempVendorCDR_20' ) end [2025-01-07 05:04:18] Production.INFO: ProcessCDR(1,14192636,1,1,2) [2025-01-07 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192636', 'tblTempUsageDetail_20' ) start [2025-01-07 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192636', 'tblTempUsageDetail_20' ) end [2025-01-07 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:04:21] Production.INFO: ==3845== Releasing lock... [2025-01-07 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:04:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:05:05 [end_date_ymd] => 2025-01-07 05:05:05 [RateCDR] => 1 ) [2025-01-07 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:05:05' and `end` < '2025-01-07 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:05:18] Production.INFO: count ==85 [2025-01-07 05:05:18] Production.ERROR: pbx CDR StartTime 2025-01-07 02:05:05 - End Time 2025-01-07 05:05:05 [2025-01-07 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192641', 'tblTempUsageDetail_20' ) start [2025-01-07 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192641', 'tblTempUsageDetail_20' ) end [2025-01-07 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192641', 'tblTempVendorCDR_20' ) start [2025-01-07 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192641', 'tblTempVendorCDR_20' ) end [2025-01-07 05:05:18] Production.INFO: ProcessCDR(1,14192641,1,1,2) [2025-01-07 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192641', 'tblTempUsageDetail_20' ) start [2025-01-07 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192641', 'tblTempUsageDetail_20' ) end [2025-01-07 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:05:21] Production.INFO: ==3918== Releasing lock... [2025-01-07 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:05:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:06:04 [end_date_ymd] => 2025-01-07 05:06:04 [RateCDR] => 1 ) [2025-01-07 05:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:06:04' and `end` < '2025-01-07 05:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:06:20] Production.INFO: count ==85 [2025-01-07 05:06:20] Production.ERROR: pbx CDR StartTime 2025-01-07 02:06:04 - End Time 2025-01-07 05:06:04 [2025-01-07 05:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192646', 'tblTempUsageDetail_20' ) start [2025-01-07 05:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192646', 'tblTempUsageDetail_20' ) end [2025-01-07 05:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192646', 'tblTempVendorCDR_20' ) start [2025-01-07 05:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192646', 'tblTempVendorCDR_20' ) end [2025-01-07 05:06:20] Production.INFO: ProcessCDR(1,14192646,1,1,2) [2025-01-07 05:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192646', 'tblTempUsageDetail_20' ) start [2025-01-07 05:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192646', 'tblTempUsageDetail_20' ) end [2025-01-07 05:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:06:24] Production.INFO: ==3988== Releasing lock... [2025-01-07 05:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:06:24] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:07:05 [end_date_ymd] => 2025-01-07 05:07:05 [RateCDR] => 1 ) [2025-01-07 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:07:05' and `end` < '2025-01-07 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:07:30] Production.INFO: count ==85 [2025-01-07 05:07:30] Production.ERROR: pbx CDR StartTime 2025-01-07 02:07:05 - End Time 2025-01-07 05:07:05 [2025-01-07 05:07:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192651', 'tblTempUsageDetail_20' ) start [2025-01-07 05:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192651', 'tblTempUsageDetail_20' ) end [2025-01-07 05:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192651', 'tblTempVendorCDR_20' ) start [2025-01-07 05:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192651', 'tblTempVendorCDR_20' ) end [2025-01-07 05:07:30] Production.INFO: ProcessCDR(1,14192651,1,1,2) [2025-01-07 05:07:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:07:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:07:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:07:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192651', 'tblTempUsageDetail_20' ) start [2025-01-07 05:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192651', 'tblTempUsageDetail_20' ) end [2025-01-07 05:07:33] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:07:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:07:33] Production.INFO: ==4065== Releasing lock... [2025-01-07 05:07:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:07:33] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:08:06 [end_date_ymd] => 2025-01-07 05:08:06 [RateCDR] => 1 ) [2025-01-07 05:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:08:06' and `end` < '2025-01-07 05:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:08:18] Production.INFO: count ==85 [2025-01-07 05:08:18] Production.ERROR: pbx CDR StartTime 2025-01-07 02:08:06 - End Time 2025-01-07 05:08:06 [2025-01-07 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192656', 'tblTempUsageDetail_20' ) start [2025-01-07 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192656', 'tblTempUsageDetail_20' ) end [2025-01-07 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192656', 'tblTempVendorCDR_20' ) start [2025-01-07 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192656', 'tblTempVendorCDR_20' ) end [2025-01-07 05:08:19] Production.INFO: ProcessCDR(1,14192656,1,1,2) [2025-01-07 05:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192656', 'tblTempUsageDetail_20' ) start [2025-01-07 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192656', 'tblTempUsageDetail_20' ) end [2025-01-07 05:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:08:22] Production.INFO: ==4158== Releasing lock... [2025-01-07 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:08:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:09:05 [end_date_ymd] => 2025-01-07 05:09:05 [RateCDR] => 1 ) [2025-01-07 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:09:05' and `end` < '2025-01-07 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:09:17] Production.INFO: count ==85 [2025-01-07 05:09:17] Production.ERROR: pbx CDR StartTime 2025-01-07 02:09:05 - End Time 2025-01-07 05:09:05 [2025-01-07 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192661', 'tblTempUsageDetail_20' ) start [2025-01-07 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192661', 'tblTempUsageDetail_20' ) end [2025-01-07 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192661', 'tblTempVendorCDR_20' ) start [2025-01-07 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192661', 'tblTempVendorCDR_20' ) end [2025-01-07 05:09:17] Production.INFO: ProcessCDR(1,14192661,1,1,2) [2025-01-07 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192661', 'tblTempUsageDetail_20' ) start [2025-01-07 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192661', 'tblTempUsageDetail_20' ) end [2025-01-07 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:09:21] Production.INFO: ==4243== Releasing lock... [2025-01-07 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:09:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:10:06 [end_date_ymd] => 2025-01-07 05:10:06 [RateCDR] => 1 ) [2025-01-07 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:10:06' and `end` < '2025-01-07 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:10:18] Production.INFO: count ==81 [2025-01-07 05:10:18] Production.ERROR: pbx CDR StartTime 2025-01-07 02:10:06 - End Time 2025-01-07 05:10:06 [2025-01-07 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192666', 'tblTempUsageDetail_20' ) start [2025-01-07 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192666', 'tblTempUsageDetail_20' ) end [2025-01-07 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192666', 'tblTempVendorCDR_20' ) start [2025-01-07 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192666', 'tblTempVendorCDR_20' ) end [2025-01-07 05:10:18] Production.INFO: ProcessCDR(1,14192666,1,1,2) [2025-01-07 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192666', 'tblTempUsageDetail_20' ) start [2025-01-07 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192666', 'tblTempUsageDetail_20' ) end [2025-01-07 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:10:22] Production.INFO: ==4322== Releasing lock... [2025-01-07 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:10:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:11:05 [end_date_ymd] => 2025-01-07 05:11:05 [RateCDR] => 1 ) [2025-01-07 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:11:05' and `end` < '2025-01-07 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:11:19] Production.INFO: count ==81 [2025-01-07 05:11:19] Production.ERROR: pbx CDR StartTime 2025-01-07 02:11:05 - End Time 2025-01-07 05:11:05 [2025-01-07 05:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192672', 'tblTempUsageDetail_20' ) start [2025-01-07 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192672', 'tblTempUsageDetail_20' ) end [2025-01-07 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192672', 'tblTempVendorCDR_20' ) start [2025-01-07 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192672', 'tblTempVendorCDR_20' ) end [2025-01-07 05:11:19] Production.INFO: ProcessCDR(1,14192672,1,1,2) [2025-01-07 05:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192672', 'tblTempUsageDetail_20' ) start [2025-01-07 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192672', 'tblTempUsageDetail_20' ) end [2025-01-07 05:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:11:22] Production.INFO: ==4394== Releasing lock... [2025-01-07 05:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:11:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:12:06 [end_date_ymd] => 2025-01-07 05:12:06 [RateCDR] => 1 ) [2025-01-07 05:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:12:06' and `end` < '2025-01-07 05:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:12:19] Production.INFO: count ==81 [2025-01-07 05:12:19] Production.ERROR: pbx CDR StartTime 2025-01-07 02:12:06 - End Time 2025-01-07 05:12:06 [2025-01-07 05:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192677', 'tblTempUsageDetail_20' ) start [2025-01-07 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192677', 'tblTempUsageDetail_20' ) end [2025-01-07 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192677', 'tblTempVendorCDR_20' ) start [2025-01-07 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192677', 'tblTempVendorCDR_20' ) end [2025-01-07 05:12:19] Production.INFO: ProcessCDR(1,14192677,1,1,2) [2025-01-07 05:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192677', 'tblTempUsageDetail_20' ) start [2025-01-07 05:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192677', 'tblTempUsageDetail_20' ) end [2025-01-07 05:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:12:23] Production.INFO: ==4471== Releasing lock... [2025-01-07 05:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:12:23] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:13:04 [end_date_ymd] => 2025-01-07 05:13:04 [RateCDR] => 1 ) [2025-01-07 05:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:13:04' and `end` < '2025-01-07 05:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:13:17] Production.INFO: count ==81 [2025-01-07 05:13:17] Production.ERROR: pbx CDR StartTime 2025-01-07 02:13:04 - End Time 2025-01-07 05:13:04 [2025-01-07 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192682', 'tblTempUsageDetail_20' ) start [2025-01-07 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192682', 'tblTempUsageDetail_20' ) end [2025-01-07 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192682', 'tblTempVendorCDR_20' ) start [2025-01-07 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192682', 'tblTempVendorCDR_20' ) end [2025-01-07 05:13:17] Production.INFO: ProcessCDR(1,14192682,1,1,2) [2025-01-07 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192682', 'tblTempUsageDetail_20' ) start [2025-01-07 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192682', 'tblTempUsageDetail_20' ) end [2025-01-07 05:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:13:20] Production.INFO: ==4569== Releasing lock... [2025-01-07 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:13:20] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:14:05 [end_date_ymd] => 2025-01-07 05:14:05 [RateCDR] => 1 ) [2025-01-07 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:14:05' and `end` < '2025-01-07 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:14:19] Production.INFO: count ==81 [2025-01-07 05:14:19] Production.ERROR: pbx CDR StartTime 2025-01-07 02:14:05 - End Time 2025-01-07 05:14:05 [2025-01-07 05:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192687', 'tblTempUsageDetail_20' ) start [2025-01-07 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192687', 'tblTempUsageDetail_20' ) end [2025-01-07 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192687', 'tblTempVendorCDR_20' ) start [2025-01-07 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192687', 'tblTempVendorCDR_20' ) end [2025-01-07 05:14:19] Production.INFO: ProcessCDR(1,14192687,1,1,2) [2025-01-07 05:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192687', 'tblTempUsageDetail_20' ) start [2025-01-07 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192687', 'tblTempUsageDetail_20' ) end [2025-01-07 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:14:22] Production.INFO: ==4655== Releasing lock... [2025-01-07 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:14:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:15:05 [end_date_ymd] => 2025-01-07 05:15:05 [RateCDR] => 1 ) [2025-01-07 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:15:05' and `end` < '2025-01-07 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:15:19] Production.INFO: count ==81 [2025-01-07 05:15:19] Production.ERROR: pbx CDR StartTime 2025-01-07 02:15:05 - End Time 2025-01-07 05:15:05 [2025-01-07 05:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192692', 'tblTempUsageDetail_20' ) start [2025-01-07 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192692', 'tblTempUsageDetail_20' ) end [2025-01-07 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192692', 'tblTempVendorCDR_20' ) start [2025-01-07 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192692', 'tblTempVendorCDR_20' ) end [2025-01-07 05:15:19] Production.INFO: ProcessCDR(1,14192692,1,1,2) [2025-01-07 05:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192692', 'tblTempUsageDetail_20' ) start [2025-01-07 05:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192692', 'tblTempUsageDetail_20' ) end [2025-01-07 05:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:15:23] Production.INFO: ==4729== Releasing lock... [2025-01-07 05:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:15:23] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:16:05 [end_date_ymd] => 2025-01-07 05:16:05 [RateCDR] => 1 ) [2025-01-07 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:16:05' and `end` < '2025-01-07 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:16:18] Production.INFO: count ==79 [2025-01-07 05:16:18] Production.ERROR: pbx CDR StartTime 2025-01-07 02:16:05 - End Time 2025-01-07 05:16:05 [2025-01-07 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192697', 'tblTempUsageDetail_20' ) start [2025-01-07 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192697', 'tblTempUsageDetail_20' ) end [2025-01-07 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192697', 'tblTempVendorCDR_20' ) start [2025-01-07 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192697', 'tblTempVendorCDR_20' ) end [2025-01-07 05:16:18] Production.INFO: ProcessCDR(1,14192697,1,1,2) [2025-01-07 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192697', 'tblTempUsageDetail_20' ) start [2025-01-07 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192697', 'tblTempUsageDetail_20' ) end [2025-01-07 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:16:21] Production.INFO: ==4825== Releasing lock... [2025-01-07 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:16:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:17:06 [end_date_ymd] => 2025-01-07 05:17:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 02:17:06' and `end` < '2025-01-07 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-01-07 05:17:19] Production.INFO: count ==79 [2025-01-07 05:17:19] Production.ERROR: pbx CDR StartTime 2025-01-07 02:17:06 - End Time 2025-01-07 05:17:06 [2025-01-07 05:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192702', 'tblTempUsageDetail_20' ) start [2025-01-07 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192702', 'tblTempUsageDetail_20' ) end [2025-01-07 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192702', 'tblTempVendorCDR_20' ) start [2025-01-07 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192702', 'tblTempVendorCDR_20' ) end [2025-01-07 05:17:19] Production.INFO: ProcessCDR(1,14192702,1,1,2) [2025-01-07 05:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192702', 'tblTempUsageDetail_20' ) start [2025-01-07 05:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192702', 'tblTempUsageDetail_20' ) end [2025-01-07 05:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:17:23] Production.INFO: ==4899== Releasing lock... [2025-01-07 05:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:17:23] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:18:05 [end_date_ymd] => 2025-01-07 05:18:05 [RateCDR] => 1 ) [2025-01-07 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:18:05' and `end` < '2025-01-07 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:18:19] Production.INFO: count ==78 [2025-01-07 05:18:19] Production.ERROR: pbx CDR StartTime 2025-01-07 02:18:05 - End Time 2025-01-07 05:18:05 [2025-01-07 05:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192707', 'tblTempUsageDetail_20' ) start [2025-01-07 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192707', 'tblTempUsageDetail_20' ) end [2025-01-07 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192707', 'tblTempVendorCDR_20' ) start [2025-01-07 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192707', 'tblTempVendorCDR_20' ) end [2025-01-07 05:18:19] Production.INFO: ProcessCDR(1,14192707,1,1,2) [2025-01-07 05:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192707', 'tblTempUsageDetail_20' ) start [2025-01-07 05:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192707', 'tblTempUsageDetail_20' ) end [2025-01-07 05:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:18:23] Production.INFO: ==4976== Releasing lock... [2025-01-07 05:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:18:23] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:19:06 [end_date_ymd] => 2025-01-07 05:19:06 [RateCDR] => 1 ) [2025-01-07 05:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:19:06' and `end` < '2025-01-07 05:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:19:19] Production.INFO: count ==78 [2025-01-07 05:19:19] Production.ERROR: pbx CDR StartTime 2025-01-07 02:19:06 - End Time 2025-01-07 05:19:06 [2025-01-07 05:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192712', 'tblTempUsageDetail_20' ) start [2025-01-07 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192712', 'tblTempUsageDetail_20' ) end [2025-01-07 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192712', 'tblTempVendorCDR_20' ) start [2025-01-07 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192712', 'tblTempVendorCDR_20' ) end [2025-01-07 05:19:19] Production.INFO: ProcessCDR(1,14192712,1,1,2) [2025-01-07 05:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192712', 'tblTempUsageDetail_20' ) start [2025-01-07 05:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192712', 'tblTempUsageDetail_20' ) end [2025-01-07 05:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:19:23] Production.INFO: ==5102== Releasing lock... [2025-01-07 05:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:19:23] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:20:06 [end_date_ymd] => 2025-01-07 05:20:06 [RateCDR] => 1 ) [2025-01-07 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:20:06' and `end` < '2025-01-07 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:20:19] Production.INFO: count ==72 [2025-01-07 05:20:19] Production.ERROR: pbx CDR StartTime 2025-01-07 02:20:06 - End Time 2025-01-07 05:20:06 [2025-01-07 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192718', 'tblTempUsageDetail_20' ) start [2025-01-07 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192718', 'tblTempUsageDetail_20' ) end [2025-01-07 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192718', 'tblTempVendorCDR_20' ) start [2025-01-07 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192718', 'tblTempVendorCDR_20' ) end [2025-01-07 05:20:19] Production.INFO: ProcessCDR(1,14192718,1,1,2) [2025-01-07 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192718', 'tblTempUsageDetail_20' ) start [2025-01-07 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192718', 'tblTempUsageDetail_20' ) end [2025-01-07 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:20:22] Production.INFO: ==5188== Releasing lock... [2025-01-07 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:20:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:21:05 [end_date_ymd] => 2025-01-07 05:21:05 [RateCDR] => 1 ) [2025-01-07 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:21:05' and `end` < '2025-01-07 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:21:18] Production.INFO: count ==70 [2025-01-07 05:21:18] Production.ERROR: pbx CDR StartTime 2025-01-07 02:21:05 - End Time 2025-01-07 05:21:05 [2025-01-07 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192723', 'tblTempUsageDetail_20' ) start [2025-01-07 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192723', 'tblTempUsageDetail_20' ) end [2025-01-07 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192723', 'tblTempVendorCDR_20' ) start [2025-01-07 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192723', 'tblTempVendorCDR_20' ) end [2025-01-07 05:21:18] Production.INFO: ProcessCDR(1,14192723,1,1,2) [2025-01-07 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192723', 'tblTempUsageDetail_20' ) start [2025-01-07 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192723', 'tblTempUsageDetail_20' ) end [2025-01-07 05:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:21:22] Production.INFO: ==5280== Releasing lock... [2025-01-07 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:21:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:22:05 [end_date_ymd] => 2025-01-07 05:22:05 [RateCDR] => 1 ) [2025-01-07 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:22:05' and `end` < '2025-01-07 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:22:19] Production.INFO: count ==70 [2025-01-07 05:22:19] Production.ERROR: pbx CDR StartTime 2025-01-07 02:22:05 - End Time 2025-01-07 05:22:05 [2025-01-07 05:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192728', 'tblTempUsageDetail_20' ) start [2025-01-07 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192728', 'tblTempUsageDetail_20' ) end [2025-01-07 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192728', 'tblTempVendorCDR_20' ) start [2025-01-07 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192728', 'tblTempVendorCDR_20' ) end [2025-01-07 05:22:19] Production.INFO: ProcessCDR(1,14192728,1,1,2) [2025-01-07 05:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192728', 'tblTempUsageDetail_20' ) start [2025-01-07 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192728', 'tblTempUsageDetail_20' ) end [2025-01-07 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:22:22] Production.INFO: ==5374== Releasing lock... [2025-01-07 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:22:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:23:05 [end_date_ymd] => 2025-01-07 05:23:05 [RateCDR] => 1 ) [2025-01-07 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:23:05' and `end` < '2025-01-07 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:23:18] Production.INFO: count ==70 [2025-01-07 05:23:18] Production.ERROR: pbx CDR StartTime 2025-01-07 02:23:05 - End Time 2025-01-07 05:23:05 [2025-01-07 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192733', 'tblTempUsageDetail_20' ) start [2025-01-07 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192733', 'tblTempUsageDetail_20' ) end [2025-01-07 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192733', 'tblTempVendorCDR_20' ) start [2025-01-07 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192733', 'tblTempVendorCDR_20' ) end [2025-01-07 05:23:18] Production.INFO: ProcessCDR(1,14192733,1,1,2) [2025-01-07 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192733', 'tblTempUsageDetail_20' ) start [2025-01-07 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192733', 'tblTempUsageDetail_20' ) end [2025-01-07 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:23:21] Production.INFO: ==5445== Releasing lock... [2025-01-07 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:23:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:24:04 [end_date_ymd] => 2025-01-07 05:24:04 [RateCDR] => 1 ) [2025-01-07 05:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:24:04' and `end` < '2025-01-07 05:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:24:19] Production.INFO: count ==70 [2025-01-07 05:24:19] Production.ERROR: pbx CDR StartTime 2025-01-07 02:24:04 - End Time 2025-01-07 05:24:04 [2025-01-07 05:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192738', 'tblTempUsageDetail_20' ) start [2025-01-07 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192738', 'tblTempUsageDetail_20' ) end [2025-01-07 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192738', 'tblTempVendorCDR_20' ) start [2025-01-07 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192738', 'tblTempVendorCDR_20' ) end [2025-01-07 05:24:19] Production.INFO: ProcessCDR(1,14192738,1,1,2) [2025-01-07 05:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192738', 'tblTempUsageDetail_20' ) start [2025-01-07 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192738', 'tblTempUsageDetail_20' ) end [2025-01-07 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:24:22] Production.INFO: ==5535== Releasing lock... [2025-01-07 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:24:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:25:05 [end_date_ymd] => 2025-01-07 05:25:05 [RateCDR] => 1 ) [2025-01-07 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:25:05' and `end` < '2025-01-07 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:25:19] Production.INFO: count ==70 [2025-01-07 05:25:19] Production.ERROR: pbx CDR StartTime 2025-01-07 02:25:05 - End Time 2025-01-07 05:25:05 [2025-01-07 05:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192743', 'tblTempUsageDetail_20' ) start [2025-01-07 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192743', 'tblTempUsageDetail_20' ) end [2025-01-07 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192743', 'tblTempVendorCDR_20' ) start [2025-01-07 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192743', 'tblTempVendorCDR_20' ) end [2025-01-07 05:25:19] Production.INFO: ProcessCDR(1,14192743,1,1,2) [2025-01-07 05:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192743', 'tblTempUsageDetail_20' ) start [2025-01-07 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192743', 'tblTempUsageDetail_20' ) end [2025-01-07 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:25:22] Production.INFO: ==5629== Releasing lock... [2025-01-07 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:25:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:26:05 [end_date_ymd] => 2025-01-07 05:26:05 [RateCDR] => 1 ) [2025-01-07 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:26:05' and `end` < '2025-01-07 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:26:18] Production.INFO: count ==70 [2025-01-07 05:26:18] Production.ERROR: pbx CDR StartTime 2025-01-07 02:26:05 - End Time 2025-01-07 05:26:05 [2025-01-07 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192748', 'tblTempUsageDetail_20' ) start [2025-01-07 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192748', 'tblTempUsageDetail_20' ) end [2025-01-07 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192748', 'tblTempVendorCDR_20' ) start [2025-01-07 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192748', 'tblTempVendorCDR_20' ) end [2025-01-07 05:26:18] Production.INFO: ProcessCDR(1,14192748,1,1,2) [2025-01-07 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192748', 'tblTempUsageDetail_20' ) start [2025-01-07 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192748', 'tblTempUsageDetail_20' ) end [2025-01-07 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:26:21] Production.INFO: ==5704== Releasing lock... [2025-01-07 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:26:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:27:05 [end_date_ymd] => 2025-01-07 05:27:05 [RateCDR] => 1 ) [2025-01-07 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:27:05' and `end` < '2025-01-07 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:27:19] Production.INFO: count ==70 [2025-01-07 05:27:19] Production.ERROR: pbx CDR StartTime 2025-01-07 02:27:05 - End Time 2025-01-07 05:27:05 [2025-01-07 05:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192753', 'tblTempUsageDetail_20' ) start [2025-01-07 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192753', 'tblTempUsageDetail_20' ) end [2025-01-07 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192753', 'tblTempVendorCDR_20' ) start [2025-01-07 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192753', 'tblTempVendorCDR_20' ) end [2025-01-07 05:27:19] Production.INFO: ProcessCDR(1,14192753,1,1,2) [2025-01-07 05:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192753', 'tblTempUsageDetail_20' ) start [2025-01-07 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192753', 'tblTempUsageDetail_20' ) end [2025-01-07 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:27:22] Production.INFO: ==5782== Releasing lock... [2025-01-07 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:27:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:28:06 [end_date_ymd] => 2025-01-07 05:28:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 02:28:06' and `end` < '2025-01-07 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-01-07 05:28:18] Production.INFO: count ==70 [2025-01-07 05:28:18] Production.ERROR: pbx CDR StartTime 2025-01-07 02:28:06 - End Time 2025-01-07 05:28:06 [2025-01-07 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192758', 'tblTempUsageDetail_20' ) start [2025-01-07 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192758', 'tblTempUsageDetail_20' ) end [2025-01-07 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192758', 'tblTempVendorCDR_20' ) start [2025-01-07 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192758', 'tblTempVendorCDR_20' ) end [2025-01-07 05:28:18] Production.INFO: ProcessCDR(1,14192758,1,1,2) [2025-01-07 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192758', 'tblTempUsageDetail_20' ) start [2025-01-07 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192758', 'tblTempUsageDetail_20' ) end [2025-01-07 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:28:22] Production.INFO: ==5876== Releasing lock... [2025-01-07 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:28:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:29:05 [end_date_ymd] => 2025-01-07 05:29:05 [RateCDR] => 1 ) [2025-01-07 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:29:05' and `end` < '2025-01-07 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:29:17] Production.INFO: count ==70 [2025-01-07 05:29:17] Production.ERROR: pbx CDR StartTime 2025-01-07 02:29:05 - End Time 2025-01-07 05:29:05 [2025-01-07 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192762', 'tblTempUsageDetail_20' ) start [2025-01-07 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192762', 'tblTempUsageDetail_20' ) end [2025-01-07 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192762', 'tblTempVendorCDR_20' ) start [2025-01-07 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192762', 'tblTempVendorCDR_20' ) end [2025-01-07 05:29:18] Production.INFO: ProcessCDR(1,14192762,1,1,2) [2025-01-07 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192762', 'tblTempUsageDetail_20' ) start [2025-01-07 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192762', 'tblTempUsageDetail_20' ) end [2025-01-07 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:29:21] Production.INFO: ==5969== Releasing lock... [2025-01-07 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:29:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:30:05 [end_date_ymd] => 2025-01-07 05:30:05 [RateCDR] => 1 ) [2025-01-07 05:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:30:05' and `end` < '2025-01-07 05:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:30:18] Production.INFO: count ==68 [2025-01-07 05:30:18] Production.ERROR: pbx CDR StartTime 2025-01-07 02:30:05 - End Time 2025-01-07 05:30:05 [2025-01-07 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192768', 'tblTempUsageDetail_20' ) start [2025-01-07 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192768', 'tblTempUsageDetail_20' ) end [2025-01-07 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192768', 'tblTempVendorCDR_20' ) start [2025-01-07 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192768', 'tblTempVendorCDR_20' ) end [2025-01-07 05:30:18] Production.INFO: ProcessCDR(1,14192768,1,1,2) [2025-01-07 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192768', 'tblTempUsageDetail_20' ) start [2025-01-07 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192768', 'tblTempUsageDetail_20' ) end [2025-01-07 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:30:21] Production.INFO: ==6045== Releasing lock... [2025-01-07 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:30:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:31:04 [end_date_ymd] => 2025-01-07 05:31:04 [RateCDR] => 1 ) [2025-01-07 05:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:31:04' and `end` < '2025-01-07 05:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:31:17] Production.INFO: count ==68 [2025-01-07 05:31:17] Production.ERROR: pbx CDR StartTime 2025-01-07 02:31:04 - End Time 2025-01-07 05:31:04 [2025-01-07 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192774', 'tblTempUsageDetail_20' ) start [2025-01-07 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192774', 'tblTempUsageDetail_20' ) end [2025-01-07 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192774', 'tblTempVendorCDR_20' ) start [2025-01-07 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192774', 'tblTempVendorCDR_20' ) end [2025-01-07 05:31:17] Production.INFO: ProcessCDR(1,14192774,1,1,2) [2025-01-07 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192774', 'tblTempUsageDetail_20' ) start [2025-01-07 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192774', 'tblTempUsageDetail_20' ) end [2025-01-07 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:31:21] Production.INFO: ==6138== Releasing lock... [2025-01-07 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:31:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:32:06 [end_date_ymd] => 2025-01-07 05:32:06 [RateCDR] => 1 ) [2025-01-07 05:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:32:06' and `end` < '2025-01-07 05:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:32:19] Production.INFO: count ==68 [2025-01-07 05:32:19] Production.ERROR: pbx CDR StartTime 2025-01-07 02:32:06 - End Time 2025-01-07 05:32:06 [2025-01-07 05:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192779', 'tblTempUsageDetail_20' ) start [2025-01-07 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192779', 'tblTempUsageDetail_20' ) end [2025-01-07 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192779', 'tblTempVendorCDR_20' ) start [2025-01-07 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192779', 'tblTempVendorCDR_20' ) end [2025-01-07 05:32:19] Production.INFO: ProcessCDR(1,14192779,1,1,2) [2025-01-07 05:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192779', 'tblTempUsageDetail_20' ) start [2025-01-07 05:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192779', 'tblTempUsageDetail_20' ) end [2025-01-07 05:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:32:23] Production.INFO: ==6232== Releasing lock... [2025-01-07 05:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:32:23] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:33:05 [end_date_ymd] => 2025-01-07 05:33:05 [RateCDR] => 1 ) [2025-01-07 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:33:05' and `end` < '2025-01-07 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:33:19] Production.INFO: count ==68 [2025-01-07 05:33:19] Production.ERROR: pbx CDR StartTime 2025-01-07 02:33:05 - End Time 2025-01-07 05:33:05 [2025-01-07 05:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192784', 'tblTempUsageDetail_20' ) start [2025-01-07 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192784', 'tblTempUsageDetail_20' ) end [2025-01-07 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192784', 'tblTempVendorCDR_20' ) start [2025-01-07 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192784', 'tblTempVendorCDR_20' ) end [2025-01-07 05:33:19] Production.INFO: ProcessCDR(1,14192784,1,1,2) [2025-01-07 05:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192784', 'tblTempUsageDetail_20' ) start [2025-01-07 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192784', 'tblTempUsageDetail_20' ) end [2025-01-07 05:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:33:22] Production.INFO: ==6307== Releasing lock... [2025-01-07 05:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:33:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:34:05 [end_date_ymd] => 2025-01-07 05:34:05 [RateCDR] => 1 ) [2025-01-07 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:34:05' and `end` < '2025-01-07 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:34:19] Production.INFO: count ==68 [2025-01-07 05:34:19] Production.ERROR: pbx CDR StartTime 2025-01-07 02:34:05 - End Time 2025-01-07 05:34:05 [2025-01-07 05:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192789', 'tblTempUsageDetail_20' ) start [2025-01-07 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192789', 'tblTempUsageDetail_20' ) end [2025-01-07 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192789', 'tblTempVendorCDR_20' ) start [2025-01-07 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192789', 'tblTempVendorCDR_20' ) end [2025-01-07 05:34:19] Production.INFO: ProcessCDR(1,14192789,1,1,2) [2025-01-07 05:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192789', 'tblTempUsageDetail_20' ) start [2025-01-07 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192789', 'tblTempUsageDetail_20' ) end [2025-01-07 05:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:34:22] Production.INFO: ==6398== Releasing lock... [2025-01-07 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:34:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:35:05 [end_date_ymd] => 2025-01-07 05:35:05 [RateCDR] => 1 ) [2025-01-07 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:35:05' and `end` < '2025-01-07 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:35:18] Production.INFO: count ==68 [2025-01-07 05:35:18] Production.ERROR: pbx CDR StartTime 2025-01-07 02:35:05 - End Time 2025-01-07 05:35:05 [2025-01-07 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192794', 'tblTempUsageDetail_20' ) start [2025-01-07 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192794', 'tblTempUsageDetail_20' ) end [2025-01-07 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192794', 'tblTempVendorCDR_20' ) start [2025-01-07 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192794', 'tblTempVendorCDR_20' ) end [2025-01-07 05:35:18] Production.INFO: ProcessCDR(1,14192794,1,1,2) [2025-01-07 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192794', 'tblTempUsageDetail_20' ) start [2025-01-07 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192794', 'tblTempUsageDetail_20' ) end [2025-01-07 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:35:21] Production.INFO: ==6531== Releasing lock... [2025-01-07 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:35:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:36:05 [end_date_ymd] => 2025-01-07 05:36:05 [RateCDR] => 1 ) [2025-01-07 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:36:05' and `end` < '2025-01-07 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:36:19] Production.INFO: count ==68 [2025-01-07 05:36:19] Production.ERROR: pbx CDR StartTime 2025-01-07 02:36:05 - End Time 2025-01-07 05:36:05 [2025-01-07 05:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192799', 'tblTempUsageDetail_20' ) start [2025-01-07 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192799', 'tblTempUsageDetail_20' ) end [2025-01-07 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192799', 'tblTempVendorCDR_20' ) start [2025-01-07 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192799', 'tblTempVendorCDR_20' ) end [2025-01-07 05:36:19] Production.INFO: ProcessCDR(1,14192799,1,1,2) [2025-01-07 05:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192799', 'tblTempUsageDetail_20' ) start [2025-01-07 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192799', 'tblTempUsageDetail_20' ) end [2025-01-07 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:36:22] Production.INFO: ==6604== Releasing lock... [2025-01-07 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:36:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:37:06 [end_date_ymd] => 2025-01-07 05:37:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 02:37:06' and `end` < '2025-01-07 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-01-07 05:37:20] Production.INFO: count ==68 [2025-01-07 05:37:20] Production.ERROR: pbx CDR StartTime 2025-01-07 02:37:06 - End Time 2025-01-07 05:37:06 [2025-01-07 05:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192804', 'tblTempUsageDetail_20' ) start [2025-01-07 05:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192804', 'tblTempUsageDetail_20' ) end [2025-01-07 05:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192804', 'tblTempVendorCDR_20' ) start [2025-01-07 05:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192804', 'tblTempVendorCDR_20' ) end [2025-01-07 05:37:20] Production.INFO: ProcessCDR(1,14192804,1,1,2) [2025-01-07 05:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192804', 'tblTempUsageDetail_20' ) start [2025-01-07 05:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192804', 'tblTempUsageDetail_20' ) end [2025-01-07 05:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:37:23] Production.INFO: ==6677== Releasing lock... [2025-01-07 05:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:37:23] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:38:05 [end_date_ymd] => 2025-01-07 05:38:05 [RateCDR] => 1 ) [2025-01-07 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:38:05' and `end` < '2025-01-07 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:38:18] Production.INFO: count ==68 [2025-01-07 05:38:18] Production.ERROR: pbx CDR StartTime 2025-01-07 02:38:05 - End Time 2025-01-07 05:38:05 [2025-01-07 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192809', 'tblTempUsageDetail_20' ) start [2025-01-07 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192809', 'tblTempUsageDetail_20' ) end [2025-01-07 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192809', 'tblTempVendorCDR_20' ) start [2025-01-07 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192809', 'tblTempVendorCDR_20' ) end [2025-01-07 05:38:18] Production.INFO: ProcessCDR(1,14192809,1,1,2) [2025-01-07 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192809', 'tblTempUsageDetail_20' ) start [2025-01-07 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192809', 'tblTempUsageDetail_20' ) end [2025-01-07 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:38:21] Production.INFO: ==6766== Releasing lock... [2025-01-07 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:38:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:39:05 [end_date_ymd] => 2025-01-07 05:39:05 [RateCDR] => 1 ) [2025-01-07 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:39:05' and `end` < '2025-01-07 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:39:19] Production.INFO: count ==68 [2025-01-07 05:39:19] Production.ERROR: pbx CDR StartTime 2025-01-07 02:39:05 - End Time 2025-01-07 05:39:05 [2025-01-07 05:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192814', 'tblTempUsageDetail_20' ) start [2025-01-07 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192814', 'tblTempUsageDetail_20' ) end [2025-01-07 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192814', 'tblTempVendorCDR_20' ) start [2025-01-07 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192814', 'tblTempVendorCDR_20' ) end [2025-01-07 05:39:19] Production.INFO: ProcessCDR(1,14192814,1,1,2) [2025-01-07 05:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192814', 'tblTempUsageDetail_20' ) start [2025-01-07 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192814', 'tblTempUsageDetail_20' ) end [2025-01-07 05:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:39:22] Production.INFO: ==6858== Releasing lock... [2025-01-07 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:39:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:40:05 [end_date_ymd] => 2025-01-07 05:40:05 [RateCDR] => 1 ) [2025-01-07 05:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:40:05' and `end` < '2025-01-07 05:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:40:18] Production.INFO: count ==64 [2025-01-07 05:40:18] Production.ERROR: pbx CDR StartTime 2025-01-07 02:40:05 - End Time 2025-01-07 05:40:05 [2025-01-07 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192820', 'tblTempUsageDetail_20' ) start [2025-01-07 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192820', 'tblTempUsageDetail_20' ) end [2025-01-07 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192820', 'tblTempVendorCDR_20' ) start [2025-01-07 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192820', 'tblTempVendorCDR_20' ) end [2025-01-07 05:40:18] Production.INFO: ProcessCDR(1,14192820,1,1,2) [2025-01-07 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192820', 'tblTempUsageDetail_20' ) start [2025-01-07 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192820', 'tblTempUsageDetail_20' ) end [2025-01-07 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:40:21] Production.INFO: ==6932== Releasing lock... [2025-01-07 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:40:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:41:05 [end_date_ymd] => 2025-01-07 05:41:05 [RateCDR] => 1 ) [2025-01-07 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:41:05' and `end` < '2025-01-07 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:41:18] Production.INFO: count ==59 [2025-01-07 05:41:18] Production.ERROR: pbx CDR StartTime 2025-01-07 02:41:05 - End Time 2025-01-07 05:41:05 [2025-01-07 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192825', 'tblTempUsageDetail_20' ) start [2025-01-07 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192825', 'tblTempUsageDetail_20' ) end [2025-01-07 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192825', 'tblTempVendorCDR_20' ) start [2025-01-07 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192825', 'tblTempVendorCDR_20' ) end [2025-01-07 05:41:18] Production.INFO: ProcessCDR(1,14192825,1,1,2) [2025-01-07 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192825', 'tblTempUsageDetail_20' ) start [2025-01-07 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192825', 'tblTempUsageDetail_20' ) end [2025-01-07 05:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:41:22] Production.INFO: ==7015== Releasing lock... [2025-01-07 05:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:41:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:42:05 [end_date_ymd] => 2025-01-07 05:42:05 [RateCDR] => 1 ) [2025-01-07 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:42:05' and `end` < '2025-01-07 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:42:19] Production.INFO: count ==59 [2025-01-07 05:42:19] Production.ERROR: pbx CDR StartTime 2025-01-07 02:42:05 - End Time 2025-01-07 05:42:05 [2025-01-07 05:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192830', 'tblTempUsageDetail_20' ) start [2025-01-07 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192830', 'tblTempUsageDetail_20' ) end [2025-01-07 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192830', 'tblTempVendorCDR_20' ) start [2025-01-07 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192830', 'tblTempVendorCDR_20' ) end [2025-01-07 05:42:19] Production.INFO: ProcessCDR(1,14192830,1,1,2) [2025-01-07 05:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192830', 'tblTempUsageDetail_20' ) start [2025-01-07 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192830', 'tblTempUsageDetail_20' ) end [2025-01-07 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:42:22] Production.INFO: ==7105== Releasing lock... [2025-01-07 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:42:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:43:04 [end_date_ymd] => 2025-01-07 05:43:04 [RateCDR] => 1 ) [2025-01-07 05:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:43:04' and `end` < '2025-01-07 05:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:43:19] Production.INFO: count ==59 [2025-01-07 05:43:19] Production.ERROR: pbx CDR StartTime 2025-01-07 02:43:04 - End Time 2025-01-07 05:43:04 [2025-01-07 05:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192835', 'tblTempUsageDetail_20' ) start [2025-01-07 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192835', 'tblTempUsageDetail_20' ) end [2025-01-07 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192835', 'tblTempVendorCDR_20' ) start [2025-01-07 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192835', 'tblTempVendorCDR_20' ) end [2025-01-07 05:43:19] Production.INFO: ProcessCDR(1,14192835,1,1,2) [2025-01-07 05:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192835', 'tblTempUsageDetail_20' ) start [2025-01-07 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192835', 'tblTempUsageDetail_20' ) end [2025-01-07 05:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:43:22] Production.INFO: ==7197== Releasing lock... [2025-01-07 05:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:43:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:44:05 [end_date_ymd] => 2025-01-07 05:44:05 [RateCDR] => 1 ) [2025-01-07 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:44:05' and `end` < '2025-01-07 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:44:18] Production.INFO: count ==59 [2025-01-07 05:44:18] Production.ERROR: pbx CDR StartTime 2025-01-07 02:44:05 - End Time 2025-01-07 05:44:05 [2025-01-07 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192840', 'tblTempUsageDetail_20' ) start [2025-01-07 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192840', 'tblTempUsageDetail_20' ) end [2025-01-07 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192840', 'tblTempVendorCDR_20' ) start [2025-01-07 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192840', 'tblTempVendorCDR_20' ) end [2025-01-07 05:44:18] Production.INFO: ProcessCDR(1,14192840,1,1,2) [2025-01-07 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192840', 'tblTempUsageDetail_20' ) start [2025-01-07 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192840', 'tblTempUsageDetail_20' ) end [2025-01-07 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:44:21] Production.INFO: ==7270== Releasing lock... [2025-01-07 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:44:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:45:05 [end_date_ymd] => 2025-01-07 05:45:05 [RateCDR] => 1 ) [2025-01-07 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:45:05' and `end` < '2025-01-07 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:45:18] Production.INFO: count ==59 [2025-01-07 05:45:18] Production.ERROR: pbx CDR StartTime 2025-01-07 02:45:05 - End Time 2025-01-07 05:45:05 [2025-01-07 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192845', 'tblTempUsageDetail_20' ) start [2025-01-07 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192845', 'tblTempUsageDetail_20' ) end [2025-01-07 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192845', 'tblTempVendorCDR_20' ) start [2025-01-07 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192845', 'tblTempVendorCDR_20' ) end [2025-01-07 05:45:18] Production.INFO: ProcessCDR(1,14192845,1,1,2) [2025-01-07 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192845', 'tblTempUsageDetail_20' ) start [2025-01-07 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192845', 'tblTempUsageDetail_20' ) end [2025-01-07 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:45:21] Production.INFO: ==7343== Releasing lock... [2025-01-07 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:45:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:46:05 [end_date_ymd] => 2025-01-07 05:46:05 [RateCDR] => 1 ) [2025-01-07 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:46:05' and `end` < '2025-01-07 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:46:18] Production.INFO: count ==59 [2025-01-07 05:46:18] Production.ERROR: pbx CDR StartTime 2025-01-07 02:46:05 - End Time 2025-01-07 05:46:05 [2025-01-07 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192850', 'tblTempUsageDetail_20' ) start [2025-01-07 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192850', 'tblTempUsageDetail_20' ) end [2025-01-07 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192850', 'tblTempVendorCDR_20' ) start [2025-01-07 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192850', 'tblTempVendorCDR_20' ) end [2025-01-07 05:46:18] Production.INFO: ProcessCDR(1,14192850,1,1,2) [2025-01-07 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192850', 'tblTempUsageDetail_20' ) start [2025-01-07 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192850', 'tblTempUsageDetail_20' ) end [2025-01-07 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:46:21] Production.INFO: ==7434== Releasing lock... [2025-01-07 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:46:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:47:04 [end_date_ymd] => 2025-01-07 05:47:04 [RateCDR] => 1 ) [2025-01-07 05:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:47:04' and `end` < '2025-01-07 05:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:47:17] Production.INFO: count ==59 [2025-01-07 05:47:17] Production.ERROR: pbx CDR StartTime 2025-01-07 02:47:04 - End Time 2025-01-07 05:47:04 [2025-01-07 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192855', 'tblTempUsageDetail_20' ) start [2025-01-07 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192855', 'tblTempUsageDetail_20' ) end [2025-01-07 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192855', 'tblTempVendorCDR_20' ) start [2025-01-07 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192855', 'tblTempVendorCDR_20' ) end [2025-01-07 05:47:18] Production.INFO: ProcessCDR(1,14192855,1,1,2) [2025-01-07 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192855', 'tblTempUsageDetail_20' ) start [2025-01-07 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192855', 'tblTempUsageDetail_20' ) end [2025-01-07 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:47:21] Production.INFO: ==7530== Releasing lock... [2025-01-07 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:47:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:48:06 [end_date_ymd] => 2025-01-07 05:48:06 [RateCDR] => 1 ) [2025-01-07 05:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:48:06' and `end` < '2025-01-07 05:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:48:20] Production.INFO: count ==59 [2025-01-07 05:48:20] Production.ERROR: pbx CDR StartTime 2025-01-07 02:48:06 - End Time 2025-01-07 05:48:06 [2025-01-07 05:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192860', 'tblTempUsageDetail_20' ) start [2025-01-07 05:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192860', 'tblTempUsageDetail_20' ) end [2025-01-07 05:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192860', 'tblTempVendorCDR_20' ) start [2025-01-07 05:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192860', 'tblTempVendorCDR_20' ) end [2025-01-07 05:48:20] Production.INFO: ProcessCDR(1,14192860,1,1,2) [2025-01-07 05:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192860', 'tblTempUsageDetail_20' ) start [2025-01-07 05:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192860', 'tblTempUsageDetail_20' ) end [2025-01-07 05:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:48:23] Production.INFO: ==7602== Releasing lock... [2025-01-07 05:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:48:23] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:49:06 [end_date_ymd] => 2025-01-07 05:49:06 [RateCDR] => 1 ) [2025-01-07 05:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:49:06' and `end` < '2025-01-07 05:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:49:19] Production.INFO: count ==59 [2025-01-07 05:49:19] Production.ERROR: pbx CDR StartTime 2025-01-07 02:49:06 - End Time 2025-01-07 05:49:06 [2025-01-07 05:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192865', 'tblTempUsageDetail_20' ) start [2025-01-07 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192865', 'tblTempUsageDetail_20' ) end [2025-01-07 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192865', 'tblTempVendorCDR_20' ) start [2025-01-07 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192865', 'tblTempVendorCDR_20' ) end [2025-01-07 05:49:19] Production.INFO: ProcessCDR(1,14192865,1,1,2) [2025-01-07 05:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192865', 'tblTempUsageDetail_20' ) start [2025-01-07 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192865', 'tblTempUsageDetail_20' ) end [2025-01-07 05:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:49:22] Production.INFO: ==7677== Releasing lock... [2025-01-07 05:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:49:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:50:05 [end_date_ymd] => 2025-01-07 05:50:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 02:50:05' and `end` < '2025-01-07 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-01-07 05:50:18] Production.INFO: count ==57 [2025-01-07 05:50:18] Production.ERROR: pbx CDR StartTime 2025-01-07 02:50:05 - End Time 2025-01-07 05:50:05 [2025-01-07 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192871', 'tblTempUsageDetail_20' ) start [2025-01-07 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192871', 'tblTempUsageDetail_20' ) end [2025-01-07 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192871', 'tblTempVendorCDR_20' ) start [2025-01-07 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192871', 'tblTempVendorCDR_20' ) end [2025-01-07 05:50:18] Production.INFO: ProcessCDR(1,14192871,1,1,2) [2025-01-07 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192871', 'tblTempUsageDetail_20' ) start [2025-01-07 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192871', 'tblTempUsageDetail_20' ) end [2025-01-07 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:50:21] Production.INFO: ==7808== Releasing lock... [2025-01-07 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:50:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:51:05 [end_date_ymd] => 2025-01-07 05:51:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 02:51:05' and `end` < '2025-01-07 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-01-07 05:51:19] Production.INFO: count ==57 [2025-01-07 05:51:19] Production.ERROR: pbx CDR StartTime 2025-01-07 02:51:05 - End Time 2025-01-07 05:51:05 [2025-01-07 05:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192876', 'tblTempUsageDetail_20' ) start [2025-01-07 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192876', 'tblTempUsageDetail_20' ) end [2025-01-07 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192876', 'tblTempVendorCDR_20' ) start [2025-01-07 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192876', 'tblTempVendorCDR_20' ) end [2025-01-07 05:51:19] Production.INFO: ProcessCDR(1,14192876,1,1,2) [2025-01-07 05:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192876', 'tblTempUsageDetail_20' ) start [2025-01-07 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192876', 'tblTempUsageDetail_20' ) end [2025-01-07 05:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:51:22] Production.INFO: ==7897== Releasing lock... [2025-01-07 05:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:51:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:52:05 [end_date_ymd] => 2025-01-07 05:52:05 [RateCDR] => 1 ) [2025-01-07 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:52:05' and `end` < '2025-01-07 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:52:18] Production.INFO: count ==57 [2025-01-07 05:52:18] Production.ERROR: pbx CDR StartTime 2025-01-07 02:52:05 - End Time 2025-01-07 05:52:05 [2025-01-07 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192881', 'tblTempUsageDetail_20' ) start [2025-01-07 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192881', 'tblTempUsageDetail_20' ) end [2025-01-07 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192881', 'tblTempVendorCDR_20' ) start [2025-01-07 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192881', 'tblTempVendorCDR_20' ) end [2025-01-07 05:52:18] Production.INFO: ProcessCDR(1,14192881,1,1,2) [2025-01-07 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192881', 'tblTempUsageDetail_20' ) start [2025-01-07 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192881', 'tblTempUsageDetail_20' ) end [2025-01-07 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:52:21] Production.INFO: ==7972== Releasing lock... [2025-01-07 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:52:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:53:05 [end_date_ymd] => 2025-01-07 05:53:05 [RateCDR] => 1 ) [2025-01-07 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:53:05' and `end` < '2025-01-07 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:53:18] Production.INFO: count ==57 [2025-01-07 05:53:18] Production.ERROR: pbx CDR StartTime 2025-01-07 02:53:05 - End Time 2025-01-07 05:53:05 [2025-01-07 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192886', 'tblTempUsageDetail_20' ) start [2025-01-07 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192886', 'tblTempUsageDetail_20' ) end [2025-01-07 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192886', 'tblTempVendorCDR_20' ) start [2025-01-07 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192886', 'tblTempVendorCDR_20' ) end [2025-01-07 05:53:18] Production.INFO: ProcessCDR(1,14192886,1,1,2) [2025-01-07 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192886', 'tblTempUsageDetail_20' ) start [2025-01-07 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192886', 'tblTempUsageDetail_20' ) end [2025-01-07 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:53:21] Production.INFO: ==8043== Releasing lock... [2025-01-07 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:53:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:54:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:54:07 [end_date_ymd] => 2025-01-07 05:54:07 [RateCDR] => 1 ) [2025-01-07 05:54:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:54:07' and `end` < '2025-01-07 05:54:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:54:21] Production.INFO: count ==57 [2025-01-07 05:54:21] Production.ERROR: pbx CDR StartTime 2025-01-07 02:54:07 - End Time 2025-01-07 05:54:07 [2025-01-07 05:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192891', 'tblTempUsageDetail_20' ) start [2025-01-07 05:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192891', 'tblTempUsageDetail_20' ) end [2025-01-07 05:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192891', 'tblTempVendorCDR_20' ) start [2025-01-07 05:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192891', 'tblTempVendorCDR_20' ) end [2025-01-07 05:54:21] Production.INFO: ProcessCDR(1,14192891,1,1,2) [2025-01-07 05:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192891', 'tblTempUsageDetail_20' ) start [2025-01-07 05:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192891', 'tblTempUsageDetail_20' ) end [2025-01-07 05:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:54:24] Production.INFO: ==8118== Releasing lock... [2025-01-07 05:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:54:24] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:55:05 [end_date_ymd] => 2025-01-07 05:55:05 [RateCDR] => 1 ) [2025-01-07 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:55:05' and `end` < '2025-01-07 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:55:19] Production.INFO: count ==57 [2025-01-07 05:55:19] Production.ERROR: pbx CDR StartTime 2025-01-07 02:55:05 - End Time 2025-01-07 05:55:05 [2025-01-07 05:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192896', 'tblTempUsageDetail_20' ) start [2025-01-07 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192896', 'tblTempUsageDetail_20' ) end [2025-01-07 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192896', 'tblTempVendorCDR_20' ) start [2025-01-07 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192896', 'tblTempVendorCDR_20' ) end [2025-01-07 05:55:19] Production.INFO: ProcessCDR(1,14192896,1,1,2) [2025-01-07 05:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192896', 'tblTempUsageDetail_20' ) start [2025-01-07 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192896', 'tblTempUsageDetail_20' ) end [2025-01-07 05:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:55:22] Production.INFO: ==8214== Releasing lock... [2025-01-07 05:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:55:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:56:05 [end_date_ymd] => 2025-01-07 05:56:05 [RateCDR] => 1 ) [2025-01-07 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:56:05' and `end` < '2025-01-07 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:56:18] Production.INFO: count ==57 [2025-01-07 05:56:18] Production.ERROR: pbx CDR StartTime 2025-01-07 02:56:05 - End Time 2025-01-07 05:56:05 [2025-01-07 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192901', 'tblTempUsageDetail_20' ) start [2025-01-07 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192901', 'tblTempUsageDetail_20' ) end [2025-01-07 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192901', 'tblTempVendorCDR_20' ) start [2025-01-07 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192901', 'tblTempVendorCDR_20' ) end [2025-01-07 05:56:18] Production.INFO: ProcessCDR(1,14192901,1,1,2) [2025-01-07 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192901', 'tblTempUsageDetail_20' ) start [2025-01-07 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192901', 'tblTempUsageDetail_20' ) end [2025-01-07 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:56:21] Production.INFO: ==8309== Releasing lock... [2025-01-07 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:56:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:57:05 [end_date_ymd] => 2025-01-07 05:57:05 [RateCDR] => 1 ) [2025-01-07 05:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:57:05' and `end` < '2025-01-07 05:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:57:19] Production.INFO: count ==57 [2025-01-07 05:57:19] Production.ERROR: pbx CDR StartTime 2025-01-07 02:57:05 - End Time 2025-01-07 05:57:05 [2025-01-07 05:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192906', 'tblTempUsageDetail_20' ) start [2025-01-07 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192906', 'tblTempUsageDetail_20' ) end [2025-01-07 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192906', 'tblTempVendorCDR_20' ) start [2025-01-07 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192906', 'tblTempVendorCDR_20' ) end [2025-01-07 05:57:19] Production.INFO: ProcessCDR(1,14192906,1,1,2) [2025-01-07 05:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192906', 'tblTempUsageDetail_20' ) start [2025-01-07 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192906', 'tblTempUsageDetail_20' ) end [2025-01-07 05:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:57:22] Production.INFO: ==8401== Releasing lock... [2025-01-07 05:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:57:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:58:05 [end_date_ymd] => 2025-01-07 05:58:05 [RateCDR] => 1 ) [2025-01-07 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:58:05' and `end` < '2025-01-07 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:58:17] Production.INFO: count ==57 [2025-01-07 05:58:17] Production.ERROR: pbx CDR StartTime 2025-01-07 02:58:05 - End Time 2025-01-07 05:58:05 [2025-01-07 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192911', 'tblTempUsageDetail_20' ) start [2025-01-07 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192911', 'tblTempUsageDetail_20' ) end [2025-01-07 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192911', 'tblTempVendorCDR_20' ) start [2025-01-07 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192911', 'tblTempVendorCDR_20' ) end [2025-01-07 05:58:17] Production.INFO: ProcessCDR(1,14192911,1,1,2) [2025-01-07 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192911', 'tblTempUsageDetail_20' ) start [2025-01-07 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192911', 'tblTempUsageDetail_20' ) end [2025-01-07 05:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:58:20] Production.INFO: ==8500== Releasing lock... [2025-01-07 05:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:58:20] Production.INFO: 28 MB #Memory Used# [2025-01-07 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 02:59:05 [end_date_ymd] => 2025-01-07 05:59:05 [RateCDR] => 1 ) [2025-01-07 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 02:59:05' and `end` < '2025-01-07 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 05:59:19] Production.INFO: count ==57 [2025-01-07 05:59:19] Production.ERROR: pbx CDR StartTime 2025-01-07 02:59:05 - End Time 2025-01-07 05:59:05 [2025-01-07 05:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192916', 'tblTempUsageDetail_20' ) start [2025-01-07 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192916', 'tblTempUsageDetail_20' ) end [2025-01-07 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192916', 'tblTempVendorCDR_20' ) start [2025-01-07 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192916', 'tblTempVendorCDR_20' ) end [2025-01-07 05:59:19] Production.INFO: ProcessCDR(1,14192916,1,1,2) [2025-01-07 05:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 05:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192916', 'tblTempUsageDetail_20' ) start [2025-01-07 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192916', 'tblTempUsageDetail_20' ) end [2025-01-07 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 05:59:22] Production.INFO: ==8595== Releasing lock... [2025-01-07 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 05:59:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:00:06 [end_date_ymd] => 2025-01-07 06:00:06 [RateCDR] => 1 ) [2025-01-07 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:00:06' and `end` < '2025-01-07 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:00:18] Production.INFO: count ==57 [2025-01-07 06:00:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:00:06 - End Time 2025-01-07 06:00:06 [2025-01-07 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192921', 'tblTempUsageDetail_20' ) start [2025-01-07 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192921', 'tblTempUsageDetail_20' ) end [2025-01-07 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192921', 'tblTempVendorCDR_20' ) start [2025-01-07 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192921', 'tblTempVendorCDR_20' ) end [2025-01-07 06:00:18] Production.INFO: ProcessCDR(1,14192921,1,1,2) [2025-01-07 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192921', 'tblTempUsageDetail_20' ) start [2025-01-07 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192921', 'tblTempUsageDetail_20' ) end [2025-01-07 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:00:22] Production.INFO: ==8688== Releasing lock... [2025-01-07 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:00:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:01:05 [end_date_ymd] => 2025-01-07 06:01:05 [RateCDR] => 1 ) [2025-01-07 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:01:05' and `end` < '2025-01-07 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:01:18] Production.INFO: count ==57 [2025-01-07 06:01:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:01:05 - End Time 2025-01-07 06:01:05 [2025-01-07 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192927', 'tblTempUsageDetail_20' ) start [2025-01-07 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192927', 'tblTempUsageDetail_20' ) end [2025-01-07 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192927', 'tblTempVendorCDR_20' ) start [2025-01-07 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192927', 'tblTempVendorCDR_20' ) end [2025-01-07 06:01:18] Production.INFO: ProcessCDR(1,14192927,1,1,2) [2025-01-07 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192927', 'tblTempUsageDetail_20' ) start [2025-01-07 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192927', 'tblTempUsageDetail_20' ) end [2025-01-07 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:01:21] Production.INFO: ==8809== Releasing lock... [2025-01-07 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:01:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:02:05 [end_date_ymd] => 2025-01-07 06:02:05 [RateCDR] => 1 ) [2025-01-07 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:02:05' and `end` < '2025-01-07 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:02:19] Production.INFO: count ==57 [2025-01-07 06:02:19] Production.ERROR: pbx CDR StartTime 2025-01-07 03:02:05 - End Time 2025-01-07 06:02:05 [2025-01-07 06:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192932', 'tblTempUsageDetail_20' ) start [2025-01-07 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192932', 'tblTempUsageDetail_20' ) end [2025-01-07 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192932', 'tblTempVendorCDR_20' ) start [2025-01-07 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192932', 'tblTempVendorCDR_20' ) end [2025-01-07 06:02:19] Production.INFO: ProcessCDR(1,14192932,1,1,2) [2025-01-07 06:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192932', 'tblTempUsageDetail_20' ) start [2025-01-07 06:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192932', 'tblTempUsageDetail_20' ) end [2025-01-07 06:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:02:23] Production.INFO: ==8916== Releasing lock... [2025-01-07 06:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:02:23] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:03:05 [end_date_ymd] => 2025-01-07 06:03:05 [RateCDR] => 1 ) [2025-01-07 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:03:05' and `end` < '2025-01-07 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:03:19] Production.INFO: count ==57 [2025-01-07 06:03:19] Production.ERROR: pbx CDR StartTime 2025-01-07 03:03:05 - End Time 2025-01-07 06:03:05 [2025-01-07 06:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192937', 'tblTempUsageDetail_20' ) start [2025-01-07 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192937', 'tblTempUsageDetail_20' ) end [2025-01-07 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192937', 'tblTempVendorCDR_20' ) start [2025-01-07 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192937', 'tblTempVendorCDR_20' ) end [2025-01-07 06:03:19] Production.INFO: ProcessCDR(1,14192937,1,1,2) [2025-01-07 06:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192937', 'tblTempUsageDetail_20' ) start [2025-01-07 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192937', 'tblTempUsageDetail_20' ) end [2025-01-07 06:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:03:22] Production.INFO: ==9000== Releasing lock... [2025-01-07 06:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:03:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:04:05 [end_date_ymd] => 2025-01-07 06:04:05 [RateCDR] => 1 ) [2025-01-07 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:04:05' and `end` < '2025-01-07 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:04:20] Production.INFO: count ==57 [2025-01-07 06:04:20] Production.ERROR: pbx CDR StartTime 2025-01-07 03:04:05 - End Time 2025-01-07 06:04:05 [2025-01-07 06:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192942', 'tblTempUsageDetail_20' ) start [2025-01-07 06:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192942', 'tblTempUsageDetail_20' ) end [2025-01-07 06:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192942', 'tblTempVendorCDR_20' ) start [2025-01-07 06:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192942', 'tblTempVendorCDR_20' ) end [2025-01-07 06:04:20] Production.INFO: ProcessCDR(1,14192942,1,1,2) [2025-01-07 06:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192942', 'tblTempUsageDetail_20' ) start [2025-01-07 06:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192942', 'tblTempUsageDetail_20' ) end [2025-01-07 06:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:04:23] Production.INFO: ==9088== Releasing lock... [2025-01-07 06:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:04:23] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:05:05 [end_date_ymd] => 2025-01-07 06:05:05 [RateCDR] => 1 ) [2025-01-07 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:05:05' and `end` < '2025-01-07 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:05:17] Production.INFO: count ==57 [2025-01-07 06:05:17] Production.ERROR: pbx CDR StartTime 2025-01-07 03:05:05 - End Time 2025-01-07 06:05:05 [2025-01-07 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192947', 'tblTempUsageDetail_20' ) start [2025-01-07 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192947', 'tblTempUsageDetail_20' ) end [2025-01-07 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192947', 'tblTempVendorCDR_20' ) start [2025-01-07 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192947', 'tblTempVendorCDR_20' ) end [2025-01-07 06:05:17] Production.INFO: ProcessCDR(1,14192947,1,1,2) [2025-01-07 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192947', 'tblTempUsageDetail_20' ) start [2025-01-07 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192947', 'tblTempUsageDetail_20' ) end [2025-01-07 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:05:20] Production.INFO: ==9191== Releasing lock... [2025-01-07 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:05:20] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:06:06 [end_date_ymd] => 2025-01-07 06:06:06 [RateCDR] => 1 ) [2025-01-07 06:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:06:06' and `end` < '2025-01-07 06:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:06:19] Production.INFO: count ==57 [2025-01-07 06:06:19] Production.ERROR: pbx CDR StartTime 2025-01-07 03:06:06 - End Time 2025-01-07 06:06:06 [2025-01-07 06:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192952', 'tblTempUsageDetail_20' ) start [2025-01-07 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192952', 'tblTempUsageDetail_20' ) end [2025-01-07 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192952', 'tblTempVendorCDR_20' ) start [2025-01-07 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192952', 'tblTempVendorCDR_20' ) end [2025-01-07 06:06:19] Production.INFO: ProcessCDR(1,14192952,1,1,2) [2025-01-07 06:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192952', 'tblTempUsageDetail_20' ) start [2025-01-07 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192952', 'tblTempUsageDetail_20' ) end [2025-01-07 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:06:22] Production.INFO: ==9314== Releasing lock... [2025-01-07 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:06:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:07:05 [end_date_ymd] => 2025-01-07 06:07:05 [RateCDR] => 1 ) [2025-01-07 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:07:05' and `end` < '2025-01-07 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:07:18] Production.INFO: count ==57 [2025-01-07 06:07:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:07:05 - End Time 2025-01-07 06:07:05 [2025-01-07 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192957', 'tblTempUsageDetail_20' ) start [2025-01-07 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192957', 'tblTempUsageDetail_20' ) end [2025-01-07 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192957', 'tblTempVendorCDR_20' ) start [2025-01-07 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192957', 'tblTempVendorCDR_20' ) end [2025-01-07 06:07:18] Production.INFO: ProcessCDR(1,14192957,1,1,2) [2025-01-07 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192957', 'tblTempUsageDetail_20' ) start [2025-01-07 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192957', 'tblTempUsageDetail_20' ) end [2025-01-07 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:07:21] Production.INFO: ==9402== Releasing lock... [2025-01-07 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:07:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:08:05 [end_date_ymd] => 2025-01-07 06:08:05 [RateCDR] => 1 ) [2025-01-07 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:08:05' and `end` < '2025-01-07 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:08:18] Production.INFO: count ==57 [2025-01-07 06:08:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:08:05 - End Time 2025-01-07 06:08:05 [2025-01-07 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192962', 'tblTempUsageDetail_20' ) start [2025-01-07 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192962', 'tblTempUsageDetail_20' ) end [2025-01-07 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192962', 'tblTempVendorCDR_20' ) start [2025-01-07 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192962', 'tblTempVendorCDR_20' ) end [2025-01-07 06:08:18] Production.INFO: ProcessCDR(1,14192962,1,1,2) [2025-01-07 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192962', 'tblTempUsageDetail_20' ) start [2025-01-07 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192962', 'tblTempUsageDetail_20' ) end [2025-01-07 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:08:21] Production.INFO: ==9502== Releasing lock... [2025-01-07 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:08:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:09:06 [end_date_ymd] => 2025-01-07 06:09:06 [RateCDR] => 1 ) [2025-01-07 06:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:09:06' and `end` < '2025-01-07 06:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:09:19] Production.INFO: count ==57 [2025-01-07 06:09:19] Production.ERROR: pbx CDR StartTime 2025-01-07 03:09:06 - End Time 2025-01-07 06:09:06 [2025-01-07 06:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192967', 'tblTempUsageDetail_20' ) start [2025-01-07 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192967', 'tblTempUsageDetail_20' ) end [2025-01-07 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192967', 'tblTempVendorCDR_20' ) start [2025-01-07 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192967', 'tblTempVendorCDR_20' ) end [2025-01-07 06:09:19] Production.INFO: ProcessCDR(1,14192967,1,1,2) [2025-01-07 06:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192967', 'tblTempUsageDetail_20' ) start [2025-01-07 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192967', 'tblTempUsageDetail_20' ) end [2025-01-07 06:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:09:22] Production.INFO: ==9592== Releasing lock... [2025-01-07 06:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:09:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:10:05 [end_date_ymd] => 2025-01-07 06:10:05 [RateCDR] => 1 ) [2025-01-07 06:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:10:05' and `end` < '2025-01-07 06:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:10:18] Production.INFO: count ==53 [2025-01-07 06:10:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:10:05 - End Time 2025-01-07 06:10:05 [2025-01-07 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192973', 'tblTempUsageDetail_20' ) start [2025-01-07 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192973', 'tblTempUsageDetail_20' ) end [2025-01-07 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192973', 'tblTempVendorCDR_20' ) start [2025-01-07 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192973', 'tblTempVendorCDR_20' ) end [2025-01-07 06:10:18] Production.INFO: ProcessCDR(1,14192973,1,1,2) [2025-01-07 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192973', 'tblTempUsageDetail_20' ) start [2025-01-07 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192973', 'tblTempUsageDetail_20' ) end [2025-01-07 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:10:21] Production.INFO: ==9686== Releasing lock... [2025-01-07 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:10:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:11:06 [end_date_ymd] => 2025-01-07 06:11:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 03:11:06' and `end` < '2025-01-07 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-01-07 06:11:18] Production.INFO: count ==53 [2025-01-07 06:11:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:11:06 - End Time 2025-01-07 06:11:06 [2025-01-07 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192978', 'tblTempUsageDetail_20' ) start [2025-01-07 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192978', 'tblTempUsageDetail_20' ) end [2025-01-07 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192978', 'tblTempVendorCDR_20' ) start [2025-01-07 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192978', 'tblTempVendorCDR_20' ) end [2025-01-07 06:11:18] Production.INFO: ProcessCDR(1,14192978,1,1,2) [2025-01-07 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192978', 'tblTempUsageDetail_20' ) start [2025-01-07 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192978', 'tblTempUsageDetail_20' ) end [2025-01-07 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:11:21] Production.INFO: ==9780== Releasing lock... [2025-01-07 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:11:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:12:04 [end_date_ymd] => 2025-01-07 06:12:04 [RateCDR] => 1 ) [2025-01-07 06:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:12:04' and `end` < '2025-01-07 06:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:12:18] Production.INFO: count ==53 [2025-01-07 06:12:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:12:04 - End Time 2025-01-07 06:12:04 [2025-01-07 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192983', 'tblTempUsageDetail_20' ) start [2025-01-07 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192983', 'tblTempUsageDetail_20' ) end [2025-01-07 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192983', 'tblTempVendorCDR_20' ) start [2025-01-07 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192983', 'tblTempVendorCDR_20' ) end [2025-01-07 06:12:18] Production.INFO: ProcessCDR(1,14192983,1,1,2) [2025-01-07 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192983', 'tblTempUsageDetail_20' ) start [2025-01-07 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192983', 'tblTempUsageDetail_20' ) end [2025-01-07 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:12:21] Production.INFO: ==9885== Releasing lock... [2025-01-07 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:12:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:13:05 [end_date_ymd] => 2025-01-07 06:13:05 [RateCDR] => 1 ) [2025-01-07 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:13:05' and `end` < '2025-01-07 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:13:17] Production.INFO: count ==54 [2025-01-07 06:13:17] Production.ERROR: pbx CDR StartTime 2025-01-07 03:13:05 - End Time 2025-01-07 06:13:05 [2025-01-07 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192988', 'tblTempUsageDetail_20' ) start [2025-01-07 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192988', 'tblTempUsageDetail_20' ) end [2025-01-07 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192988', 'tblTempVendorCDR_20' ) start [2025-01-07 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192988', 'tblTempVendorCDR_20' ) end [2025-01-07 06:13:17] Production.INFO: ProcessCDR(1,14192988,1,1,2) [2025-01-07 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192988', 'tblTempUsageDetail_20' ) start [2025-01-07 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192988', 'tblTempUsageDetail_20' ) end [2025-01-07 06:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:13:22] Production.INFO: ==9992== Releasing lock... [2025-01-07 06:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:13:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:14:06 [end_date_ymd] => 2025-01-07 06:14:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 03:14:06' and `end` < '2025-01-07 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-01-07 06:14:19] Production.INFO: count ==54 [2025-01-07 06:14:19] Production.ERROR: pbx CDR StartTime 2025-01-07 03:14:06 - End Time 2025-01-07 06:14:06 [2025-01-07 06:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192993', 'tblTempUsageDetail_20' ) start [2025-01-07 06:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192993', 'tblTempUsageDetail_20' ) end [2025-01-07 06:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192993', 'tblTempVendorCDR_20' ) start [2025-01-07 06:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192993', 'tblTempVendorCDR_20' ) end [2025-01-07 06:14:20] Production.INFO: ProcessCDR(1,14192993,1,1,2) [2025-01-07 06:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192993', 'tblTempUsageDetail_20' ) start [2025-01-07 06:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192993', 'tblTempUsageDetail_20' ) end [2025-01-07 06:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:14:23] Production.INFO: ==10085== Releasing lock... [2025-01-07 06:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:14:23] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:15:05 [end_date_ymd] => 2025-01-07 06:15:05 [RateCDR] => 1 ) [2025-01-07 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:15:05' and `end` < '2025-01-07 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:15:18] Production.INFO: count ==54 [2025-01-07 06:15:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:15:05 - End Time 2025-01-07 06:15:05 [2025-01-07 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192998', 'tblTempUsageDetail_20' ) start [2025-01-07 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14192998', 'tblTempUsageDetail_20' ) end [2025-01-07 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192998', 'tblTempVendorCDR_20' ) start [2025-01-07 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14192998', 'tblTempVendorCDR_20' ) end [2025-01-07 06:15:18] Production.INFO: ProcessCDR(1,14192998,1,1,2) [2025-01-07 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14192998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14192998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14192998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14192998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192998', 'tblTempUsageDetail_20' ) start [2025-01-07 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14192998', 'tblTempUsageDetail_20' ) end [2025-01-07 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:15:21] Production.INFO: ==10193== Releasing lock... [2025-01-07 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:15:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:16:05 [end_date_ymd] => 2025-01-07 06:16:05 [RateCDR] => 1 ) [2025-01-07 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:16:05' and `end` < '2025-01-07 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:16:19] Production.INFO: count ==54 [2025-01-07 06:16:19] Production.ERROR: pbx CDR StartTime 2025-01-07 03:16:05 - End Time 2025-01-07 06:16:05 [2025-01-07 06:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193003', 'tblTempUsageDetail_20' ) start [2025-01-07 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193003', 'tblTempUsageDetail_20' ) end [2025-01-07 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193003', 'tblTempVendorCDR_20' ) start [2025-01-07 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193003', 'tblTempVendorCDR_20' ) end [2025-01-07 06:16:19] Production.INFO: ProcessCDR(1,14193003,1,1,2) [2025-01-07 06:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193003', 'tblTempUsageDetail_20' ) start [2025-01-07 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193003', 'tblTempUsageDetail_20' ) end [2025-01-07 06:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:16:22] Production.INFO: ==10283== Releasing lock... [2025-01-07 06:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:16:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:17:04 [end_date_ymd] => 2025-01-07 06:17:04 [RateCDR] => 1 ) [2025-01-07 06:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:17:04' and `end` < '2025-01-07 06:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:17:17] Production.INFO: count ==54 [2025-01-07 06:17:17] Production.ERROR: pbx CDR StartTime 2025-01-07 03:17:04 - End Time 2025-01-07 06:17:04 [2025-01-07 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193008', 'tblTempUsageDetail_20' ) start [2025-01-07 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193008', 'tblTempUsageDetail_20' ) end [2025-01-07 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193008', 'tblTempVendorCDR_20' ) start [2025-01-07 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193008', 'tblTempVendorCDR_20' ) end [2025-01-07 06:17:17] Production.INFO: ProcessCDR(1,14193008,1,1,2) [2025-01-07 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193008', 'tblTempUsageDetail_20' ) start [2025-01-07 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193008', 'tblTempUsageDetail_20' ) end [2025-01-07 06:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:17:20] Production.INFO: ==10369== Releasing lock... [2025-01-07 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:17:20] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:18:05 [end_date_ymd] => 2025-01-07 06:18:05 [RateCDR] => 1 ) [2025-01-07 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:18:05' and `end` < '2025-01-07 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:18:18] Production.INFO: count ==54 [2025-01-07 06:18:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:18:05 - End Time 2025-01-07 06:18:05 [2025-01-07 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193013', 'tblTempUsageDetail_20' ) start [2025-01-07 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193013', 'tblTempUsageDetail_20' ) end [2025-01-07 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193013', 'tblTempVendorCDR_20' ) start [2025-01-07 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193013', 'tblTempVendorCDR_20' ) end [2025-01-07 06:18:18] Production.INFO: ProcessCDR(1,14193013,1,1,2) [2025-01-07 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193013', 'tblTempUsageDetail_20' ) start [2025-01-07 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193013', 'tblTempUsageDetail_20' ) end [2025-01-07 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:18:21] Production.INFO: ==10451== Releasing lock... [2025-01-07 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:18:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:19:06 [end_date_ymd] => 2025-01-07 06:19:06 [RateCDR] => 1 ) [2025-01-07 06:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:19:06' and `end` < '2025-01-07 06:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:19:20] Production.INFO: count ==54 [2025-01-07 06:19:20] Production.ERROR: pbx CDR StartTime 2025-01-07 03:19:06 - End Time 2025-01-07 06:19:06 [2025-01-07 06:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193018', 'tblTempUsageDetail_20' ) start [2025-01-07 06:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193018', 'tblTempUsageDetail_20' ) end [2025-01-07 06:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193018', 'tblTempVendorCDR_20' ) start [2025-01-07 06:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193018', 'tblTempVendorCDR_20' ) end [2025-01-07 06:19:20] Production.INFO: ProcessCDR(1,14193018,1,1,2) [2025-01-07 06:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193018', 'tblTempUsageDetail_20' ) start [2025-01-07 06:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193018', 'tblTempUsageDetail_20' ) end [2025-01-07 06:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:19:23] Production.INFO: ==10545== Releasing lock... [2025-01-07 06:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:19:23] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:20:05 [end_date_ymd] => 2025-01-07 06:20:05 [RateCDR] => 1 ) [2025-01-07 06:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:20:05' and `end` < '2025-01-07 06:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:20:18] Production.INFO: count ==52 [2025-01-07 06:20:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:20:05 - End Time 2025-01-07 06:20:05 [2025-01-07 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193024', 'tblTempUsageDetail_20' ) start [2025-01-07 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193024', 'tblTempUsageDetail_20' ) end [2025-01-07 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193024', 'tblTempVendorCDR_20' ) start [2025-01-07 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193024', 'tblTempVendorCDR_20' ) end [2025-01-07 06:20:18] Production.INFO: ProcessCDR(1,14193024,1,1,2) [2025-01-07 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193024', 'tblTempUsageDetail_20' ) start [2025-01-07 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193024', 'tblTempUsageDetail_20' ) end [2025-01-07 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:20:21] Production.INFO: ==10644== Releasing lock... [2025-01-07 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:20:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:21:05 [end_date_ymd] => 2025-01-07 06:21:05 [RateCDR] => 1 ) [2025-01-07 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:21:05' and `end` < '2025-01-07 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:21:19] Production.INFO: count ==52 [2025-01-07 06:21:19] Production.ERROR: pbx CDR StartTime 2025-01-07 03:21:05 - End Time 2025-01-07 06:21:05 [2025-01-07 06:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193029', 'tblTempUsageDetail_20' ) start [2025-01-07 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193029', 'tblTempUsageDetail_20' ) end [2025-01-07 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193029', 'tblTempVendorCDR_20' ) start [2025-01-07 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193029', 'tblTempVendorCDR_20' ) end [2025-01-07 06:21:19] Production.INFO: ProcessCDR(1,14193029,1,1,2) [2025-01-07 06:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193029', 'tblTempUsageDetail_20' ) start [2025-01-07 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193029', 'tblTempUsageDetail_20' ) end [2025-01-07 06:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:21:22] Production.INFO: ==10738== Releasing lock... [2025-01-07 06:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:21:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:22:05 [end_date_ymd] => 2025-01-07 06:22:05 [RateCDR] => 1 ) [2025-01-07 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:22:05' and `end` < '2025-01-07 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:22:18] Production.INFO: count ==52 [2025-01-07 06:22:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:22:05 - End Time 2025-01-07 06:22:05 [2025-01-07 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193034', 'tblTempUsageDetail_20' ) start [2025-01-07 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193034', 'tblTempUsageDetail_20' ) end [2025-01-07 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193034', 'tblTempVendorCDR_20' ) start [2025-01-07 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193034', 'tblTempVendorCDR_20' ) end [2025-01-07 06:22:18] Production.INFO: ProcessCDR(1,14193034,1,1,2) [2025-01-07 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193034', 'tblTempUsageDetail_20' ) start [2025-01-07 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193034', 'tblTempUsageDetail_20' ) end [2025-01-07 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:22:21] Production.INFO: ==10863== Releasing lock... [2025-01-07 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:22:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:23:05 [end_date_ymd] => 2025-01-07 06:23:05 [RateCDR] => 1 ) [2025-01-07 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:23:05' and `end` < '2025-01-07 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:23:17] Production.INFO: count ==52 [2025-01-07 06:23:17] Production.ERROR: pbx CDR StartTime 2025-01-07 03:23:05 - End Time 2025-01-07 06:23:05 [2025-01-07 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193039', 'tblTempUsageDetail_20' ) start [2025-01-07 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193039', 'tblTempUsageDetail_20' ) end [2025-01-07 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193039', 'tblTempVendorCDR_20' ) start [2025-01-07 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193039', 'tblTempVendorCDR_20' ) end [2025-01-07 06:23:17] Production.INFO: ProcessCDR(1,14193039,1,1,2) [2025-01-07 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193039', 'tblTempUsageDetail_20' ) start [2025-01-07 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193039', 'tblTempUsageDetail_20' ) end [2025-01-07 06:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:23:20] Production.INFO: ==10960== Releasing lock... [2025-01-07 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:23:20] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:24:04 [end_date_ymd] => 2025-01-07 06:24:04 [RateCDR] => 1 ) [2025-01-07 06:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:24:04' and `end` < '2025-01-07 06:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:24:18] Production.INFO: count ==52 [2025-01-07 06:24:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:24:04 - End Time 2025-01-07 06:24:04 [2025-01-07 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193044', 'tblTempUsageDetail_20' ) start [2025-01-07 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193044', 'tblTempUsageDetail_20' ) end [2025-01-07 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193044', 'tblTempVendorCDR_20' ) start [2025-01-07 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193044', 'tblTempVendorCDR_20' ) end [2025-01-07 06:24:18] Production.INFO: ProcessCDR(1,14193044,1,1,2) [2025-01-07 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193044', 'tblTempUsageDetail_20' ) start [2025-01-07 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193044', 'tblTempUsageDetail_20' ) end [2025-01-07 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:24:21] Production.INFO: ==11046== Releasing lock... [2025-01-07 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:24:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:25:05 [end_date_ymd] => 2025-01-07 06:25:05 [RateCDR] => 1 ) [2025-01-07 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:25:05' and `end` < '2025-01-07 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:25:18] Production.INFO: count ==52 [2025-01-07 06:25:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:25:05 - End Time 2025-01-07 06:25:05 [2025-01-07 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193049', 'tblTempUsageDetail_20' ) start [2025-01-07 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193049', 'tblTempUsageDetail_20' ) end [2025-01-07 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193049', 'tblTempVendorCDR_20' ) start [2025-01-07 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193049', 'tblTempVendorCDR_20' ) end [2025-01-07 06:25:18] Production.INFO: ProcessCDR(1,14193049,1,1,2) [2025-01-07 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193049', 'tblTempUsageDetail_20' ) start [2025-01-07 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193049', 'tblTempUsageDetail_20' ) end [2025-01-07 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:25:21] Production.INFO: ==11143== Releasing lock... [2025-01-07 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:25:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:26:06 [end_date_ymd] => 2025-01-07 06:26:06 [RateCDR] => 1 ) [2025-01-07 06:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:26:06' and `end` < '2025-01-07 06:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:26:19] Production.INFO: count ==52 [2025-01-07 06:26:19] Production.ERROR: pbx CDR StartTime 2025-01-07 03:26:06 - End Time 2025-01-07 06:26:06 [2025-01-07 06:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193054', 'tblTempUsageDetail_20' ) start [2025-01-07 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193054', 'tblTempUsageDetail_20' ) end [2025-01-07 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193054', 'tblTempVendorCDR_20' ) start [2025-01-07 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193054', 'tblTempVendorCDR_20' ) end [2025-01-07 06:26:19] Production.INFO: ProcessCDR(1,14193054,1,1,2) [2025-01-07 06:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193054', 'tblTempUsageDetail_20' ) start [2025-01-07 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193054', 'tblTempUsageDetail_20' ) end [2025-01-07 06:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:26:22] Production.INFO: ==11223== Releasing lock... [2025-01-07 06:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:26:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:27:05 [end_date_ymd] => 2025-01-07 06:27:05 [RateCDR] => 1 ) [2025-01-07 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:27:05' and `end` < '2025-01-07 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:27:19] Production.INFO: count ==52 [2025-01-07 06:27:19] Production.ERROR: pbx CDR StartTime 2025-01-07 03:27:05 - End Time 2025-01-07 06:27:05 [2025-01-07 06:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193059', 'tblTempUsageDetail_20' ) start [2025-01-07 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193059', 'tblTempUsageDetail_20' ) end [2025-01-07 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193059', 'tblTempVendorCDR_20' ) start [2025-01-07 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193059', 'tblTempVendorCDR_20' ) end [2025-01-07 06:27:19] Production.INFO: ProcessCDR(1,14193059,1,1,2) [2025-01-07 06:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193059', 'tblTempUsageDetail_20' ) start [2025-01-07 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193059', 'tblTempUsageDetail_20' ) end [2025-01-07 06:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:27:22] Production.INFO: ==11303== Releasing lock... [2025-01-07 06:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:27:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:28:05 [end_date_ymd] => 2025-01-07 06:28:05 [RateCDR] => 1 ) [2025-01-07 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:28:05' and `end` < '2025-01-07 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:28:18] Production.INFO: count ==52 [2025-01-07 06:28:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:28:05 - End Time 2025-01-07 06:28:05 [2025-01-07 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193064', 'tblTempUsageDetail_20' ) start [2025-01-07 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193064', 'tblTempUsageDetail_20' ) end [2025-01-07 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193064', 'tblTempVendorCDR_20' ) start [2025-01-07 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193064', 'tblTempVendorCDR_20' ) end [2025-01-07 06:28:18] Production.INFO: ProcessCDR(1,14193064,1,1,2) [2025-01-07 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193064', 'tblTempUsageDetail_20' ) start [2025-01-07 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193064', 'tblTempUsageDetail_20' ) end [2025-01-07 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:28:21] Production.INFO: ==11399== Releasing lock... [2025-01-07 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:28:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:29:05 [end_date_ymd] => 2025-01-07 06:29:05 [RateCDR] => 1 ) [2025-01-07 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:29:05' and `end` < '2025-01-07 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:29:17] Production.INFO: count ==52 [2025-01-07 06:29:17] Production.ERROR: pbx CDR StartTime 2025-01-07 03:29:05 - End Time 2025-01-07 06:29:05 [2025-01-07 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193069', 'tblTempUsageDetail_20' ) start [2025-01-07 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193069', 'tblTempUsageDetail_20' ) end [2025-01-07 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193069', 'tblTempVendorCDR_20' ) start [2025-01-07 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193069', 'tblTempVendorCDR_20' ) end [2025-01-07 06:29:17] Production.INFO: ProcessCDR(1,14193069,1,1,2) [2025-01-07 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193069', 'tblTempUsageDetail_20' ) start [2025-01-07 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193069', 'tblTempUsageDetail_20' ) end [2025-01-07 06:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:29:20] Production.INFO: ==11483== Releasing lock... [2025-01-07 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:29:20] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:30:06 [end_date_ymd] => 2025-01-07 06:30:06 [RateCDR] => 1 ) [2025-01-07 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:30:06' and `end` < '2025-01-07 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:30:19] Production.INFO: count ==54 [2025-01-07 06:30:19] Production.ERROR: pbx CDR StartTime 2025-01-07 03:30:06 - End Time 2025-01-07 06:30:06 [2025-01-07 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193075', 'tblTempUsageDetail_20' ) start [2025-01-07 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193075', 'tblTempUsageDetail_20' ) end [2025-01-07 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193075', 'tblTempVendorCDR_20' ) start [2025-01-07 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193075', 'tblTempVendorCDR_20' ) end [2025-01-07 06:30:19] Production.INFO: ProcessCDR(1,14193075,1,1,2) [2025-01-07 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193075', 'tblTempUsageDetail_20' ) start [2025-01-07 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193075', 'tblTempUsageDetail_20' ) end [2025-01-07 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:30:22] Production.INFO: ==11566== Releasing lock... [2025-01-07 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:30:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:31:04 [end_date_ymd] => 2025-01-07 06:31:04 [RateCDR] => 1 ) [2025-01-07 06:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:31:04' and `end` < '2025-01-07 06:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:31:18] Production.INFO: count ==56 [2025-01-07 06:31:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:31:04 - End Time 2025-01-07 06:31:04 [2025-01-07 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193080', 'tblTempUsageDetail_20' ) start [2025-01-07 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193080', 'tblTempUsageDetail_20' ) end [2025-01-07 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193080', 'tblTempVendorCDR_20' ) start [2025-01-07 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193080', 'tblTempVendorCDR_20' ) end [2025-01-07 06:31:18] Production.INFO: ProcessCDR(1,14193080,1,1,2) [2025-01-07 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193080', 'tblTempUsageDetail_20' ) start [2025-01-07 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193080', 'tblTempUsageDetail_20' ) end [2025-01-07 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:31:21] Production.INFO: ==11641== Releasing lock... [2025-01-07 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:31:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:32:05 [end_date_ymd] => 2025-01-07 06:32:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 03:32:05' and `end` < '2025-01-07 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:32:18] Production.INFO: count ==56 [2025-01-07 06:32:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:32:05 - End Time 2025-01-07 06:32:05 [2025-01-07 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193085', 'tblTempUsageDetail_20' ) start [2025-01-07 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193085', 'tblTempUsageDetail_20' ) end [2025-01-07 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193085', 'tblTempVendorCDR_20' ) start [2025-01-07 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193085', 'tblTempVendorCDR_20' ) end [2025-01-07 06:32:18] Production.INFO: ProcessCDR(1,14193085,1,1,2) [2025-01-07 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193085', 'tblTempUsageDetail_20' ) start [2025-01-07 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193085', 'tblTempUsageDetail_20' ) end [2025-01-07 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:32:21] Production.INFO: ==11717== Releasing lock... [2025-01-07 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:32:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:33:05 [end_date_ymd] => 2025-01-07 06:33:05 [RateCDR] => 1 ) [2025-01-07 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:33:05' and `end` < '2025-01-07 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:33:19] Production.INFO: count ==56 [2025-01-07 06:33:19] Production.ERROR: pbx CDR StartTime 2025-01-07 03:33:05 - End Time 2025-01-07 06:33:05 [2025-01-07 06:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193090', 'tblTempUsageDetail_20' ) start [2025-01-07 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193090', 'tblTempUsageDetail_20' ) end [2025-01-07 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193090', 'tblTempVendorCDR_20' ) start [2025-01-07 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193090', 'tblTempVendorCDR_20' ) end [2025-01-07 06:33:19] Production.INFO: ProcessCDR(1,14193090,1,1,2) [2025-01-07 06:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193090', 'tblTempUsageDetail_20' ) start [2025-01-07 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193090', 'tblTempUsageDetail_20' ) end [2025-01-07 06:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:33:22] Production.INFO: ==11792== Releasing lock... [2025-01-07 06:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:33:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:34:04 [end_date_ymd] => 2025-01-07 06:34:04 [RateCDR] => 1 ) [2025-01-07 06:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:34:04' and `end` < '2025-01-07 06:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:34:17] Production.INFO: count ==57 [2025-01-07 06:34:17] Production.ERROR: pbx CDR StartTime 2025-01-07 03:34:04 - End Time 2025-01-07 06:34:04 [2025-01-07 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193095', 'tblTempUsageDetail_20' ) start [2025-01-07 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193095', 'tblTempUsageDetail_20' ) end [2025-01-07 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193095', 'tblTempVendorCDR_20' ) start [2025-01-07 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193095', 'tblTempVendorCDR_20' ) end [2025-01-07 06:34:17] Production.INFO: ProcessCDR(1,14193095,1,1,2) [2025-01-07 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193095', 'tblTempUsageDetail_20' ) start [2025-01-07 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193095', 'tblTempUsageDetail_20' ) end [2025-01-07 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:34:21] Production.INFO: ==11866== Releasing lock... [2025-01-07 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:34:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:35:05 [end_date_ymd] => 2025-01-07 06:35:05 [RateCDR] => 1 ) [2025-01-07 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:35:05' and `end` < '2025-01-07 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:35:18] Production.INFO: count ==60 [2025-01-07 06:35:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:35:05 - End Time 2025-01-07 06:35:05 [2025-01-07 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193100', 'tblTempUsageDetail_20' ) start [2025-01-07 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193100', 'tblTempUsageDetail_20' ) end [2025-01-07 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193100', 'tblTempVendorCDR_20' ) start [2025-01-07 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193100', 'tblTempVendorCDR_20' ) end [2025-01-07 06:35:18] Production.INFO: ProcessCDR(1,14193100,1,1,2) [2025-01-07 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193100', 'tblTempUsageDetail_20' ) start [2025-01-07 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193100', 'tblTempUsageDetail_20' ) end [2025-01-07 06:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:35:22] Production.INFO: ==11940== Releasing lock... [2025-01-07 06:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:35:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:36:04 [end_date_ymd] => 2025-01-07 06:36:04 [RateCDR] => 1 ) [2025-01-07 06:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:36:04' and `end` < '2025-01-07 06:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:36:18] Production.INFO: count ==64 [2025-01-07 06:36:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:36:04 - End Time 2025-01-07 06:36:04 [2025-01-07 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193105', 'tblTempUsageDetail_20' ) start [2025-01-07 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193105', 'tblTempUsageDetail_20' ) end [2025-01-07 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193105', 'tblTempVendorCDR_20' ) start [2025-01-07 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193105', 'tblTempVendorCDR_20' ) end [2025-01-07 06:36:18] Production.INFO: ProcessCDR(1,14193105,1,1,2) [2025-01-07 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193105', 'tblTempUsageDetail_20' ) start [2025-01-07 06:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193105', 'tblTempUsageDetail_20' ) end [2025-01-07 06:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:36:23] Production.INFO: ==12018== Releasing lock... [2025-01-07 06:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:36:23] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:37:05 [end_date_ymd] => 2025-01-07 06:37:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 03:37:05' and `end` < '2025-01-07 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-01-07 06:37:18] Production.INFO: count ==64 [2025-01-07 06:37:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:37:05 - End Time 2025-01-07 06:37:05 [2025-01-07 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193110', 'tblTempUsageDetail_20' ) start [2025-01-07 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193110', 'tblTempUsageDetail_20' ) end [2025-01-07 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193110', 'tblTempVendorCDR_20' ) start [2025-01-07 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193110', 'tblTempVendorCDR_20' ) end [2025-01-07 06:37:18] Production.INFO: ProcessCDR(1,14193110,1,1,2) [2025-01-07 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193110', 'tblTempUsageDetail_20' ) start [2025-01-07 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193110', 'tblTempUsageDetail_20' ) end [2025-01-07 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:37:21] Production.INFO: ==12140== Releasing lock... [2025-01-07 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:37:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:38:05 [end_date_ymd] => 2025-01-07 06:38:05 [RateCDR] => 1 ) [2025-01-07 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:38:05' and `end` < '2025-01-07 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:38:18] Production.INFO: count ==64 [2025-01-07 06:38:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:38:05 - End Time 2025-01-07 06:38:05 [2025-01-07 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193115', 'tblTempUsageDetail_20' ) start [2025-01-07 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193115', 'tblTempUsageDetail_20' ) end [2025-01-07 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193115', 'tblTempVendorCDR_20' ) start [2025-01-07 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193115', 'tblTempVendorCDR_20' ) end [2025-01-07 06:38:18] Production.INFO: ProcessCDR(1,14193115,1,1,2) [2025-01-07 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193115', 'tblTempUsageDetail_20' ) start [2025-01-07 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193115', 'tblTempUsageDetail_20' ) end [2025-01-07 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:38:21] Production.INFO: ==12228== Releasing lock... [2025-01-07 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:38:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:39:05 [end_date_ymd] => 2025-01-07 06:39:05 [RateCDR] => 1 ) [2025-01-07 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:39:05' and `end` < '2025-01-07 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:39:19] Production.INFO: count ==65 [2025-01-07 06:39:19] Production.ERROR: pbx CDR StartTime 2025-01-07 03:39:05 - End Time 2025-01-07 06:39:05 [2025-01-07 06:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193120', 'tblTempUsageDetail_20' ) start [2025-01-07 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193120', 'tblTempUsageDetail_20' ) end [2025-01-07 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193120', 'tblTempVendorCDR_20' ) start [2025-01-07 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193120', 'tblTempVendorCDR_20' ) end [2025-01-07 06:39:19] Production.INFO: ProcessCDR(1,14193120,1,1,2) [2025-01-07 06:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193120', 'tblTempUsageDetail_20' ) start [2025-01-07 06:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193120', 'tblTempUsageDetail_20' ) end [2025-01-07 06:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:39:24] Production.INFO: ==12306== Releasing lock... [2025-01-07 06:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:39:24] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:40:07 [end_date_ymd] => 2025-01-07 06:40:07 [RateCDR] => 1 ) [2025-01-07 06:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:40:07' and `end` < '2025-01-07 06:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:40:20] Production.INFO: count ==71 [2025-01-07 06:40:20] Production.ERROR: pbx CDR StartTime 2025-01-07 03:40:07 - End Time 2025-01-07 06:40:07 [2025-01-07 06:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193126', 'tblTempUsageDetail_20' ) start [2025-01-07 06:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193126', 'tblTempUsageDetail_20' ) end [2025-01-07 06:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193126', 'tblTempVendorCDR_20' ) start [2025-01-07 06:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193126', 'tblTempVendorCDR_20' ) end [2025-01-07 06:40:20] Production.INFO: ProcessCDR(1,14193126,1,1,2) [2025-01-07 06:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193126', 'tblTempUsageDetail_20' ) start [2025-01-07 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193126', 'tblTempUsageDetail_20' ) end [2025-01-07 06:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:40:23] Production.INFO: ==12392== Releasing lock... [2025-01-07 06:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:40:23] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:41:04 [end_date_ymd] => 2025-01-07 06:41:04 [RateCDR] => 1 ) [2025-01-07 06:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:41:04' and `end` < '2025-01-07 06:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:41:17] Production.INFO: count ==71 [2025-01-07 06:41:17] Production.ERROR: pbx CDR StartTime 2025-01-07 03:41:04 - End Time 2025-01-07 06:41:04 [2025-01-07 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193131', 'tblTempUsageDetail_20' ) start [2025-01-07 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193131', 'tblTempUsageDetail_20' ) end [2025-01-07 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193131', 'tblTempVendorCDR_20' ) start [2025-01-07 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193131', 'tblTempVendorCDR_20' ) end [2025-01-07 06:41:17] Production.INFO: ProcessCDR(1,14193131,1,1,2) [2025-01-07 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193131', 'tblTempUsageDetail_20' ) start [2025-01-07 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193131', 'tblTempUsageDetail_20' ) end [2025-01-07 06:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:41:20] Production.INFO: ==12483== Releasing lock... [2025-01-07 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:41:20] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:42:05 [end_date_ymd] => 2025-01-07 06:42:05 [RateCDR] => 1 ) [2025-01-07 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:42:05' and `end` < '2025-01-07 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:42:19] Production.INFO: count ==72 [2025-01-07 06:42:19] Production.ERROR: pbx CDR StartTime 2025-01-07 03:42:05 - End Time 2025-01-07 06:42:05 [2025-01-07 06:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193136', 'tblTempUsageDetail_20' ) start [2025-01-07 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193136', 'tblTempUsageDetail_20' ) end [2025-01-07 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193136', 'tblTempVendorCDR_20' ) start [2025-01-07 06:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193136', 'tblTempVendorCDR_20' ) end [2025-01-07 06:42:20] Production.INFO: ProcessCDR(1,14193136,1,1,2) [2025-01-07 06:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193136', 'tblTempUsageDetail_20' ) start [2025-01-07 06:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193136', 'tblTempUsageDetail_20' ) end [2025-01-07 06:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:42:24] Production.INFO: ==12558== Releasing lock... [2025-01-07 06:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:42:24] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:43:05 [end_date_ymd] => 2025-01-07 06:43:05 [RateCDR] => 1 ) [2025-01-07 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:43:05' and `end` < '2025-01-07 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:43:18] Production.INFO: count ==72 [2025-01-07 06:43:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:43:05 - End Time 2025-01-07 06:43:05 [2025-01-07 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193141', 'tblTempUsageDetail_20' ) start [2025-01-07 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193141', 'tblTempUsageDetail_20' ) end [2025-01-07 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193141', 'tblTempVendorCDR_20' ) start [2025-01-07 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193141', 'tblTempVendorCDR_20' ) end [2025-01-07 06:43:18] Production.INFO: ProcessCDR(1,14193141,1,1,2) [2025-01-07 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193141', 'tblTempUsageDetail_20' ) start [2025-01-07 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193141', 'tblTempUsageDetail_20' ) end [2025-01-07 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:43:21] Production.INFO: ==12638== Releasing lock... [2025-01-07 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:43:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:44:05 [end_date_ymd] => 2025-01-07 06:44:05 [RateCDR] => 1 ) [2025-01-07 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:44:05' and `end` < '2025-01-07 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:44:18] Production.INFO: count ==72 [2025-01-07 06:44:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:44:05 - End Time 2025-01-07 06:44:05 [2025-01-07 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193146', 'tblTempUsageDetail_20' ) start [2025-01-07 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193146', 'tblTempUsageDetail_20' ) end [2025-01-07 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193146', 'tblTempVendorCDR_20' ) start [2025-01-07 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193146', 'tblTempVendorCDR_20' ) end [2025-01-07 06:44:18] Production.INFO: ProcessCDR(1,14193146,1,1,2) [2025-01-07 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193146', 'tblTempUsageDetail_20' ) start [2025-01-07 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193146', 'tblTempUsageDetail_20' ) end [2025-01-07 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:44:21] Production.INFO: ==12717== Releasing lock... [2025-01-07 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:44:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:45:05 [end_date_ymd] => 2025-01-07 06:45:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 03:45:05' and `end` < '2025-01-07 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:45:19] Production.INFO: count ==72 [2025-01-07 06:45:19] Production.ERROR: pbx CDR StartTime 2025-01-07 03:45:05 - End Time 2025-01-07 06:45:05 [2025-01-07 06:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193151', 'tblTempUsageDetail_20' ) start [2025-01-07 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193151', 'tblTempUsageDetail_20' ) end [2025-01-07 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193151', 'tblTempVendorCDR_20' ) start [2025-01-07 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193151', 'tblTempVendorCDR_20' ) end [2025-01-07 06:45:19] Production.INFO: ProcessCDR(1,14193151,1,1,2) [2025-01-07 06:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193151', 'tblTempUsageDetail_20' ) start [2025-01-07 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193151', 'tblTempUsageDetail_20' ) end [2025-01-07 06:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:45:22] Production.INFO: ==12796== Releasing lock... [2025-01-07 06:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:45:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:46:05 [end_date_ymd] => 2025-01-07 06:46:05 [RateCDR] => 1 ) [2025-01-07 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:46:05' and `end` < '2025-01-07 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:46:19] Production.INFO: count ==72 [2025-01-07 06:46:19] Production.ERROR: pbx CDR StartTime 2025-01-07 03:46:05 - End Time 2025-01-07 06:46:05 [2025-01-07 06:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193156', 'tblTempUsageDetail_20' ) start [2025-01-07 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193156', 'tblTempUsageDetail_20' ) end [2025-01-07 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193156', 'tblTempVendorCDR_20' ) start [2025-01-07 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193156', 'tblTempVendorCDR_20' ) end [2025-01-07 06:46:19] Production.INFO: ProcessCDR(1,14193156,1,1,2) [2025-01-07 06:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193156', 'tblTempUsageDetail_20' ) start [2025-01-07 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193156', 'tblTempUsageDetail_20' ) end [2025-01-07 06:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:46:22] Production.INFO: ==12867== Releasing lock... [2025-01-07 06:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:46:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:47:05 [end_date_ymd] => 2025-01-07 06:47:05 [RateCDR] => 1 ) [2025-01-07 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:47:05' and `end` < '2025-01-07 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:47:19] Production.INFO: count ==72 [2025-01-07 06:47:19] Production.ERROR: pbx CDR StartTime 2025-01-07 03:47:05 - End Time 2025-01-07 06:47:05 [2025-01-07 06:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193161', 'tblTempUsageDetail_20' ) start [2025-01-07 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193161', 'tblTempUsageDetail_20' ) end [2025-01-07 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193161', 'tblTempVendorCDR_20' ) start [2025-01-07 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193161', 'tblTempVendorCDR_20' ) end [2025-01-07 06:47:19] Production.INFO: ProcessCDR(1,14193161,1,1,2) [2025-01-07 06:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193161', 'tblTempUsageDetail_20' ) start [2025-01-07 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193161', 'tblTempUsageDetail_20' ) end [2025-01-07 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:47:22] Production.INFO: ==12948== Releasing lock... [2025-01-07 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:47:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:48:05 [end_date_ymd] => 2025-01-07 06:48:05 [RateCDR] => 1 ) [2025-01-07 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:48:05' and `end` < '2025-01-07 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:48:19] Production.INFO: count ==72 [2025-01-07 06:48:19] Production.ERROR: pbx CDR StartTime 2025-01-07 03:48:05 - End Time 2025-01-07 06:48:05 [2025-01-07 06:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193166', 'tblTempUsageDetail_20' ) start [2025-01-07 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193166', 'tblTempUsageDetail_20' ) end [2025-01-07 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193166', 'tblTempVendorCDR_20' ) start [2025-01-07 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193166', 'tblTempVendorCDR_20' ) end [2025-01-07 06:48:19] Production.INFO: ProcessCDR(1,14193166,1,1,2) [2025-01-07 06:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193166', 'tblTempUsageDetail_20' ) start [2025-01-07 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193166', 'tblTempUsageDetail_20' ) end [2025-01-07 06:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:48:22] Production.INFO: ==13026== Releasing lock... [2025-01-07 06:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:48:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:49:05 [end_date_ymd] => 2025-01-07 06:49:05 [RateCDR] => 1 ) [2025-01-07 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:49:05' and `end` < '2025-01-07 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:49:18] Production.INFO: count ==72 [2025-01-07 06:49:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:49:05 - End Time 2025-01-07 06:49:05 [2025-01-07 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193171', 'tblTempUsageDetail_20' ) start [2025-01-07 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193171', 'tblTempUsageDetail_20' ) end [2025-01-07 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193171', 'tblTempVendorCDR_20' ) start [2025-01-07 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193171', 'tblTempVendorCDR_20' ) end [2025-01-07 06:49:18] Production.INFO: ProcessCDR(1,14193171,1,1,2) [2025-01-07 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193171', 'tblTempUsageDetail_20' ) start [2025-01-07 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193171', 'tblTempUsageDetail_20' ) end [2025-01-07 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:49:21] Production.INFO: ==13101== Releasing lock... [2025-01-07 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:49:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:50:06 [end_date_ymd] => 2025-01-07 06:50:06 [RateCDR] => 1 ) [2025-01-07 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:50:06' and `end` < '2025-01-07 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:50:18] Production.INFO: count ==72 [2025-01-07 06:50:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:50:06 - End Time 2025-01-07 06:50:06 [2025-01-07 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193176', 'tblTempUsageDetail_20' ) start [2025-01-07 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193176', 'tblTempUsageDetail_20' ) end [2025-01-07 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193176', 'tblTempVendorCDR_20' ) start [2025-01-07 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193176', 'tblTempVendorCDR_20' ) end [2025-01-07 06:50:18] Production.INFO: ProcessCDR(1,14193176,1,1,2) [2025-01-07 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193176', 'tblTempUsageDetail_20' ) start [2025-01-07 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193176', 'tblTempUsageDetail_20' ) end [2025-01-07 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:50:21] Production.INFO: ==13178== Releasing lock... [2025-01-07 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:50:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:51:05 [end_date_ymd] => 2025-01-07 06:51:05 [RateCDR] => 1 ) [2025-01-07 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:51:05' and `end` < '2025-01-07 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:51:19] Production.INFO: count ==72 [2025-01-07 06:51:19] Production.ERROR: pbx CDR StartTime 2025-01-07 03:51:05 - End Time 2025-01-07 06:51:05 [2025-01-07 06:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193182', 'tblTempUsageDetail_20' ) start [2025-01-07 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193182', 'tblTempUsageDetail_20' ) end [2025-01-07 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193182', 'tblTempVendorCDR_20' ) start [2025-01-07 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193182', 'tblTempVendorCDR_20' ) end [2025-01-07 06:51:19] Production.INFO: ProcessCDR(1,14193182,1,1,2) [2025-01-07 06:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193182', 'tblTempUsageDetail_20' ) start [2025-01-07 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193182', 'tblTempUsageDetail_20' ) end [2025-01-07 06:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:51:22] Production.INFO: ==13277== Releasing lock... [2025-01-07 06:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:51:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:52:05 [end_date_ymd] => 2025-01-07 06:52:05 [RateCDR] => 1 ) [2025-01-07 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:52:05' and `end` < '2025-01-07 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:52:18] Production.INFO: count ==72 [2025-01-07 06:52:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:52:05 - End Time 2025-01-07 06:52:05 [2025-01-07 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193187', 'tblTempUsageDetail_20' ) start [2025-01-07 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193187', 'tblTempUsageDetail_20' ) end [2025-01-07 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193187', 'tblTempVendorCDR_20' ) start [2025-01-07 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193187', 'tblTempVendorCDR_20' ) end [2025-01-07 06:52:18] Production.INFO: ProcessCDR(1,14193187,1,1,2) [2025-01-07 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193187', 'tblTempUsageDetail_20' ) start [2025-01-07 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193187', 'tblTempUsageDetail_20' ) end [2025-01-07 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:52:21] Production.INFO: ==13371== Releasing lock... [2025-01-07 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:52:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:53:05 [end_date_ymd] => 2025-01-07 06:53:05 [RateCDR] => 1 ) [2025-01-07 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:53:05' and `end` < '2025-01-07 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:53:18] Production.INFO: count ==72 [2025-01-07 06:53:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:53:05 - End Time 2025-01-07 06:53:05 [2025-01-07 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193192', 'tblTempUsageDetail_20' ) start [2025-01-07 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193192', 'tblTempUsageDetail_20' ) end [2025-01-07 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193192', 'tblTempVendorCDR_20' ) start [2025-01-07 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193192', 'tblTempVendorCDR_20' ) end [2025-01-07 06:53:18] Production.INFO: ProcessCDR(1,14193192,1,1,2) [2025-01-07 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193192', 'tblTempUsageDetail_20' ) start [2025-01-07 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193192', 'tblTempUsageDetail_20' ) end [2025-01-07 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:53:21] Production.INFO: ==13504== Releasing lock... [2025-01-07 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:53:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:54:05 [end_date_ymd] => 2025-01-07 06:54:05 [RateCDR] => 1 ) [2025-01-07 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:54:05' and `end` < '2025-01-07 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:54:18] Production.INFO: count ==72 [2025-01-07 06:54:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:54:05 - End Time 2025-01-07 06:54:05 [2025-01-07 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193197', 'tblTempUsageDetail_20' ) start [2025-01-07 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193197', 'tblTempUsageDetail_20' ) end [2025-01-07 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193197', 'tblTempVendorCDR_20' ) start [2025-01-07 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193197', 'tblTempVendorCDR_20' ) end [2025-01-07 06:54:18] Production.INFO: ProcessCDR(1,14193197,1,1,2) [2025-01-07 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193197', 'tblTempUsageDetail_20' ) start [2025-01-07 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193197', 'tblTempUsageDetail_20' ) end [2025-01-07 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:54:21] Production.INFO: ==13595== Releasing lock... [2025-01-07 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:54:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:55:05 [end_date_ymd] => 2025-01-07 06:55:05 [RateCDR] => 1 ) [2025-01-07 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:55:05' and `end` < '2025-01-07 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:55:17] Production.INFO: count ==72 [2025-01-07 06:55:17] Production.ERROR: pbx CDR StartTime 2025-01-07 03:55:05 - End Time 2025-01-07 06:55:05 [2025-01-07 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193198', 'tblTempUsageDetail_20' ) start [2025-01-07 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193198', 'tblTempUsageDetail_20' ) end [2025-01-07 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193198', 'tblTempVendorCDR_20' ) start [2025-01-07 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193198', 'tblTempVendorCDR_20' ) end [2025-01-07 06:55:17] Production.INFO: ProcessCDR(1,14193198,1,1,2) [2025-01-07 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193198', 'tblTempUsageDetail_20' ) start [2025-01-07 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193198', 'tblTempUsageDetail_20' ) end [2025-01-07 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:55:20] Production.INFO: ==13675== Releasing lock... [2025-01-07 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:55:20] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:56:05 [end_date_ymd] => 2025-01-07 06:56:05 [RateCDR] => 1 ) [2025-01-07 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:56:05' and `end` < '2025-01-07 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:56:18] Production.INFO: count ==72 [2025-01-07 06:56:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:56:05 - End Time 2025-01-07 06:56:05 [2025-01-07 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193207', 'tblTempUsageDetail_20' ) start [2025-01-07 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193207', 'tblTempUsageDetail_20' ) end [2025-01-07 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193207', 'tblTempVendorCDR_20' ) start [2025-01-07 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193207', 'tblTempVendorCDR_20' ) end [2025-01-07 06:56:18] Production.INFO: ProcessCDR(1,14193207,1,1,2) [2025-01-07 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193207', 'tblTempUsageDetail_20' ) start [2025-01-07 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193207', 'tblTempUsageDetail_20' ) end [2025-01-07 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:56:21] Production.INFO: ==13747== Releasing lock... [2025-01-07 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:56:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:57:04 [end_date_ymd] => 2025-01-07 06:57:04 [RateCDR] => 1 ) [2025-01-07 06:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:57:04' and `end` < '2025-01-07 06:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:57:18] Production.INFO: count ==72 [2025-01-07 06:57:18] Production.ERROR: pbx CDR StartTime 2025-01-07 03:57:04 - End Time 2025-01-07 06:57:04 [2025-01-07 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193212', 'tblTempUsageDetail_20' ) start [2025-01-07 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193212', 'tblTempUsageDetail_20' ) end [2025-01-07 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193212', 'tblTempVendorCDR_20' ) start [2025-01-07 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193212', 'tblTempVendorCDR_20' ) end [2025-01-07 06:57:18] Production.INFO: ProcessCDR(1,14193212,1,1,2) [2025-01-07 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193212', 'tblTempUsageDetail_20' ) start [2025-01-07 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193212', 'tblTempUsageDetail_20' ) end [2025-01-07 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:57:21] Production.INFO: ==13818== Releasing lock... [2025-01-07 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:57:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:58:05 [end_date_ymd] => 2025-01-07 06:58:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 03:58:05' and `end` < '2025-01-07 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-01-07 06:58:19] Production.INFO: count ==72 [2025-01-07 06:58:19] Production.ERROR: pbx CDR StartTime 2025-01-07 03:58:05 - End Time 2025-01-07 06:58:05 [2025-01-07 06:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193217', 'tblTempUsageDetail_20' ) start [2025-01-07 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193217', 'tblTempUsageDetail_20' ) end [2025-01-07 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193217', 'tblTempVendorCDR_20' ) start [2025-01-07 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193217', 'tblTempVendorCDR_20' ) end [2025-01-07 06:58:19] Production.INFO: ProcessCDR(1,14193217,1,1,2) [2025-01-07 06:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193217', 'tblTempUsageDetail_20' ) start [2025-01-07 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193217', 'tblTempUsageDetail_20' ) end [2025-01-07 06:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:58:22] Production.INFO: ==13889== Releasing lock... [2025-01-07 06:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:58:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 03:59:05 [end_date_ymd] => 2025-01-07 06:59:05 [RateCDR] => 1 ) [2025-01-07 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 03:59:05' and `end` < '2025-01-07 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 06:59:17] Production.INFO: count ==72 [2025-01-07 06:59:17] Production.ERROR: pbx CDR StartTime 2025-01-07 03:59:05 - End Time 2025-01-07 06:59:05 [2025-01-07 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193222', 'tblTempUsageDetail_20' ) start [2025-01-07 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193222', 'tblTempUsageDetail_20' ) end [2025-01-07 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193222', 'tblTempVendorCDR_20' ) start [2025-01-07 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193222', 'tblTempVendorCDR_20' ) end [2025-01-07 06:59:17] Production.INFO: ProcessCDR(1,14193222,1,1,2) [2025-01-07 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193222', 'tblTempUsageDetail_20' ) start [2025-01-07 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193222', 'tblTempUsageDetail_20' ) end [2025-01-07 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 06:59:21] Production.INFO: ==13959== Releasing lock... [2025-01-07 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 06:59:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:00:06 [end_date_ymd] => 2025-01-07 07:00:06 [RateCDR] => 1 ) [2025-01-07 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:00:06' and `end` < '2025-01-07 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:00:19] Production.INFO: count ==72 [2025-01-07 07:00:19] Production.ERROR: pbx CDR StartTime 2025-01-07 04:00:06 - End Time 2025-01-07 07:00:06 [2025-01-07 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193227', 'tblTempUsageDetail_20' ) start [2025-01-07 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193227', 'tblTempUsageDetail_20' ) end [2025-01-07 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193227', 'tblTempVendorCDR_20' ) start [2025-01-07 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193227', 'tblTempVendorCDR_20' ) end [2025-01-07 07:00:19] Production.INFO: ProcessCDR(1,14193227,1,1,2) [2025-01-07 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193227', 'tblTempUsageDetail_20' ) start [2025-01-07 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193227', 'tblTempUsageDetail_20' ) end [2025-01-07 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:00:22] Production.INFO: ==14034== Releasing lock... [2025-01-07 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:00:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:01:05 [end_date_ymd] => 2025-01-07 07:01:05 [RateCDR] => 1 ) [2025-01-07 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:01:05' and `end` < '2025-01-07 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:01:23] Production.INFO: count ==72 [2025-01-07 07:01:23] Production.ERROR: pbx CDR StartTime 2025-01-07 04:01:05 - End Time 2025-01-07 07:01:05 [2025-01-07 07:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193233', 'tblTempUsageDetail_20' ) start [2025-01-07 07:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193233', 'tblTempUsageDetail_20' ) end [2025-01-07 07:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193233', 'tblTempVendorCDR_20' ) start [2025-01-07 07:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193233', 'tblTempVendorCDR_20' ) end [2025-01-07 07:01:23] Production.INFO: ProcessCDR(1,14193233,1,1,2) [2025-01-07 07:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193233', 'tblTempUsageDetail_20' ) start [2025-01-07 07:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193233', 'tblTempUsageDetail_20' ) end [2025-01-07 07:01:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:01:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:01:26] Production.INFO: ==14198== Releasing lock... [2025-01-07 07:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:01:26] Production.INFO: 28 MB #Memory Used# [2025-01-07 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:02:05 [end_date_ymd] => 2025-01-07 07:02:05 [RateCDR] => 1 ) [2025-01-07 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:02:05' and `end` < '2025-01-07 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:02:19] Production.INFO: count ==72 [2025-01-07 07:02:19] Production.ERROR: pbx CDR StartTime 2025-01-07 04:02:05 - End Time 2025-01-07 07:02:05 [2025-01-07 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193238', 'tblTempUsageDetail_20' ) start [2025-01-07 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193238', 'tblTempUsageDetail_20' ) end [2025-01-07 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193238', 'tblTempVendorCDR_20' ) start [2025-01-07 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193238', 'tblTempVendorCDR_20' ) end [2025-01-07 07:02:19] Production.INFO: ProcessCDR(1,14193238,1,1,2) [2025-01-07 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193238', 'tblTempUsageDetail_20' ) start [2025-01-07 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193238', 'tblTempUsageDetail_20' ) end [2025-01-07 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:02:22] Production.INFO: ==14283== Releasing lock... [2025-01-07 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:02:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:03:05 [end_date_ymd] => 2025-01-07 07:03:05 [RateCDR] => 1 ) [2025-01-07 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:03:05' and `end` < '2025-01-07 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:03:20] Production.INFO: count ==72 [2025-01-07 07:03:20] Production.ERROR: pbx CDR StartTime 2025-01-07 04:03:05 - End Time 2025-01-07 07:03:05 [2025-01-07 07:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193243', 'tblTempUsageDetail_20' ) start [2025-01-07 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193243', 'tblTempUsageDetail_20' ) end [2025-01-07 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193243', 'tblTempVendorCDR_20' ) start [2025-01-07 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193243', 'tblTempVendorCDR_20' ) end [2025-01-07 07:03:20] Production.INFO: ProcessCDR(1,14193243,1,1,2) [2025-01-07 07:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193243', 'tblTempUsageDetail_20' ) start [2025-01-07 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193243', 'tblTempUsageDetail_20' ) end [2025-01-07 07:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:03:23] Production.INFO: ==14357== Releasing lock... [2025-01-07 07:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:03:23] Production.INFO: 28 MB #Memory Used# [2025-01-07 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:04:05 [end_date_ymd] => 2025-01-07 07:04:05 [RateCDR] => 1 ) [2025-01-07 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:04:05' and `end` < '2025-01-07 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:04:20] Production.INFO: count ==72 [2025-01-07 07:04:20] Production.ERROR: pbx CDR StartTime 2025-01-07 04:04:05 - End Time 2025-01-07 07:04:05 [2025-01-07 07:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193248', 'tblTempUsageDetail_20' ) start [2025-01-07 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193248', 'tblTempUsageDetail_20' ) end [2025-01-07 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193248', 'tblTempVendorCDR_20' ) start [2025-01-07 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193248', 'tblTempVendorCDR_20' ) end [2025-01-07 07:04:20] Production.INFO: ProcessCDR(1,14193248,1,1,2) [2025-01-07 07:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193248', 'tblTempUsageDetail_20' ) start [2025-01-07 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193248', 'tblTempUsageDetail_20' ) end [2025-01-07 07:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:04:23] Production.INFO: ==14431== Releasing lock... [2025-01-07 07:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:04:23] Production.INFO: 28 MB #Memory Used# [2025-01-07 07:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:05:06 [end_date_ymd] => 2025-01-07 07:05:06 [RateCDR] => 1 ) [2025-01-07 07:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:05:06' and `end` < '2025-01-07 07:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:05:20] Production.INFO: count ==72 [2025-01-07 07:05:20] Production.ERROR: pbx CDR StartTime 2025-01-07 04:05:06 - End Time 2025-01-07 07:05:06 [2025-01-07 07:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193253', 'tblTempUsageDetail_20' ) start [2025-01-07 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193253', 'tblTempUsageDetail_20' ) end [2025-01-07 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193253', 'tblTempVendorCDR_20' ) start [2025-01-07 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193253', 'tblTempVendorCDR_20' ) end [2025-01-07 07:05:20] Production.INFO: ProcessCDR(1,14193253,1,1,2) [2025-01-07 07:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193253', 'tblTempUsageDetail_20' ) start [2025-01-07 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193253', 'tblTempUsageDetail_20' ) end [2025-01-07 07:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:05:23] Production.INFO: ==14582== Releasing lock... [2025-01-07 07:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:05:23] Production.INFO: 28 MB #Memory Used# [2025-01-07 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:06:05 [end_date_ymd] => 2025-01-07 07:06:05 [RateCDR] => 1 ) [2025-01-07 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:06:05' and `end` < '2025-01-07 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:06:19] Production.INFO: count ==72 [2025-01-07 07:06:19] Production.ERROR: pbx CDR StartTime 2025-01-07 04:06:05 - End Time 2025-01-07 07:06:05 [2025-01-07 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193258', 'tblTempUsageDetail_20' ) start [2025-01-07 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193258', 'tblTempUsageDetail_20' ) end [2025-01-07 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193258', 'tblTempVendorCDR_20' ) start [2025-01-07 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193258', 'tblTempVendorCDR_20' ) end [2025-01-07 07:06:19] Production.INFO: ProcessCDR(1,14193258,1,1,2) [2025-01-07 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193258', 'tblTempUsageDetail_20' ) start [2025-01-07 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193258', 'tblTempUsageDetail_20' ) end [2025-01-07 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:06:22] Production.INFO: ==14655== Releasing lock... [2025-01-07 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:06:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 07:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:07:06 [end_date_ymd] => 2025-01-07 07:07:06 [RateCDR] => 1 ) [2025-01-07 07:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:07:06' and `end` < '2025-01-07 07:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:07:21] Production.INFO: count ==72 [2025-01-07 07:07:21] Production.ERROR: pbx CDR StartTime 2025-01-07 04:07:06 - End Time 2025-01-07 07:07:06 [2025-01-07 07:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193263', 'tblTempUsageDetail_20' ) start [2025-01-07 07:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193263', 'tblTempUsageDetail_20' ) end [2025-01-07 07:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193263', 'tblTempVendorCDR_20' ) start [2025-01-07 07:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193263', 'tblTempVendorCDR_20' ) end [2025-01-07 07:07:21] Production.INFO: ProcessCDR(1,14193263,1,1,2) [2025-01-07 07:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193263', 'tblTempUsageDetail_20' ) start [2025-01-07 07:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193263', 'tblTempUsageDetail_20' ) end [2025-01-07 07:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:07:24] Production.INFO: ==14736== Releasing lock... [2025-01-07 07:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:07:24] Production.INFO: 28 MB #Memory Used# [2025-01-07 07:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:08:04 [end_date_ymd] => 2025-01-07 07:08:04 [RateCDR] => 1 ) [2025-01-07 07:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:08:04' and `end` < '2025-01-07 07:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:08:18] Production.INFO: count ==72 [2025-01-07 07:08:18] Production.ERROR: pbx CDR StartTime 2025-01-07 04:08:04 - End Time 2025-01-07 07:08:04 [2025-01-07 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193268', 'tblTempUsageDetail_20' ) start [2025-01-07 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193268', 'tblTempUsageDetail_20' ) end [2025-01-07 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193268', 'tblTempVendorCDR_20' ) start [2025-01-07 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193268', 'tblTempVendorCDR_20' ) end [2025-01-07 07:08:18] Production.INFO: ProcessCDR(1,14193268,1,1,2) [2025-01-07 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193268', 'tblTempUsageDetail_20' ) start [2025-01-07 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193268', 'tblTempUsageDetail_20' ) end [2025-01-07 07:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:08:21] Production.INFO: ==14930== Releasing lock... [2025-01-07 07:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:08:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 07:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:09:06 [end_date_ymd] => 2025-01-07 07:09:06 [RateCDR] => 1 ) [2025-01-07 07:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:09:06' and `end` < '2025-01-07 07:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:09:21] Production.INFO: count ==72 [2025-01-07 07:09:21] Production.ERROR: pbx CDR StartTime 2025-01-07 04:09:06 - End Time 2025-01-07 07:09:06 [2025-01-07 07:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193273', 'tblTempUsageDetail_20' ) start [2025-01-07 07:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193273', 'tblTempUsageDetail_20' ) end [2025-01-07 07:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193273', 'tblTempVendorCDR_20' ) start [2025-01-07 07:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193273', 'tblTempVendorCDR_20' ) end [2025-01-07 07:09:21] Production.INFO: ProcessCDR(1,14193273,1,1,2) [2025-01-07 07:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193273', 'tblTempUsageDetail_20' ) start [2025-01-07 07:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193273', 'tblTempUsageDetail_20' ) end [2025-01-07 07:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:09:24] Production.INFO: ==15001== Releasing lock... [2025-01-07 07:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:09:24] Production.INFO: 28 MB #Memory Used# [2025-01-07 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:10:06 [end_date_ymd] => 2025-01-07 07:10:06 [RateCDR] => 1 ) [2025-01-07 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:10:06' and `end` < '2025-01-07 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:10:21] Production.INFO: count ==72 [2025-01-07 07:10:21] Production.ERROR: pbx CDR StartTime 2025-01-07 04:10:06 - End Time 2025-01-07 07:10:06 [2025-01-07 07:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193279', 'tblTempUsageDetail_20' ) start [2025-01-07 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193279', 'tblTempUsageDetail_20' ) end [2025-01-07 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193279', 'tblTempVendorCDR_20' ) start [2025-01-07 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193279', 'tblTempVendorCDR_20' ) end [2025-01-07 07:10:21] Production.INFO: ProcessCDR(1,14193279,1,1,2) [2025-01-07 07:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193279', 'tblTempUsageDetail_20' ) start [2025-01-07 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193279', 'tblTempUsageDetail_20' ) end [2025-01-07 07:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:10:24] Production.INFO: ==15077== Releasing lock... [2025-01-07 07:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:10:24] Production.INFO: 28 MB #Memory Used# [2025-01-07 07:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:11:04 [end_date_ymd] => 2025-01-07 07:11:04 [RateCDR] => 1 ) [2025-01-07 07:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:11:04' and `end` < '2025-01-07 07:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:11:20] Production.INFO: count ==72 [2025-01-07 07:11:20] Production.ERROR: pbx CDR StartTime 2025-01-07 04:11:04 - End Time 2025-01-07 07:11:04 [2025-01-07 07:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193284', 'tblTempUsageDetail_20' ) start [2025-01-07 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193284', 'tblTempUsageDetail_20' ) end [2025-01-07 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193284', 'tblTempVendorCDR_20' ) start [2025-01-07 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193284', 'tblTempVendorCDR_20' ) end [2025-01-07 07:11:20] Production.INFO: ProcessCDR(1,14193284,1,1,2) [2025-01-07 07:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193284', 'tblTempUsageDetail_20' ) start [2025-01-07 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193284', 'tblTempUsageDetail_20' ) end [2025-01-07 07:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:11:23] Production.INFO: ==15150== Releasing lock... [2025-01-07 07:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:11:23] Production.INFO: 28 MB #Memory Used# [2025-01-07 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:12:05 [end_date_ymd] => 2025-01-07 07:12:05 [RateCDR] => 1 ) [2025-01-07 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:12:05' and `end` < '2025-01-07 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:12:19] Production.INFO: count ==72 [2025-01-07 07:12:19] Production.ERROR: pbx CDR StartTime 2025-01-07 04:12:05 - End Time 2025-01-07 07:12:05 [2025-01-07 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193289', 'tblTempUsageDetail_20' ) start [2025-01-07 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193289', 'tblTempUsageDetail_20' ) end [2025-01-07 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193289', 'tblTempVendorCDR_20' ) start [2025-01-07 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193289', 'tblTempVendorCDR_20' ) end [2025-01-07 07:12:19] Production.INFO: ProcessCDR(1,14193289,1,1,2) [2025-01-07 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193289', 'tblTempUsageDetail_20' ) start [2025-01-07 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193289', 'tblTempUsageDetail_20' ) end [2025-01-07 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:12:22] Production.INFO: ==15299== Releasing lock... [2025-01-07 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:12:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:13:05 [end_date_ymd] => 2025-01-07 07:13:05 [RateCDR] => 1 ) [2025-01-07 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:13:05' and `end` < '2025-01-07 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:13:22] Production.INFO: count ==75 [2025-01-07 07:13:22] Production.ERROR: pbx CDR StartTime 2025-01-07 04:13:05 - End Time 2025-01-07 07:13:05 [2025-01-07 07:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193294', 'tblTempUsageDetail_20' ) start [2025-01-07 07:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193294', 'tblTempUsageDetail_20' ) end [2025-01-07 07:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193294', 'tblTempVendorCDR_20' ) start [2025-01-07 07:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193294', 'tblTempVendorCDR_20' ) end [2025-01-07 07:13:22] Production.INFO: ProcessCDR(1,14193294,1,1,2) [2025-01-07 07:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193294', 'tblTempUsageDetail_20' ) start [2025-01-07 07:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193294', 'tblTempUsageDetail_20' ) end [2025-01-07 07:13:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:13:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:13:26] Production.INFO: ==15376== Releasing lock... [2025-01-07 07:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:13:26] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:14:05 [end_date_ymd] => 2025-01-07 07:14:05 [RateCDR] => 1 ) [2025-01-07 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:14:05' and `end` < '2025-01-07 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:14:20] Production.INFO: count ==75 [2025-01-07 07:14:20] Production.ERROR: pbx CDR StartTime 2025-01-07 04:14:05 - End Time 2025-01-07 07:14:05 [2025-01-07 07:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193299', 'tblTempUsageDetail_20' ) start [2025-01-07 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193299', 'tblTempUsageDetail_20' ) end [2025-01-07 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193299', 'tblTempVendorCDR_20' ) start [2025-01-07 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193299', 'tblTempVendorCDR_20' ) end [2025-01-07 07:14:20] Production.INFO: ProcessCDR(1,14193299,1,1,2) [2025-01-07 07:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193299', 'tblTempUsageDetail_20' ) start [2025-01-07 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193299', 'tblTempUsageDetail_20' ) end [2025-01-07 07:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:14:23] Production.INFO: ==15457== Releasing lock... [2025-01-07 07:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:14:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:15:06 [end_date_ymd] => 2025-01-07 07:15:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 04:15:06' and `end` < '2025-01-07 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-01-07 07:15:21] Production.INFO: count ==75 [2025-01-07 07:15:21] Production.ERROR: pbx CDR StartTime 2025-01-07 04:15:06 - End Time 2025-01-07 07:15:06 [2025-01-07 07:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193304', 'tblTempUsageDetail_20' ) start [2025-01-07 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193304', 'tblTempUsageDetail_20' ) end [2025-01-07 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193304', 'tblTempVendorCDR_20' ) start [2025-01-07 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193304', 'tblTempVendorCDR_20' ) end [2025-01-07 07:15:21] Production.INFO: ProcessCDR(1,14193304,1,1,2) [2025-01-07 07:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193304', 'tblTempUsageDetail_20' ) start [2025-01-07 07:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193304', 'tblTempUsageDetail_20' ) end [2025-01-07 07:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:15:24] Production.INFO: ==15608== Releasing lock... [2025-01-07 07:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:15:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:16:05 [end_date_ymd] => 2025-01-07 07:16:05 [RateCDR] => 1 ) [2025-01-07 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:16:05' and `end` < '2025-01-07 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:16:21] Production.INFO: count ==75 [2025-01-07 07:16:21] Production.ERROR: pbx CDR StartTime 2025-01-07 04:16:05 - End Time 2025-01-07 07:16:05 [2025-01-07 07:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193309', 'tblTempUsageDetail_20' ) start [2025-01-07 07:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193309', 'tblTempUsageDetail_20' ) end [2025-01-07 07:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193309', 'tblTempVendorCDR_20' ) start [2025-01-07 07:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193309', 'tblTempVendorCDR_20' ) end [2025-01-07 07:16:21] Production.INFO: ProcessCDR(1,14193309,1,1,2) [2025-01-07 07:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193309', 'tblTempUsageDetail_20' ) start [2025-01-07 07:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193309', 'tblTempUsageDetail_20' ) end [2025-01-07 07:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:16:24] Production.INFO: ==15688== Releasing lock... [2025-01-07 07:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:16:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:17:05 [end_date_ymd] => 2025-01-07 07:17:05 [RateCDR] => 1 ) [2025-01-07 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:17:05' and `end` < '2025-01-07 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:17:20] Production.INFO: count ==75 [2025-01-07 07:17:20] Production.ERROR: pbx CDR StartTime 2025-01-07 04:17:05 - End Time 2025-01-07 07:17:05 [2025-01-07 07:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193314', 'tblTempUsageDetail_20' ) start [2025-01-07 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193314', 'tblTempUsageDetail_20' ) end [2025-01-07 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193314', 'tblTempVendorCDR_20' ) start [2025-01-07 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193314', 'tblTempVendorCDR_20' ) end [2025-01-07 07:17:20] Production.INFO: ProcessCDR(1,14193314,1,1,2) [2025-01-07 07:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193314', 'tblTempUsageDetail_20' ) start [2025-01-07 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193314', 'tblTempUsageDetail_20' ) end [2025-01-07 07:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:17:23] Production.INFO: ==15760== Releasing lock... [2025-01-07 07:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:17:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:18:05 [end_date_ymd] => 2025-01-07 07:18:05 [RateCDR] => 1 ) [2025-01-07 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:18:05' and `end` < '2025-01-07 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:18:19] Production.INFO: count ==75 [2025-01-07 07:18:19] Production.ERROR: pbx CDR StartTime 2025-01-07 04:18:05 - End Time 2025-01-07 07:18:05 [2025-01-07 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193319', 'tblTempUsageDetail_20' ) start [2025-01-07 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193319', 'tblTempUsageDetail_20' ) end [2025-01-07 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193319', 'tblTempVendorCDR_20' ) start [2025-01-07 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193319', 'tblTempVendorCDR_20' ) end [2025-01-07 07:18:19] Production.INFO: ProcessCDR(1,14193319,1,1,2) [2025-01-07 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193319', 'tblTempUsageDetail_20' ) start [2025-01-07 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193319', 'tblTempUsageDetail_20' ) end [2025-01-07 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:18:22] Production.INFO: ==15842== Releasing lock... [2025-01-07 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:18:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:19:05 [end_date_ymd] => 2025-01-07 07:19:05 [RateCDR] => 1 ) [2025-01-07 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:19:05' and `end` < '2025-01-07 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:19:19] Production.INFO: count ==75 [2025-01-07 07:19:19] Production.ERROR: pbx CDR StartTime 2025-01-07 04:19:05 - End Time 2025-01-07 07:19:05 [2025-01-07 07:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193324', 'tblTempUsageDetail_20' ) start [2025-01-07 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193324', 'tblTempUsageDetail_20' ) end [2025-01-07 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193324', 'tblTempVendorCDR_20' ) start [2025-01-07 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193324', 'tblTempVendorCDR_20' ) end [2025-01-07 07:19:19] Production.INFO: ProcessCDR(1,14193324,1,1,2) [2025-01-07 07:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193324', 'tblTempUsageDetail_20' ) start [2025-01-07 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193324', 'tblTempUsageDetail_20' ) end [2025-01-07 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:19:22] Production.INFO: ==15944== Releasing lock... [2025-01-07 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:19:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:20:06 [end_date_ymd] => 2025-01-07 07:20:06 [RateCDR] => 1 ) [2025-01-07 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:20:06' and `end` < '2025-01-07 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:20:19] Production.INFO: count ==77 [2025-01-07 07:20:19] Production.ERROR: pbx CDR StartTime 2025-01-07 04:20:06 - End Time 2025-01-07 07:20:06 [2025-01-07 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193330', 'tblTempUsageDetail_20' ) start [2025-01-07 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193330', 'tblTempUsageDetail_20' ) end [2025-01-07 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193330', 'tblTempVendorCDR_20' ) start [2025-01-07 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193330', 'tblTempVendorCDR_20' ) end [2025-01-07 07:20:19] Production.INFO: ProcessCDR(1,14193330,1,1,2) [2025-01-07 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193330', 'tblTempUsageDetail_20' ) start [2025-01-07 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193330', 'tblTempUsageDetail_20' ) end [2025-01-07 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:20:22] Production.INFO: ==16023== Releasing lock... [2025-01-07 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:20:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:21:05 [end_date_ymd] => 2025-01-07 07:21:05 [RateCDR] => 1 ) [2025-01-07 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:21:05' and `end` < '2025-01-07 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:21:22] Production.INFO: count ==77 [2025-01-07 07:21:22] Production.ERROR: pbx CDR StartTime 2025-01-07 04:21:05 - End Time 2025-01-07 07:21:05 [2025-01-07 07:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193335', 'tblTempUsageDetail_20' ) start [2025-01-07 07:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193335', 'tblTempUsageDetail_20' ) end [2025-01-07 07:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193335', 'tblTempVendorCDR_20' ) start [2025-01-07 07:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193335', 'tblTempVendorCDR_20' ) end [2025-01-07 07:21:22] Production.INFO: ProcessCDR(1,14193335,1,1,2) [2025-01-07 07:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193335', 'tblTempUsageDetail_20' ) start [2025-01-07 07:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193335', 'tblTempUsageDetail_20' ) end [2025-01-07 07:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:21:25] Production.INFO: ==16098== Releasing lock... [2025-01-07 07:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:21:25] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:22:05 [end_date_ymd] => 2025-01-07 07:22:05 [RateCDR] => 1 ) [2025-01-07 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:22:05' and `end` < '2025-01-07 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:22:18] Production.INFO: count ==77 [2025-01-07 07:22:18] Production.ERROR: pbx CDR StartTime 2025-01-07 04:22:05 - End Time 2025-01-07 07:22:05 [2025-01-07 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193340', 'tblTempUsageDetail_20' ) start [2025-01-07 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193340', 'tblTempUsageDetail_20' ) end [2025-01-07 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193340', 'tblTempVendorCDR_20' ) start [2025-01-07 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193340', 'tblTempVendorCDR_20' ) end [2025-01-07 07:22:18] Production.INFO: ProcessCDR(1,14193340,1,1,2) [2025-01-07 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193340', 'tblTempUsageDetail_20' ) start [2025-01-07 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193340', 'tblTempUsageDetail_20' ) end [2025-01-07 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:22:22] Production.INFO: ==16176== Releasing lock... [2025-01-07 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:22:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:23:05 [end_date_ymd] => 2025-01-07 07:23:05 [RateCDR] => 1 ) [2025-01-07 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:23:05' and `end` < '2025-01-07 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:23:19] Production.INFO: count ==77 [2025-01-07 07:23:19] Production.ERROR: pbx CDR StartTime 2025-01-07 04:23:05 - End Time 2025-01-07 07:23:05 [2025-01-07 07:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193345', 'tblTempUsageDetail_20' ) start [2025-01-07 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193345', 'tblTempUsageDetail_20' ) end [2025-01-07 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193345', 'tblTempVendorCDR_20' ) start [2025-01-07 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193345', 'tblTempVendorCDR_20' ) end [2025-01-07 07:23:19] Production.INFO: ProcessCDR(1,14193345,1,1,2) [2025-01-07 07:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193345', 'tblTempUsageDetail_20' ) start [2025-01-07 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193345', 'tblTempUsageDetail_20' ) end [2025-01-07 07:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:23:22] Production.INFO: ==16276== Releasing lock... [2025-01-07 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:23:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:24:05 [end_date_ymd] => 2025-01-07 07:24:05 [RateCDR] => 1 ) [2025-01-07 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:24:05' and `end` < '2025-01-07 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:24:19] Production.INFO: count ==77 [2025-01-07 07:24:19] Production.ERROR: pbx CDR StartTime 2025-01-07 04:24:05 - End Time 2025-01-07 07:24:05 [2025-01-07 07:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193350', 'tblTempUsageDetail_20' ) start [2025-01-07 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193350', 'tblTempUsageDetail_20' ) end [2025-01-07 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193350', 'tblTempVendorCDR_20' ) start [2025-01-07 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193350', 'tblTempVendorCDR_20' ) end [2025-01-07 07:24:19] Production.INFO: ProcessCDR(1,14193350,1,1,2) [2025-01-07 07:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193350', 'tblTempUsageDetail_20' ) start [2025-01-07 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193350', 'tblTempUsageDetail_20' ) end [2025-01-07 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:24:22] Production.INFO: ==16409== Releasing lock... [2025-01-07 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:24:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:25:05 [end_date_ymd] => 2025-01-07 07:25:05 [RateCDR] => 1 ) [2025-01-07 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:25:05' and `end` < '2025-01-07 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:25:19] Production.INFO: count ==77 [2025-01-07 07:25:19] Production.ERROR: pbx CDR StartTime 2025-01-07 04:25:05 - End Time 2025-01-07 07:25:05 [2025-01-07 07:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193355', 'tblTempUsageDetail_20' ) start [2025-01-07 07:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193355', 'tblTempUsageDetail_20' ) end [2025-01-07 07:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193355', 'tblTempVendorCDR_20' ) start [2025-01-07 07:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193355', 'tblTempVendorCDR_20' ) end [2025-01-07 07:25:19] Production.INFO: ProcessCDR(1,14193355,1,1,2) [2025-01-07 07:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193355', 'tblTempUsageDetail_20' ) start [2025-01-07 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193355', 'tblTempUsageDetail_20' ) end [2025-01-07 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:25:22] Production.INFO: ==16510== Releasing lock... [2025-01-07 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:25:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:26:05 [end_date_ymd] => 2025-01-07 07:26:05 [RateCDR] => 1 ) [2025-01-07 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:26:05' and `end` < '2025-01-07 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:26:19] Production.INFO: count ==77 [2025-01-07 07:26:19] Production.ERROR: pbx CDR StartTime 2025-01-07 04:26:05 - End Time 2025-01-07 07:26:05 [2025-01-07 07:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193360', 'tblTempUsageDetail_20' ) start [2025-01-07 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193360', 'tblTempUsageDetail_20' ) end [2025-01-07 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193360', 'tblTempVendorCDR_20' ) start [2025-01-07 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193360', 'tblTempVendorCDR_20' ) end [2025-01-07 07:26:19] Production.INFO: ProcessCDR(1,14193360,1,1,2) [2025-01-07 07:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193360', 'tblTempUsageDetail_20' ) start [2025-01-07 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193360', 'tblTempUsageDetail_20' ) end [2025-01-07 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:26:22] Production.INFO: ==16613== Releasing lock... [2025-01-07 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:26:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:27:04 [end_date_ymd] => 2025-01-07 07:27:04 [RateCDR] => 1 ) [2025-01-07 07:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:27:04' and `end` < '2025-01-07 07:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:27:17] Production.INFO: count ==77 [2025-01-07 07:27:17] Production.ERROR: pbx CDR StartTime 2025-01-07 04:27:04 - End Time 2025-01-07 07:27:04 [2025-01-07 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193365', 'tblTempUsageDetail_20' ) start [2025-01-07 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193365', 'tblTempUsageDetail_20' ) end [2025-01-07 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193365', 'tblTempVendorCDR_20' ) start [2025-01-07 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193365', 'tblTempVendorCDR_20' ) end [2025-01-07 07:27:17] Production.INFO: ProcessCDR(1,14193365,1,1,2) [2025-01-07 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193365', 'tblTempUsageDetail_20' ) start [2025-01-07 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193365', 'tblTempUsageDetail_20' ) end [2025-01-07 07:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:27:20] Production.INFO: ==16711== Releasing lock... [2025-01-07 07:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:27:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:28:06 [end_date_ymd] => 2025-01-07 07:28:06 [RateCDR] => 1 ) [2025-01-07 07:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:28:06' and `end` < '2025-01-07 07:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:28:19] Production.INFO: count ==77 [2025-01-07 07:28:19] Production.ERROR: pbx CDR StartTime 2025-01-07 04:28:06 - End Time 2025-01-07 07:28:06 [2025-01-07 07:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193370', 'tblTempUsageDetail_20' ) start [2025-01-07 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193370', 'tblTempUsageDetail_20' ) end [2025-01-07 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193370', 'tblTempVendorCDR_20' ) start [2025-01-07 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193370', 'tblTempVendorCDR_20' ) end [2025-01-07 07:28:19] Production.INFO: ProcessCDR(1,14193370,1,1,2) [2025-01-07 07:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193370', 'tblTempUsageDetail_20' ) start [2025-01-07 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193370', 'tblTempUsageDetail_20' ) end [2025-01-07 07:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:28:23] Production.INFO: ==16815== Releasing lock... [2025-01-07 07:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:28:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:29:05 [end_date_ymd] => 2025-01-07 07:29:05 [RateCDR] => 1 ) [2025-01-07 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:29:05' and `end` < '2025-01-07 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:29:18] Production.INFO: count ==77 [2025-01-07 07:29:18] Production.ERROR: pbx CDR StartTime 2025-01-07 04:29:05 - End Time 2025-01-07 07:29:05 [2025-01-07 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193375', 'tblTempUsageDetail_20' ) start [2025-01-07 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193375', 'tblTempUsageDetail_20' ) end [2025-01-07 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193375', 'tblTempVendorCDR_20' ) start [2025-01-07 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193375', 'tblTempVendorCDR_20' ) end [2025-01-07 07:29:18] Production.INFO: ProcessCDR(1,14193375,1,1,2) [2025-01-07 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193375', 'tblTempUsageDetail_20' ) start [2025-01-07 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193375', 'tblTempUsageDetail_20' ) end [2025-01-07 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:29:21] Production.INFO: ==16915== Releasing lock... [2025-01-07 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:30:06 [end_date_ymd] => 2025-01-07 07:30:06 [RateCDR] => 1 ) [2025-01-07 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:30:06' and `end` < '2025-01-07 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:30:19] Production.INFO: count ==71 [2025-01-07 07:30:19] Production.ERROR: pbx CDR StartTime 2025-01-07 04:30:06 - End Time 2025-01-07 07:30:06 [2025-01-07 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193381', 'tblTempUsageDetail_20' ) start [2025-01-07 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193381', 'tblTempUsageDetail_20' ) end [2025-01-07 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193381', 'tblTempVendorCDR_20' ) start [2025-01-07 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193381', 'tblTempVendorCDR_20' ) end [2025-01-07 07:30:19] Production.INFO: ProcessCDR(1,14193381,1,1,2) [2025-01-07 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193381', 'tblTempUsageDetail_20' ) start [2025-01-07 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193381', 'tblTempUsageDetail_20' ) end [2025-01-07 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:30:22] Production.INFO: ==17017== Releasing lock... [2025-01-07 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:31:05 [end_date_ymd] => 2025-01-07 07:31:05 [RateCDR] => 1 ) [2025-01-07 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:31:05' and `end` < '2025-01-07 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:31:18] Production.INFO: count ==64 [2025-01-07 07:31:18] Production.ERROR: pbx CDR StartTime 2025-01-07 04:31:05 - End Time 2025-01-07 07:31:05 [2025-01-07 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193386', 'tblTempUsageDetail_20' ) start [2025-01-07 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193386', 'tblTempUsageDetail_20' ) end [2025-01-07 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193386', 'tblTempVendorCDR_20' ) start [2025-01-07 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193386', 'tblTempVendorCDR_20' ) end [2025-01-07 07:31:18] Production.INFO: ProcessCDR(1,14193386,1,1,2) [2025-01-07 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193386', 'tblTempUsageDetail_20' ) start [2025-01-07 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193386', 'tblTempUsageDetail_20' ) end [2025-01-07 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:31:22] Production.INFO: ==17117== Releasing lock... [2025-01-07 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:31:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:32:05 [end_date_ymd] => 2025-01-07 07:32:05 [RateCDR] => 1 ) [2025-01-07 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:32:05' and `end` < '2025-01-07 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:32:18] Production.INFO: count ==64 [2025-01-07 07:32:18] Production.ERROR: pbx CDR StartTime 2025-01-07 04:32:05 - End Time 2025-01-07 07:32:05 [2025-01-07 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193391', 'tblTempUsageDetail_20' ) start [2025-01-07 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193391', 'tblTempUsageDetail_20' ) end [2025-01-07 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193391', 'tblTempVendorCDR_20' ) start [2025-01-07 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193391', 'tblTempVendorCDR_20' ) end [2025-01-07 07:32:18] Production.INFO: ProcessCDR(1,14193391,1,1,2) [2025-01-07 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193391', 'tblTempUsageDetail_20' ) start [2025-01-07 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193391', 'tblTempUsageDetail_20' ) end [2025-01-07 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:32:21] Production.INFO: ==17221== Releasing lock... [2025-01-07 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:32:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:33:06 [end_date_ymd] => 2025-01-07 07:33:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 04:33:06' and `end` < '2025-01-07 07:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:33:19] Production.INFO: count ==64 [2025-01-07 07:33:19] Production.ERROR: pbx CDR StartTime 2025-01-07 04:33:06 - End Time 2025-01-07 07:33:06 [2025-01-07 07:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193396', 'tblTempUsageDetail_20' ) start [2025-01-07 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193396', 'tblTempUsageDetail_20' ) end [2025-01-07 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193396', 'tblTempVendorCDR_20' ) start [2025-01-07 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193396', 'tblTempVendorCDR_20' ) end [2025-01-07 07:33:19] Production.INFO: ProcessCDR(1,14193396,1,1,2) [2025-01-07 07:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193396', 'tblTempUsageDetail_20' ) start [2025-01-07 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193396', 'tblTempUsageDetail_20' ) end [2025-01-07 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:33:22] Production.INFO: ==17341== Releasing lock... [2025-01-07 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:33:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:34:05 [end_date_ymd] => 2025-01-07 07:34:05 [RateCDR] => 1 ) [2025-01-07 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:34:05' and `end` < '2025-01-07 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:34:18] Production.INFO: count ==64 [2025-01-07 07:34:18] Production.ERROR: pbx CDR StartTime 2025-01-07 04:34:05 - End Time 2025-01-07 07:34:05 [2025-01-07 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193401', 'tblTempUsageDetail_20' ) start [2025-01-07 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193401', 'tblTempUsageDetail_20' ) end [2025-01-07 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193401', 'tblTempVendorCDR_20' ) start [2025-01-07 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193401', 'tblTempVendorCDR_20' ) end [2025-01-07 07:34:18] Production.INFO: ProcessCDR(1,14193401,1,1,2) [2025-01-07 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193401', 'tblTempUsageDetail_20' ) start [2025-01-07 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193401', 'tblTempUsageDetail_20' ) end [2025-01-07 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:34:21] Production.INFO: ==17443== Releasing lock... [2025-01-07 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:34:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:35:05 [end_date_ymd] => 2025-01-07 07:35:05 [RateCDR] => 1 ) [2025-01-07 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:35:05' and `end` < '2025-01-07 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:35:18] Production.INFO: count ==64 [2025-01-07 07:35:18] Production.ERROR: pbx CDR StartTime 2025-01-07 04:35:05 - End Time 2025-01-07 07:35:05 [2025-01-07 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193406', 'tblTempUsageDetail_20' ) start [2025-01-07 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193406', 'tblTempUsageDetail_20' ) end [2025-01-07 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193406', 'tblTempVendorCDR_20' ) start [2025-01-07 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193406', 'tblTempVendorCDR_20' ) end [2025-01-07 07:35:18] Production.INFO: ProcessCDR(1,14193406,1,1,2) [2025-01-07 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193406', 'tblTempUsageDetail_20' ) start [2025-01-07 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193406', 'tblTempUsageDetail_20' ) end [2025-01-07 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:35:21] Production.INFO: ==17538== Releasing lock... [2025-01-07 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:35:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:36:05 [end_date_ymd] => 2025-01-07 07:36:05 [RateCDR] => 1 ) [2025-01-07 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:36:05' and `end` < '2025-01-07 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:36:18] Production.INFO: count ==64 [2025-01-07 07:36:18] Production.ERROR: pbx CDR StartTime 2025-01-07 04:36:05 - End Time 2025-01-07 07:36:05 [2025-01-07 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193411', 'tblTempUsageDetail_20' ) start [2025-01-07 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193411', 'tblTempUsageDetail_20' ) end [2025-01-07 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193411', 'tblTempVendorCDR_20' ) start [2025-01-07 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193411', 'tblTempVendorCDR_20' ) end [2025-01-07 07:36:18] Production.INFO: ProcessCDR(1,14193411,1,1,2) [2025-01-07 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193411', 'tblTempUsageDetail_20' ) start [2025-01-07 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193411', 'tblTempUsageDetail_20' ) end [2025-01-07 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:36:21] Production.INFO: ==17638== Releasing lock... [2025-01-07 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:36:21] Production.INFO: 28 MB #Memory Used# [2025-01-07 07:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:37:06 [end_date_ymd] => 2025-01-07 07:37:06 [RateCDR] => 1 ) [2025-01-07 07:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:37:06' and `end` < '2025-01-07 07:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:37:19] Production.INFO: count ==64 [2025-01-07 07:37:19] Production.ERROR: pbx CDR StartTime 2025-01-07 04:37:06 - End Time 2025-01-07 07:37:06 [2025-01-07 07:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193416', 'tblTempUsageDetail_20' ) start [2025-01-07 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193416', 'tblTempUsageDetail_20' ) end [2025-01-07 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193416', 'tblTempVendorCDR_20' ) start [2025-01-07 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193416', 'tblTempVendorCDR_20' ) end [2025-01-07 07:37:19] Production.INFO: ProcessCDR(1,14193416,1,1,2) [2025-01-07 07:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193416', 'tblTempUsageDetail_20' ) start [2025-01-07 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193416', 'tblTempUsageDetail_20' ) end [2025-01-07 07:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:37:22] Production.INFO: ==17736== Releasing lock... [2025-01-07 07:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:37:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:38:05 [end_date_ymd] => 2025-01-07 07:38:05 [RateCDR] => 1 ) [2025-01-07 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:38:05' and `end` < '2025-01-07 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:38:20] Production.INFO: count ==64 [2025-01-07 07:38:20] Production.ERROR: pbx CDR StartTime 2025-01-07 04:38:05 - End Time 2025-01-07 07:38:05 [2025-01-07 07:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193421', 'tblTempUsageDetail_20' ) start [2025-01-07 07:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193421', 'tblTempUsageDetail_20' ) end [2025-01-07 07:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193421', 'tblTempVendorCDR_20' ) start [2025-01-07 07:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193421', 'tblTempVendorCDR_20' ) end [2025-01-07 07:38:20] Production.INFO: ProcessCDR(1,14193421,1,1,2) [2025-01-07 07:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193421', 'tblTempUsageDetail_20' ) start [2025-01-07 07:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193421', 'tblTempUsageDetail_20' ) end [2025-01-07 07:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:38:23] Production.INFO: ==17828== Releasing lock... [2025-01-07 07:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:38:23] Production.INFO: 28 MB #Memory Used# [2025-01-07 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:39:05 [end_date_ymd] => 2025-01-07 07:39:05 [RateCDR] => 1 ) [2025-01-07 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:39:05' and `end` < '2025-01-07 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:39:18] Production.INFO: count ==65 [2025-01-07 07:39:18] Production.ERROR: pbx CDR StartTime 2025-01-07 04:39:05 - End Time 2025-01-07 07:39:05 [2025-01-07 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193426', 'tblTempUsageDetail_20' ) start [2025-01-07 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193426', 'tblTempUsageDetail_20' ) end [2025-01-07 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193426', 'tblTempVendorCDR_20' ) start [2025-01-07 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193426', 'tblTempVendorCDR_20' ) end [2025-01-07 07:39:18] Production.INFO: ProcessCDR(1,14193426,1,1,2) [2025-01-07 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193426', 'tblTempUsageDetail_20' ) start [2025-01-07 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193426', 'tblTempUsageDetail_20' ) end [2025-01-07 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:39:22] Production.INFO: ==17920== Releasing lock... [2025-01-07 07:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:39:22] Production.INFO: 28 MB #Memory Used# [2025-01-07 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:40:05 [end_date_ymd] => 2025-01-07 07:40:05 [RateCDR] => 1 ) [2025-01-07 07:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:40:05' and `end` < '2025-01-07 07:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:40:18] Production.INFO: count ==74 [2025-01-07 07:40:18] Production.ERROR: pbx CDR StartTime 2025-01-07 04:40:05 - End Time 2025-01-07 07:40:05 [2025-01-07 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193432', 'tblTempUsageDetail_20' ) start [2025-01-07 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193432', 'tblTempUsageDetail_20' ) end [2025-01-07 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193432', 'tblTempVendorCDR_20' ) start [2025-01-07 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193432', 'tblTempVendorCDR_20' ) end [2025-01-07 07:40:18] Production.INFO: ProcessCDR(1,14193432,1,1,2) [2025-01-07 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193432', 'tblTempUsageDetail_20' ) start [2025-01-07 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193432', 'tblTempUsageDetail_20' ) end [2025-01-07 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:40:21] Production.INFO: ==18053== Releasing lock... [2025-01-07 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:40:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:41:06 [end_date_ymd] => 2025-01-07 07:41:06 [RateCDR] => 1 ) [2025-01-07 07:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:41:06' and `end` < '2025-01-07 07:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:41:18] Production.INFO: count ==78 [2025-01-07 07:41:18] Production.ERROR: pbx CDR StartTime 2025-01-07 04:41:06 - End Time 2025-01-07 07:41:06 [2025-01-07 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193437', 'tblTempUsageDetail_20' ) start [2025-01-07 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193437', 'tblTempUsageDetail_20' ) end [2025-01-07 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193437', 'tblTempVendorCDR_20' ) start [2025-01-07 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193437', 'tblTempVendorCDR_20' ) end [2025-01-07 07:41:18] Production.INFO: ProcessCDR(1,14193437,1,1,2) [2025-01-07 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193437', 'tblTempUsageDetail_20' ) start [2025-01-07 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193437', 'tblTempUsageDetail_20' ) end [2025-01-07 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:41:21] Production.INFO: ==18149== Releasing lock... [2025-01-07 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:42:04 [end_date_ymd] => 2025-01-07 07:42:04 [RateCDR] => 1 ) [2025-01-07 07:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:42:04' and `end` < '2025-01-07 07:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:42:17] Production.INFO: count ==78 [2025-01-07 07:42:17] Production.ERROR: pbx CDR StartTime 2025-01-07 04:42:04 - End Time 2025-01-07 07:42:04 [2025-01-07 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193442', 'tblTempUsageDetail_20' ) start [2025-01-07 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193442', 'tblTempUsageDetail_20' ) end [2025-01-07 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193442', 'tblTempVendorCDR_20' ) start [2025-01-07 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193442', 'tblTempVendorCDR_20' ) end [2025-01-07 07:42:17] Production.INFO: ProcessCDR(1,14193442,1,1,2) [2025-01-07 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193442', 'tblTempUsageDetail_20' ) start [2025-01-07 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193442', 'tblTempUsageDetail_20' ) end [2025-01-07 07:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:42:20] Production.INFO: ==18245== Releasing lock... [2025-01-07 07:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:42:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:43:05 [end_date_ymd] => 2025-01-07 07:43:05 [RateCDR] => 1 ) [2025-01-07 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:43:05' and `end` < '2025-01-07 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:43:18] Production.INFO: count ==80 [2025-01-07 07:43:18] Production.ERROR: pbx CDR StartTime 2025-01-07 04:43:05 - End Time 2025-01-07 07:43:05 [2025-01-07 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193447', 'tblTempUsageDetail_20' ) start [2025-01-07 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193447', 'tblTempUsageDetail_20' ) end [2025-01-07 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193447', 'tblTempVendorCDR_20' ) start [2025-01-07 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193447', 'tblTempVendorCDR_20' ) end [2025-01-07 07:43:18] Production.INFO: ProcessCDR(1,14193447,1,1,2) [2025-01-07 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193447', 'tblTempUsageDetail_20' ) start [2025-01-07 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193447', 'tblTempUsageDetail_20' ) end [2025-01-07 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:43:21] Production.INFO: ==18329== Releasing lock... [2025-01-07 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:44:05 [end_date_ymd] => 2025-01-07 07:44:05 [RateCDR] => 1 ) [2025-01-07 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:44:05' and `end` < '2025-01-07 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:44:18] Production.INFO: count ==83 [2025-01-07 07:44:18] Production.ERROR: pbx CDR StartTime 2025-01-07 04:44:05 - End Time 2025-01-07 07:44:05 [2025-01-07 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193452', 'tblTempUsageDetail_20' ) start [2025-01-07 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193452', 'tblTempUsageDetail_20' ) end [2025-01-07 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193452', 'tblTempVendorCDR_20' ) start [2025-01-07 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193452', 'tblTempVendorCDR_20' ) end [2025-01-07 07:44:18] Production.INFO: ProcessCDR(1,14193452,1,1,2) [2025-01-07 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193452', 'tblTempUsageDetail_20' ) start [2025-01-07 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193452', 'tblTempUsageDetail_20' ) end [2025-01-07 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:44:21] Production.INFO: ==18416== Releasing lock... [2025-01-07 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:44:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:45:05 [end_date_ymd] => 2025-01-07 07:45:05 [RateCDR] => 1 ) [2025-01-07 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:45:05' and `end` < '2025-01-07 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:45:18] Production.INFO: count ==83 [2025-01-07 07:45:18] Production.ERROR: pbx CDR StartTime 2025-01-07 04:45:05 - End Time 2025-01-07 07:45:05 [2025-01-07 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193457', 'tblTempUsageDetail_20' ) start [2025-01-07 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193457', 'tblTempUsageDetail_20' ) end [2025-01-07 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193457', 'tblTempVendorCDR_20' ) start [2025-01-07 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193457', 'tblTempVendorCDR_20' ) end [2025-01-07 07:45:18] Production.INFO: ProcessCDR(1,14193457,1,1,2) [2025-01-07 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193457', 'tblTempUsageDetail_20' ) start [2025-01-07 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193457', 'tblTempUsageDetail_20' ) end [2025-01-07 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:45:21] Production.INFO: ==18497== Releasing lock... [2025-01-07 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:46:05 [end_date_ymd] => 2025-01-07 07:46:05 [RateCDR] => 1 ) [2025-01-07 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:46:05' and `end` < '2025-01-07 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:46:17] Production.INFO: count ==86 [2025-01-07 07:46:17] Production.ERROR: pbx CDR StartTime 2025-01-07 04:46:05 - End Time 2025-01-07 07:46:05 [2025-01-07 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193462', 'tblTempUsageDetail_20' ) start [2025-01-07 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193462', 'tblTempUsageDetail_20' ) end [2025-01-07 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193462', 'tblTempVendorCDR_20' ) start [2025-01-07 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193462', 'tblTempVendorCDR_20' ) end [2025-01-07 07:46:17] Production.INFO: ProcessCDR(1,14193462,1,1,2) [2025-01-07 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193462', 'tblTempUsageDetail_20' ) start [2025-01-07 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193462', 'tblTempUsageDetail_20' ) end [2025-01-07 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:46:21] Production.INFO: ==18578== Releasing lock... [2025-01-07 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:46:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:47:05 [end_date_ymd] => 2025-01-07 07:47:05 [RateCDR] => 1 ) [2025-01-07 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:47:05' and `end` < '2025-01-07 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:47:19] Production.INFO: count ==95 [2025-01-07 07:47:19] Production.ERROR: pbx CDR StartTime 2025-01-07 04:47:05 - End Time 2025-01-07 07:47:05 [2025-01-07 07:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193467', 'tblTempUsageDetail_20' ) start [2025-01-07 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193467', 'tblTempUsageDetail_20' ) end [2025-01-07 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193467', 'tblTempVendorCDR_20' ) start [2025-01-07 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193467', 'tblTempVendorCDR_20' ) end [2025-01-07 07:47:19] Production.INFO: ProcessCDR(1,14193467,1,1,2) [2025-01-07 07:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193467', 'tblTempUsageDetail_20' ) start [2025-01-07 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193467', 'tblTempUsageDetail_20' ) end [2025-01-07 07:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:47:22] Production.INFO: ==18652== Releasing lock... [2025-01-07 07:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:47:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:48:05 [end_date_ymd] => 2025-01-07 07:48:05 [RateCDR] => 1 ) [2025-01-07 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:48:05' and `end` < '2025-01-07 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:48:18] Production.INFO: count ==95 [2025-01-07 07:48:18] Production.ERROR: pbx CDR StartTime 2025-01-07 04:48:05 - End Time 2025-01-07 07:48:05 [2025-01-07 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193472', 'tblTempUsageDetail_20' ) start [2025-01-07 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193472', 'tblTempUsageDetail_20' ) end [2025-01-07 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193472', 'tblTempVendorCDR_20' ) start [2025-01-07 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193472', 'tblTempVendorCDR_20' ) end [2025-01-07 07:48:18] Production.INFO: ProcessCDR(1,14193472,1,1,2) [2025-01-07 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193472', 'tblTempUsageDetail_20' ) start [2025-01-07 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193472', 'tblTempUsageDetail_20' ) end [2025-01-07 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:48:21] Production.INFO: ==18731== Releasing lock... [2025-01-07 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:48:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:49:05 [end_date_ymd] => 2025-01-07 07:49:05 [RateCDR] => 1 ) [2025-01-07 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:49:05' and `end` < '2025-01-07 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:49:17] Production.INFO: count ==95 [2025-01-07 07:49:17] Production.ERROR: pbx CDR StartTime 2025-01-07 04:49:05 - End Time 2025-01-07 07:49:05 [2025-01-07 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193477', 'tblTempUsageDetail_20' ) start [2025-01-07 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193477', 'tblTempUsageDetail_20' ) end [2025-01-07 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193477', 'tblTempVendorCDR_20' ) start [2025-01-07 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193477', 'tblTempVendorCDR_20' ) end [2025-01-07 07:49:17] Production.INFO: ProcessCDR(1,14193477,1,1,2) [2025-01-07 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193477', 'tblTempUsageDetail_20' ) start [2025-01-07 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193477', 'tblTempUsageDetail_20' ) end [2025-01-07 07:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:49:20] Production.INFO: ==18807== Releasing lock... [2025-01-07 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:49:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:50:06 [end_date_ymd] => 2025-01-07 07:50:06 [RateCDR] => 1 ) [2025-01-07 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:50:06' and `end` < '2025-01-07 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:50:19] Production.INFO: count ==99 [2025-01-07 07:50:19] Production.ERROR: pbx CDR StartTime 2025-01-07 04:50:06 - End Time 2025-01-07 07:50:06 [2025-01-07 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193483', 'tblTempUsageDetail_20' ) start [2025-01-07 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193483', 'tblTempUsageDetail_20' ) end [2025-01-07 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193483', 'tblTempVendorCDR_20' ) start [2025-01-07 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193483', 'tblTempVendorCDR_20' ) end [2025-01-07 07:50:19] Production.INFO: ProcessCDR(1,14193483,1,1,2) [2025-01-07 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193483', 'tblTempUsageDetail_20' ) start [2025-01-07 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193483', 'tblTempUsageDetail_20' ) end [2025-01-07 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:50:22] Production.INFO: ==18890== Releasing lock... [2025-01-07 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:50:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:51:04 [end_date_ymd] => 2025-01-07 07:51:04 [RateCDR] => 1 ) [2025-01-07 07:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:51:04' and `end` < '2025-01-07 07:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:51:17] Production.INFO: count ==99 [2025-01-07 07:51:17] Production.ERROR: pbx CDR StartTime 2025-01-07 04:51:04 - End Time 2025-01-07 07:51:04 [2025-01-07 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193488', 'tblTempUsageDetail_20' ) start [2025-01-07 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193488', 'tblTempUsageDetail_20' ) end [2025-01-07 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193488', 'tblTempVendorCDR_20' ) start [2025-01-07 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193488', 'tblTempVendorCDR_20' ) end [2025-01-07 07:51:17] Production.INFO: ProcessCDR(1,14193488,1,1,2) [2025-01-07 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193488', 'tblTempUsageDetail_20' ) start [2025-01-07 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193488', 'tblTempUsageDetail_20' ) end [2025-01-07 07:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:51:20] Production.INFO: ==18965== Releasing lock... [2025-01-07 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:51:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:52:05 [end_date_ymd] => 2025-01-07 07:52:05 [RateCDR] => 1 ) [2025-01-07 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:52:05' and `end` < '2025-01-07 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:52:18] Production.INFO: count ==100 [2025-01-07 07:52:18] Production.ERROR: pbx CDR StartTime 2025-01-07 04:52:05 - End Time 2025-01-07 07:52:05 [2025-01-07 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193493', 'tblTempUsageDetail_20' ) start [2025-01-07 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193493', 'tblTempUsageDetail_20' ) end [2025-01-07 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193493', 'tblTempVendorCDR_20' ) start [2025-01-07 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193493', 'tblTempVendorCDR_20' ) end [2025-01-07 07:52:18] Production.INFO: ProcessCDR(1,14193493,1,1,2) [2025-01-07 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193493', 'tblTempUsageDetail_20' ) start [2025-01-07 07:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193493', 'tblTempUsageDetail_20' ) end [2025-01-07 07:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:52:23] Production.INFO: ==19037== Releasing lock... [2025-01-07 07:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:52:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-07 07:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:53:04 [end_date_ymd] => 2025-01-07 07:53:04 [RateCDR] => 1 ) [2025-01-07 07:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:53:04' and `end` < '2025-01-07 07:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:53:18] Production.INFO: count ==101 [2025-01-07 07:53:18] Production.ERROR: pbx CDR StartTime 2025-01-07 04:53:04 - End Time 2025-01-07 07:53:04 [2025-01-07 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193498', 'tblTempUsageDetail_20' ) start [2025-01-07 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193498', 'tblTempUsageDetail_20' ) end [2025-01-07 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193498', 'tblTempVendorCDR_20' ) start [2025-01-07 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193498', 'tblTempVendorCDR_20' ) end [2025-01-07 07:53:18] Production.INFO: ProcessCDR(1,14193498,1,1,2) [2025-01-07 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193498', 'tblTempUsageDetail_20' ) start [2025-01-07 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193498', 'tblTempUsageDetail_20' ) end [2025-01-07 07:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:53:22] Production.INFO: ==19108== Releasing lock... [2025-01-07 07:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:53:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 07:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:54:06 [end_date_ymd] => 2025-01-07 07:54:06 [RateCDR] => 1 ) [2025-01-07 07:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:54:06' and `end` < '2025-01-07 07:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:54:18] Production.INFO: count ==105 [2025-01-07 07:54:18] Production.ERROR: pbx CDR StartTime 2025-01-07 04:54:06 - End Time 2025-01-07 07:54:06 [2025-01-07 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193503', 'tblTempUsageDetail_20' ) start [2025-01-07 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193503', 'tblTempUsageDetail_20' ) end [2025-01-07 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193503', 'tblTempVendorCDR_20' ) start [2025-01-07 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193503', 'tblTempVendorCDR_20' ) end [2025-01-07 07:54:18] Production.INFO: ProcessCDR(1,14193503,1,1,2) [2025-01-07 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193503', 'tblTempUsageDetail_20' ) start [2025-01-07 07:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193503', 'tblTempUsageDetail_20' ) end [2025-01-07 07:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:54:23] Production.INFO: ==19178== Releasing lock... [2025-01-07 07:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:54:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:55:05 [end_date_ymd] => 2025-01-07 07:55:05 [RateCDR] => 1 ) [2025-01-07 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:55:05' and `end` < '2025-01-07 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:55:18] Production.INFO: count ==105 [2025-01-07 07:55:18] Production.ERROR: pbx CDR StartTime 2025-01-07 04:55:05 - End Time 2025-01-07 07:55:05 [2025-01-07 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193508', 'tblTempUsageDetail_20' ) start [2025-01-07 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193508', 'tblTempUsageDetail_20' ) end [2025-01-07 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193508', 'tblTempVendorCDR_20' ) start [2025-01-07 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193508', 'tblTempVendorCDR_20' ) end [2025-01-07 07:55:18] Production.INFO: ProcessCDR(1,14193508,1,1,2) [2025-01-07 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193508', 'tblTempUsageDetail_20' ) start [2025-01-07 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193508', 'tblTempUsageDetail_20' ) end [2025-01-07 07:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:55:22] Production.INFO: ==19290== Releasing lock... [2025-01-07 07:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:55:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:56:05 [end_date_ymd] => 2025-01-07 07:56:05 [RateCDR] => 1 ) [2025-01-07 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:56:05' and `end` < '2025-01-07 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:56:18] Production.INFO: count ==109 [2025-01-07 07:56:18] Production.ERROR: pbx CDR StartTime 2025-01-07 04:56:05 - End Time 2025-01-07 07:56:05 [2025-01-07 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193513', 'tblTempUsageDetail_20' ) start [2025-01-07 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193513', 'tblTempUsageDetail_20' ) end [2025-01-07 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193513', 'tblTempVendorCDR_20' ) start [2025-01-07 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193513', 'tblTempVendorCDR_20' ) end [2025-01-07 07:56:18] Production.INFO: ProcessCDR(1,14193513,1,1,2) [2025-01-07 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193513', 'tblTempUsageDetail_20' ) start [2025-01-07 07:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193513', 'tblTempUsageDetail_20' ) end [2025-01-07 07:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:56:23] Production.INFO: ==19360== Releasing lock... [2025-01-07 07:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:56:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-07 07:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:57:04 [end_date_ymd] => 2025-01-07 07:57:04 [RateCDR] => 1 ) [2025-01-07 07:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:57:04' and `end` < '2025-01-07 07:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:57:17] Production.INFO: count ==114 [2025-01-07 07:57:17] Production.ERROR: pbx CDR StartTime 2025-01-07 04:57:04 - End Time 2025-01-07 07:57:04 [2025-01-07 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193518', 'tblTempUsageDetail_20' ) start [2025-01-07 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193518', 'tblTempUsageDetail_20' ) end [2025-01-07 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193518', 'tblTempVendorCDR_20' ) start [2025-01-07 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193518', 'tblTempVendorCDR_20' ) end [2025-01-07 07:57:17] Production.INFO: ProcessCDR(1,14193518,1,1,2) [2025-01-07 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193518', 'tblTempUsageDetail_20' ) start [2025-01-07 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193518', 'tblTempUsageDetail_20' ) end [2025-01-07 07:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:57:20] Production.INFO: ==19431== Releasing lock... [2025-01-07 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:57:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:58:05 [end_date_ymd] => 2025-01-07 07:58:05 [RateCDR] => 1 ) [2025-01-07 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:58:05' and `end` < '2025-01-07 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:58:19] Production.INFO: count ==115 [2025-01-07 07:58:19] Production.ERROR: pbx CDR StartTime 2025-01-07 04:58:05 - End Time 2025-01-07 07:58:05 [2025-01-07 07:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193523', 'tblTempUsageDetail_20' ) start [2025-01-07 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193523', 'tblTempUsageDetail_20' ) end [2025-01-07 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193523', 'tblTempVendorCDR_20' ) start [2025-01-07 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193523', 'tblTempVendorCDR_20' ) end [2025-01-07 07:58:19] Production.INFO: ProcessCDR(1,14193523,1,1,2) [2025-01-07 07:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193523', 'tblTempUsageDetail_20' ) start [2025-01-07 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193523', 'tblTempUsageDetail_20' ) end [2025-01-07 07:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:58:23] Production.INFO: ==19501== Releasing lock... [2025-01-07 07:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:58:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 04:59:05 [end_date_ymd] => 2025-01-07 07:59:05 [RateCDR] => 1 ) [2025-01-07 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 04:59:05' and `end` < '2025-01-07 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 07:59:17] Production.INFO: count ==115 [2025-01-07 07:59:17] Production.ERROR: pbx CDR StartTime 2025-01-07 04:59:05 - End Time 2025-01-07 07:59:05 [2025-01-07 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193528', 'tblTempUsageDetail_20' ) start [2025-01-07 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193528', 'tblTempUsageDetail_20' ) end [2025-01-07 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193528', 'tblTempVendorCDR_20' ) start [2025-01-07 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193528', 'tblTempVendorCDR_20' ) end [2025-01-07 07:59:17] Production.INFO: ProcessCDR(1,14193528,1,1,2) [2025-01-07 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193528', 'tblTempUsageDetail_20' ) start [2025-01-07 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193528', 'tblTempUsageDetail_20' ) end [2025-01-07 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 07:59:21] Production.INFO: ==19575== Releasing lock... [2025-01-07 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 07:59:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:00:06 [end_date_ymd] => 2025-01-07 08:00:06 [RateCDR] => 1 ) [2025-01-07 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:00:06' and `end` < '2025-01-07 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:00:19] Production.INFO: count ==125 [2025-01-07 08:00:19] Production.ERROR: pbx CDR StartTime 2025-01-07 05:00:06 - End Time 2025-01-07 08:00:06 [2025-01-07 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193534', 'tblTempUsageDetail_20' ) start [2025-01-07 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193534', 'tblTempUsageDetail_20' ) end [2025-01-07 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193534', 'tblTempVendorCDR_20' ) start [2025-01-07 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193534', 'tblTempVendorCDR_20' ) end [2025-01-07 08:00:19] Production.INFO: ProcessCDR(1,14193534,1,1,2) [2025-01-07 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193534', 'tblTempUsageDetail_20' ) start [2025-01-07 08:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193534', 'tblTempUsageDetail_20' ) end [2025-01-07 08:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:00:24] Production.INFO: ==19650== Releasing lock... [2025-01-07 08:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:00:24] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:01:05 [end_date_ymd] => 2025-01-07 08:01:05 [RateCDR] => 1 ) [2025-01-07 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:01:05' and `end` < '2025-01-07 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:01:19] Production.INFO: count ==131 [2025-01-07 08:01:19] Production.ERROR: pbx CDR StartTime 2025-01-07 05:01:05 - End Time 2025-01-07 08:01:05 [2025-01-07 08:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193539', 'tblTempUsageDetail_20' ) start [2025-01-07 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193539', 'tblTempUsageDetail_20' ) end [2025-01-07 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193539', 'tblTempVendorCDR_20' ) start [2025-01-07 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193539', 'tblTempVendorCDR_20' ) end [2025-01-07 08:01:19] Production.INFO: ProcessCDR(1,14193539,1,1,2) [2025-01-07 08:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193539', 'tblTempUsageDetail_20' ) start [2025-01-07 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193539', 'tblTempUsageDetail_20' ) end [2025-01-07 08:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:01:22] Production.INFO: ==19736== Releasing lock... [2025-01-07 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:01:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:02:05 [end_date_ymd] => 2025-01-07 08:02:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 05:02:05' and `end` < '2025-01-07 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-01-07 08:02:18] Production.INFO: count ==135 [2025-01-07 08:02:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:02:05 - End Time 2025-01-07 08:02:05 [2025-01-07 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193544', 'tblTempUsageDetail_20' ) start [2025-01-07 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193544', 'tblTempUsageDetail_20' ) end [2025-01-07 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193544', 'tblTempVendorCDR_20' ) start [2025-01-07 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193544', 'tblTempVendorCDR_20' ) end [2025-01-07 08:02:18] Production.INFO: ProcessCDR(1,14193544,1,1,2) [2025-01-07 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193544', 'tblTempUsageDetail_20' ) start [2025-01-07 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193544', 'tblTempUsageDetail_20' ) end [2025-01-07 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:02:21] Production.INFO: ==19811== Releasing lock... [2025-01-07 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:02:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 08:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:03:04 [end_date_ymd] => 2025-01-07 08:03:04 [RateCDR] => 1 ) [2025-01-07 08:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:03:04' and `end` < '2025-01-07 08:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:03:19] Production.INFO: count ==137 [2025-01-07 08:03:19] Production.ERROR: pbx CDR StartTime 2025-01-07 05:03:04 - End Time 2025-01-07 08:03:04 [2025-01-07 08:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193549', 'tblTempUsageDetail_20' ) start [2025-01-07 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193549', 'tblTempUsageDetail_20' ) end [2025-01-07 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193549', 'tblTempVendorCDR_20' ) start [2025-01-07 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193549', 'tblTempVendorCDR_20' ) end [2025-01-07 08:03:19] Production.INFO: ProcessCDR(1,14193549,1,1,2) [2025-01-07 08:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193549', 'tblTempUsageDetail_20' ) start [2025-01-07 08:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193549', 'tblTempUsageDetail_20' ) end [2025-01-07 08:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:03:23] Production.INFO: ==19881== Releasing lock... [2025-01-07 08:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:03:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-07 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:04:05 [end_date_ymd] => 2025-01-07 08:04:05 [RateCDR] => 1 ) [2025-01-07 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:04:05' and `end` < '2025-01-07 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:04:19] Production.INFO: count ==150 [2025-01-07 08:04:19] Production.ERROR: pbx CDR StartTime 2025-01-07 05:04:05 - End Time 2025-01-07 08:04:05 [2025-01-07 08:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193554', 'tblTempUsageDetail_20' ) start [2025-01-07 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193554', 'tblTempUsageDetail_20' ) end [2025-01-07 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193554', 'tblTempVendorCDR_20' ) start [2025-01-07 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193554', 'tblTempVendorCDR_20' ) end [2025-01-07 08:04:19] Production.INFO: ProcessCDR(1,14193554,1,1,2) [2025-01-07 08:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193554', 'tblTempUsageDetail_20' ) start [2025-01-07 08:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193554', 'tblTempUsageDetail_20' ) end [2025-01-07 08:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:04:24] Production.INFO: ==19952== Releasing lock... [2025-01-07 08:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:04:24] Production.INFO: 29 MB #Memory Used# [2025-01-07 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:05:05 [end_date_ymd] => 2025-01-07 08:05:05 [RateCDR] => 1 ) [2025-01-07 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:05:05' and `end` < '2025-01-07 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:05:17] Production.INFO: count ==150 [2025-01-07 08:05:17] Production.ERROR: pbx CDR StartTime 2025-01-07 05:05:05 - End Time 2025-01-07 08:05:05 [2025-01-07 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193559', 'tblTempUsageDetail_20' ) start [2025-01-07 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193559', 'tblTempUsageDetail_20' ) end [2025-01-07 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193559', 'tblTempVendorCDR_20' ) start [2025-01-07 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193559', 'tblTempVendorCDR_20' ) end [2025-01-07 08:05:18] Production.INFO: ProcessCDR(1,14193559,1,1,2) [2025-01-07 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193559', 'tblTempUsageDetail_20' ) start [2025-01-07 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193559', 'tblTempUsageDetail_20' ) end [2025-01-07 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:05:21] Production.INFO: ==20022== Releasing lock... [2025-01-07 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:05:21] Production.INFO: 29 MB #Memory Used# [2025-01-07 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:06:05 [end_date_ymd] => 2025-01-07 08:06:05 [RateCDR] => 1 ) [2025-01-07 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:06:05' and `end` < '2025-01-07 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:06:17] Production.INFO: count ==159 [2025-01-07 08:06:17] Production.ERROR: pbx CDR StartTime 2025-01-07 05:06:05 - End Time 2025-01-07 08:06:05 [2025-01-07 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193564', 'tblTempUsageDetail_20' ) start [2025-01-07 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193564', 'tblTempUsageDetail_20' ) end [2025-01-07 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193564', 'tblTempVendorCDR_20' ) start [2025-01-07 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193564', 'tblTempVendorCDR_20' ) end [2025-01-07 08:06:18] Production.INFO: ProcessCDR(1,14193564,1,1,2) [2025-01-07 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193564', 'tblTempUsageDetail_20' ) start [2025-01-07 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193564', 'tblTempUsageDetail_20' ) end [2025-01-07 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:06:22] Production.INFO: ==20094== Releasing lock... [2025-01-07 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:06:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:07:05 [end_date_ymd] => 2025-01-07 08:07:05 [RateCDR] => 1 ) [2025-01-07 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:07:05' and `end` < '2025-01-07 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:07:19] Production.INFO: count ==164 [2025-01-07 08:07:19] Production.ERROR: pbx CDR StartTime 2025-01-07 05:07:05 - End Time 2025-01-07 08:07:05 [2025-01-07 08:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193569', 'tblTempUsageDetail_20' ) start [2025-01-07 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193569', 'tblTempUsageDetail_20' ) end [2025-01-07 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193569', 'tblTempVendorCDR_20' ) start [2025-01-07 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193569', 'tblTempVendorCDR_20' ) end [2025-01-07 08:07:19] Production.INFO: ProcessCDR(1,14193569,1,1,2) [2025-01-07 08:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193569', 'tblTempUsageDetail_20' ) start [2025-01-07 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193569', 'tblTempUsageDetail_20' ) end [2025-01-07 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:07:22] Production.INFO: ==20165== Releasing lock... [2025-01-07 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:07:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:08:05 [end_date_ymd] => 2025-01-07 08:08:05 [RateCDR] => 1 ) [2025-01-07 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:08:05' and `end` < '2025-01-07 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:08:18] Production.INFO: count ==165 [2025-01-07 08:08:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:08:05 - End Time 2025-01-07 08:08:05 [2025-01-07 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193574', 'tblTempUsageDetail_20' ) start [2025-01-07 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193574', 'tblTempUsageDetail_20' ) end [2025-01-07 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193574', 'tblTempVendorCDR_20' ) start [2025-01-07 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193574', 'tblTempVendorCDR_20' ) end [2025-01-07 08:08:18] Production.INFO: ProcessCDR(1,14193574,1,1,2) [2025-01-07 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193574', 'tblTempUsageDetail_20' ) start [2025-01-07 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193574', 'tblTempUsageDetail_20' ) end [2025-01-07 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:08:21] Production.INFO: ==20235== Releasing lock... [2025-01-07 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-07 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:09:05 [end_date_ymd] => 2025-01-07 08:09:05 [RateCDR] => 1 ) [2025-01-07 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:09:05' and `end` < '2025-01-07 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:09:18] Production.INFO: count ==166 [2025-01-07 08:09:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:09:05 - End Time 2025-01-07 08:09:05 [2025-01-07 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193579', 'tblTempUsageDetail_20' ) start [2025-01-07 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193579', 'tblTempUsageDetail_20' ) end [2025-01-07 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193579', 'tblTempVendorCDR_20' ) start [2025-01-07 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193579', 'tblTempVendorCDR_20' ) end [2025-01-07 08:09:18] Production.INFO: ProcessCDR(1,14193579,1,1,2) [2025-01-07 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193579', 'tblTempUsageDetail_20' ) start [2025-01-07 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193579', 'tblTempUsageDetail_20' ) end [2025-01-07 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:09:21] Production.INFO: ==20306== Releasing lock... [2025-01-07 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-07 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:10:05 [end_date_ymd] => 2025-01-07 08:10:05 [RateCDR] => 1 ) [2025-01-07 08:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:10:05' and `end` < '2025-01-07 08:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:10:18] Production.INFO: count ==186 [2025-01-07 08:10:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:10:05 - End Time 2025-01-07 08:10:05 [2025-01-07 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193585', 'tblTempUsageDetail_20' ) start [2025-01-07 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193585', 'tblTempUsageDetail_20' ) end [2025-01-07 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193585', 'tblTempVendorCDR_20' ) start [2025-01-07 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193585', 'tblTempVendorCDR_20' ) end [2025-01-07 08:10:18] Production.INFO: ProcessCDR(1,14193585,1,1,2) [2025-01-07 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193585', 'tblTempUsageDetail_20' ) start [2025-01-07 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193585', 'tblTempUsageDetail_20' ) end [2025-01-07 08:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:10:21] Production.INFO: ==20380== Releasing lock... [2025-01-07 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:10:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-07 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:11:05 [end_date_ymd] => 2025-01-07 08:11:05 [RateCDR] => 1 ) [2025-01-07 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:11:05' and `end` < '2025-01-07 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:11:18] Production.INFO: count ==212 [2025-01-07 08:11:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:11:05 - End Time 2025-01-07 08:11:05 [2025-01-07 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193590', 'tblTempUsageDetail_20' ) start [2025-01-07 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193590', 'tblTempUsageDetail_20' ) end [2025-01-07 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193590', 'tblTempVendorCDR_20' ) start [2025-01-07 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193590', 'tblTempVendorCDR_20' ) end [2025-01-07 08:11:18] Production.INFO: ProcessCDR(1,14193590,1,1,2) [2025-01-07 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193590', 'tblTempUsageDetail_20' ) start [2025-01-07 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193590', 'tblTempUsageDetail_20' ) end [2025-01-07 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:11:21] Production.INFO: ==20493== Releasing lock... [2025-01-07 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:11:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-07 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:12:05 [end_date_ymd] => 2025-01-07 08:12:05 [RateCDR] => 1 ) [2025-01-07 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:12:05' and `end` < '2025-01-07 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:12:18] Production.INFO: count ==218 [2025-01-07 08:12:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:12:05 - End Time 2025-01-07 08:12:05 [2025-01-07 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193595', 'tblTempUsageDetail_20' ) start [2025-01-07 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193595', 'tblTempUsageDetail_20' ) end [2025-01-07 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193595', 'tblTempVendorCDR_20' ) start [2025-01-07 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193595', 'tblTempVendorCDR_20' ) end [2025-01-07 08:12:18] Production.INFO: ProcessCDR(1,14193595,1,1,2) [2025-01-07 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193595', 'tblTempUsageDetail_20' ) start [2025-01-07 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193595', 'tblTempUsageDetail_20' ) end [2025-01-07 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:12:22] Production.INFO: ==20564== Releasing lock... [2025-01-07 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:12:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-07 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:13:05 [end_date_ymd] => 2025-01-07 08:13:05 [RateCDR] => 1 ) [2025-01-07 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:13:05' and `end` < '2025-01-07 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:13:21] Production.INFO: count ==218 [2025-01-07 08:13:21] Production.ERROR: pbx CDR StartTime 2025-01-07 05:13:05 - End Time 2025-01-07 08:13:05 [2025-01-07 08:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193600', 'tblTempUsageDetail_20' ) start [2025-01-07 08:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193600', 'tblTempUsageDetail_20' ) end [2025-01-07 08:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193600', 'tblTempVendorCDR_20' ) start [2025-01-07 08:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193600', 'tblTempVendorCDR_20' ) end [2025-01-07 08:13:21] Production.INFO: ProcessCDR(1,14193600,1,1,2) [2025-01-07 08:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193600', 'tblTempUsageDetail_20' ) start [2025-01-07 08:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193600', 'tblTempUsageDetail_20' ) end [2025-01-07 08:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:13:24] Production.INFO: ==20635== Releasing lock... [2025-01-07 08:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:13:24] Production.INFO: 29.75 MB #Memory Used# [2025-01-07 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:14:05 [end_date_ymd] => 2025-01-07 08:14:05 [RateCDR] => 1 ) [2025-01-07 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:14:05' and `end` < '2025-01-07 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:14:19] Production.INFO: count ==219 [2025-01-07 08:14:19] Production.ERROR: pbx CDR StartTime 2025-01-07 05:14:05 - End Time 2025-01-07 08:14:05 [2025-01-07 08:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193605', 'tblTempUsageDetail_20' ) start [2025-01-07 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193605', 'tblTempUsageDetail_20' ) end [2025-01-07 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193605', 'tblTempVendorCDR_20' ) start [2025-01-07 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193605', 'tblTempVendorCDR_20' ) end [2025-01-07 08:14:19] Production.INFO: ProcessCDR(1,14193605,1,1,2) [2025-01-07 08:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193605', 'tblTempUsageDetail_20' ) start [2025-01-07 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193605', 'tblTempUsageDetail_20' ) end [2025-01-07 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:14:22] Production.INFO: ==20711== Releasing lock... [2025-01-07 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:14:22] Production.INFO: 30 MB #Memory Used# [2025-01-07 08:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:15:04 [end_date_ymd] => 2025-01-07 08:15:04 [RateCDR] => 1 ) [2025-01-07 08:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:15:04' and `end` < '2025-01-07 08:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:15:17] Production.INFO: count ==221 [2025-01-07 08:15:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:15:04 - End Time 2025-01-07 08:15:04 [2025-01-07 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193610', 'tblTempUsageDetail_20' ) start [2025-01-07 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193610', 'tblTempUsageDetail_20' ) end [2025-01-07 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193610', 'tblTempVendorCDR_20' ) start [2025-01-07 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193610', 'tblTempVendorCDR_20' ) end [2025-01-07 08:15:18] Production.INFO: ProcessCDR(1,14193610,1,1,2) [2025-01-07 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193610', 'tblTempUsageDetail_20' ) start [2025-01-07 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193610', 'tblTempUsageDetail_20' ) end [2025-01-07 08:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:15:22] Production.INFO: ==20781== Releasing lock... [2025-01-07 08:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:15:22] Production.INFO: 30 MB #Memory Used# [2025-01-07 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:16:05 [end_date_ymd] => 2025-01-07 08:16:05 [RateCDR] => 1 ) [2025-01-07 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:16:05' and `end` < '2025-01-07 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:16:18] Production.INFO: count ==235 [2025-01-07 08:16:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:16:05 - End Time 2025-01-07 08:16:05 [2025-01-07 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193615', 'tblTempUsageDetail_20' ) start [2025-01-07 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193615', 'tblTempUsageDetail_20' ) end [2025-01-07 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193615', 'tblTempVendorCDR_20' ) start [2025-01-07 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193615', 'tblTempVendorCDR_20' ) end [2025-01-07 08:16:19] Production.INFO: ProcessCDR(1,14193615,1,1,2) [2025-01-07 08:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193615', 'tblTempUsageDetail_20' ) start [2025-01-07 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193615', 'tblTempUsageDetail_20' ) end [2025-01-07 08:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:16:23] Production.INFO: ==20852== Releasing lock... [2025-01-07 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:16:23] Production.INFO: 30 MB #Memory Used# [2025-01-07 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:17:05 [end_date_ymd] => 2025-01-07 08:17:05 [RateCDR] => 1 ) [2025-01-07 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:17:05' and `end` < '2025-01-07 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:17:18] Production.INFO: count ==249 [2025-01-07 08:17:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:17:05 - End Time 2025-01-07 08:17:05 [2025-01-07 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193620', 'tblTempUsageDetail_20' ) start [2025-01-07 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193620', 'tblTempUsageDetail_20' ) end [2025-01-07 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193620', 'tblTempVendorCDR_20' ) start [2025-01-07 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193620', 'tblTempVendorCDR_20' ) end [2025-01-07 08:17:18] Production.INFO: ProcessCDR(1,14193620,1,1,2) [2025-01-07 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193620', 'tblTempUsageDetail_20' ) start [2025-01-07 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193620', 'tblTempUsageDetail_20' ) end [2025-01-07 08:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:17:23] Production.INFO: ==20930== Releasing lock... [2025-01-07 08:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:17:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-07 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:18:05 [end_date_ymd] => 2025-01-07 08:18:05 [RateCDR] => 1 ) [2025-01-07 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:18:05' and `end` < '2025-01-07 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:18:18] Production.INFO: count ==265 [2025-01-07 08:18:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:18:05 - End Time 2025-01-07 08:18:05 [2025-01-07 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193625', 'tblTempUsageDetail_20' ) start [2025-01-07 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193625', 'tblTempUsageDetail_20' ) end [2025-01-07 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193625', 'tblTempVendorCDR_20' ) start [2025-01-07 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193625', 'tblTempVendorCDR_20' ) end [2025-01-07 08:18:18] Production.INFO: ProcessCDR(1,14193625,1,1,2) [2025-01-07 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193625', 'tblTempUsageDetail_20' ) start [2025-01-07 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193625', 'tblTempUsageDetail_20' ) end [2025-01-07 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:18:22] Production.INFO: ==21011== Releasing lock... [2025-01-07 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:18:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-07 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:19:05 [end_date_ymd] => 2025-01-07 08:19:05 [RateCDR] => 1 ) [2025-01-07 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:19:05' and `end` < '2025-01-07 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:19:18] Production.INFO: count ==286 [2025-01-07 08:19:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:19:05 - End Time 2025-01-07 08:19:05 [2025-01-07 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193630', 'tblTempUsageDetail_20' ) start [2025-01-07 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193630', 'tblTempUsageDetail_20' ) end [2025-01-07 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193630', 'tblTempVendorCDR_20' ) start [2025-01-07 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193630', 'tblTempVendorCDR_20' ) end [2025-01-07 08:19:18] Production.INFO: ProcessCDR(1,14193630,1,1,2) [2025-01-07 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193630', 'tblTempUsageDetail_20' ) start [2025-01-07 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193630', 'tblTempUsageDetail_20' ) end [2025-01-07 08:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:19:23] Production.INFO: ==21080== Releasing lock... [2025-01-07 08:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:19:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-07 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:20:06 [end_date_ymd] => 2025-01-07 08:20:06 [RateCDR] => 1 ) [2025-01-07 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:20:06' and `end` < '2025-01-07 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:20:19] Production.INFO: count ==298 [2025-01-07 08:20:19] Production.ERROR: pbx CDR StartTime 2025-01-07 05:20:06 - End Time 2025-01-07 08:20:06 [2025-01-07 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193635', 'tblTempUsageDetail_20' ) start [2025-01-07 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193635', 'tblTempUsageDetail_20' ) end [2025-01-07 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193635', 'tblTempVendorCDR_20' ) start [2025-01-07 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193635', 'tblTempVendorCDR_20' ) end [2025-01-07 08:20:19] Production.INFO: ProcessCDR(1,14193635,1,1,2) [2025-01-07 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193635', 'tblTempUsageDetail_20' ) start [2025-01-07 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193635', 'tblTempUsageDetail_20' ) end [2025-01-07 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:20:22] Production.INFO: ==21153== Releasing lock... [2025-01-07 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:20:22] Production.INFO: 31 MB #Memory Used# [2025-01-07 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:21:05 [end_date_ymd] => 2025-01-07 08:21:05 [RateCDR] => 1 ) [2025-01-07 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:21:05' and `end` < '2025-01-07 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:21:18] Production.INFO: count ==312 [2025-01-07 08:21:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:21:05 - End Time 2025-01-07 08:21:05 [2025-01-07 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193641', 'tblTempUsageDetail_20' ) start [2025-01-07 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193641', 'tblTempUsageDetail_20' ) end [2025-01-07 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193641', 'tblTempVendorCDR_20' ) start [2025-01-07 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193641', 'tblTempVendorCDR_20' ) end [2025-01-07 08:21:18] Production.INFO: ProcessCDR(1,14193641,1,1,2) [2025-01-07 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193641', 'tblTempUsageDetail_20' ) start [2025-01-07 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193641', 'tblTempUsageDetail_20' ) end [2025-01-07 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:21:21] Production.INFO: ==21226== Releasing lock... [2025-01-07 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:21:21] Production.INFO: 31 MB #Memory Used# [2025-01-07 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:22:05 [end_date_ymd] => 2025-01-07 08:22:05 [RateCDR] => 1 ) [2025-01-07 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:22:05' and `end` < '2025-01-07 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:22:19] Production.INFO: count ==328 [2025-01-07 08:22:19] Production.ERROR: pbx CDR StartTime 2025-01-07 05:22:05 - End Time 2025-01-07 08:22:05 [2025-01-07 08:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193646', 'tblTempUsageDetail_20' ) start [2025-01-07 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193646', 'tblTempUsageDetail_20' ) end [2025-01-07 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193646', 'tblTempVendorCDR_20' ) start [2025-01-07 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193646', 'tblTempVendorCDR_20' ) end [2025-01-07 08:22:19] Production.INFO: ProcessCDR(1,14193646,1,1,2) [2025-01-07 08:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193646', 'tblTempUsageDetail_20' ) start [2025-01-07 08:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193646', 'tblTempUsageDetail_20' ) end [2025-01-07 08:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:22:24] Production.INFO: ==21296== Releasing lock... [2025-01-07 08:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:22:24] Production.INFO: 30.75 MB #Memory Used# [2025-01-07 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:23:05 [end_date_ymd] => 2025-01-07 08:23:05 [RateCDR] => 1 ) [2025-01-07 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:23:05' and `end` < '2025-01-07 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:23:18] Production.INFO: count ==350 [2025-01-07 08:23:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:23:05 - End Time 2025-01-07 08:23:05 [2025-01-07 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193651', 'tblTempUsageDetail_20' ) start [2025-01-07 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193651', 'tblTempUsageDetail_20' ) end [2025-01-07 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193651', 'tblTempVendorCDR_20' ) start [2025-01-07 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193651', 'tblTempVendorCDR_20' ) end [2025-01-07 08:23:18] Production.INFO: ProcessCDR(1,14193651,1,1,2) [2025-01-07 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193651', 'tblTempUsageDetail_20' ) start [2025-01-07 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193651', 'tblTempUsageDetail_20' ) end [2025-01-07 08:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:23:23] Production.INFO: ==21367== Releasing lock... [2025-01-07 08:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:23:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-07 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:24:06 [end_date_ymd] => 2025-01-07 08:24:06 [RateCDR] => 1 ) [2025-01-07 08:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:24:06' and `end` < '2025-01-07 08:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:24:19] Production.INFO: count ==358 [2025-01-07 08:24:19] Production.ERROR: pbx CDR StartTime 2025-01-07 05:24:06 - End Time 2025-01-07 08:24:06 [2025-01-07 08:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193656', 'tblTempUsageDetail_20' ) start [2025-01-07 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193656', 'tblTempUsageDetail_20' ) end [2025-01-07 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193656', 'tblTempVendorCDR_20' ) start [2025-01-07 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193656', 'tblTempVendorCDR_20' ) end [2025-01-07 08:24:19] Production.INFO: ProcessCDR(1,14193656,1,1,2) [2025-01-07 08:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193656', 'tblTempUsageDetail_20' ) start [2025-01-07 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193656', 'tblTempUsageDetail_20' ) end [2025-01-07 08:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:24:23] Production.INFO: ==21442== Releasing lock... [2025-01-07 08:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:24:23] Production.INFO: 31 MB #Memory Used# [2025-01-07 08:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:25:04 [end_date_ymd] => 2025-01-07 08:25:04 [RateCDR] => 1 ) [2025-01-07 08:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:25:04' and `end` < '2025-01-07 08:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:25:17] Production.INFO: count ==358 [2025-01-07 08:25:17] Production.ERROR: pbx CDR StartTime 2025-01-07 05:25:04 - End Time 2025-01-07 08:25:04 [2025-01-07 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193661', 'tblTempUsageDetail_20' ) start [2025-01-07 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193661', 'tblTempUsageDetail_20' ) end [2025-01-07 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193661', 'tblTempVendorCDR_20' ) start [2025-01-07 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193661', 'tblTempVendorCDR_20' ) end [2025-01-07 08:25:17] Production.INFO: ProcessCDR(1,14193661,1,1,2) [2025-01-07 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193661', 'tblTempUsageDetail_20' ) start [2025-01-07 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193661', 'tblTempUsageDetail_20' ) end [2025-01-07 08:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:25:20] Production.INFO: ==21515== Releasing lock... [2025-01-07 08:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:25:20] Production.INFO: 31 MB #Memory Used# [2025-01-07 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:26:05 [end_date_ymd] => 2025-01-07 08:26:05 [RateCDR] => 1 ) [2025-01-07 08:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:26:05' and `end` < '2025-01-07 08:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:26:18] Production.INFO: count ==360 [2025-01-07 08:26:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:26:05 - End Time 2025-01-07 08:26:05 [2025-01-07 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193666', 'tblTempUsageDetail_20' ) start [2025-01-07 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193666', 'tblTempUsageDetail_20' ) end [2025-01-07 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193666', 'tblTempVendorCDR_20' ) start [2025-01-07 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193666', 'tblTempVendorCDR_20' ) end [2025-01-07 08:26:18] Production.INFO: ProcessCDR(1,14193666,1,1,2) [2025-01-07 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193666', 'tblTempUsageDetail_20' ) start [2025-01-07 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193666', 'tblTempUsageDetail_20' ) end [2025-01-07 08:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:26:22] Production.INFO: ==21629== Releasing lock... [2025-01-07 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:26:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-07 08:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:27:06 [end_date_ymd] => 2025-01-07 08:27:06 [RateCDR] => 1 ) [2025-01-07 08:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:27:06' and `end` < '2025-01-07 08:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:27:18] Production.INFO: count ==363 [2025-01-07 08:27:19] Production.ERROR: pbx CDR StartTime 2025-01-07 05:27:06 - End Time 2025-01-07 08:27:06 [2025-01-07 08:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193671', 'tblTempUsageDetail_20' ) start [2025-01-07 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193671', 'tblTempUsageDetail_20' ) end [2025-01-07 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193671', 'tblTempVendorCDR_20' ) start [2025-01-07 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193671', 'tblTempVendorCDR_20' ) end [2025-01-07 08:27:19] Production.INFO: ProcessCDR(1,14193671,1,1,2) [2025-01-07 08:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193671', 'tblTempUsageDetail_20' ) start [2025-01-07 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193671', 'tblTempUsageDetail_20' ) end [2025-01-07 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:27:22] Production.INFO: ==21701== Releasing lock... [2025-01-07 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:27:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-07 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:28:05 [end_date_ymd] => 2025-01-07 08:28:05 [RateCDR] => 1 ) [2025-01-07 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:28:05' and `end` < '2025-01-07 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:28:17] Production.INFO: count ==371 [2025-01-07 08:28:17] Production.ERROR: pbx CDR StartTime 2025-01-07 05:28:05 - End Time 2025-01-07 08:28:05 [2025-01-07 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193676', 'tblTempUsageDetail_20' ) start [2025-01-07 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193676', 'tblTempUsageDetail_20' ) end [2025-01-07 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193676', 'tblTempVendorCDR_20' ) start [2025-01-07 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193676', 'tblTempVendorCDR_20' ) end [2025-01-07 08:28:17] Production.INFO: ProcessCDR(1,14193676,1,1,2) [2025-01-07 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193676', 'tblTempUsageDetail_20' ) start [2025-01-07 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193676', 'tblTempUsageDetail_20' ) end [2025-01-07 08:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:28:23] Production.INFO: ==21775== Releasing lock... [2025-01-07 08:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:28:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-07 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:29:05 [end_date_ymd] => 2025-01-07 08:29:05 [RateCDR] => 1 ) [2025-01-07 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:29:05' and `end` < '2025-01-07 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:29:18] Production.INFO: count ==372 [2025-01-07 08:29:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:29:05 - End Time 2025-01-07 08:29:05 [2025-01-07 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193681', 'tblTempUsageDetail_20' ) start [2025-01-07 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193681', 'tblTempUsageDetail_20' ) end [2025-01-07 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193681', 'tblTempVendorCDR_20' ) start [2025-01-07 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193681', 'tblTempVendorCDR_20' ) end [2025-01-07 08:29:18] Production.INFO: ProcessCDR(1,14193681,1,1,2) [2025-01-07 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193681', 'tblTempUsageDetail_20' ) start [2025-01-07 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193681', 'tblTempUsageDetail_20' ) end [2025-01-07 08:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:29:23] Production.INFO: ==21844== Releasing lock... [2025-01-07 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:29:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-07 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:30:05 [end_date_ymd] => 2025-01-07 08:30:05 [RateCDR] => 1 ) [2025-01-07 08:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:30:05' and `end` < '2025-01-07 08:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:30:18] Production.INFO: count ==376 [2025-01-07 08:30:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:30:05 - End Time 2025-01-07 08:30:05 [2025-01-07 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193686', 'tblTempUsageDetail_20' ) start [2025-01-07 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193686', 'tblTempUsageDetail_20' ) end [2025-01-07 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193686', 'tblTempVendorCDR_20' ) start [2025-01-07 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193686', 'tblTempVendorCDR_20' ) end [2025-01-07 08:30:18] Production.INFO: ProcessCDR(1,14193686,1,1,2) [2025-01-07 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193686', 'tblTempUsageDetail_20' ) start [2025-01-07 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193686', 'tblTempUsageDetail_20' ) end [2025-01-07 08:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:30:21] Production.INFO: ==21916== Releasing lock... [2025-01-07 08:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:30:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-07 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:31:05 [end_date_ymd] => 2025-01-07 08:31:05 [RateCDR] => 1 ) [2025-01-07 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:31:05' and `end` < '2025-01-07 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:31:19] Production.INFO: count ==395 [2025-01-07 08:31:19] Production.ERROR: pbx CDR StartTime 2025-01-07 05:31:05 - End Time 2025-01-07 08:31:05 [2025-01-07 08:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193692', 'tblTempUsageDetail_20' ) start [2025-01-07 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193692', 'tblTempUsageDetail_20' ) end [2025-01-07 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193692', 'tblTempVendorCDR_20' ) start [2025-01-07 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193692', 'tblTempVendorCDR_20' ) end [2025-01-07 08:31:19] Production.INFO: ProcessCDR(1,14193692,1,1,2) [2025-01-07 08:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193692', 'tblTempUsageDetail_20' ) start [2025-01-07 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193692', 'tblTempUsageDetail_20' ) end [2025-01-07 08:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:31:23] Production.INFO: ==21992== Releasing lock... [2025-01-07 08:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:31:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-07 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:32:05 [end_date_ymd] => 2025-01-07 08:32:05 [RateCDR] => 1 ) [2025-01-07 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:32:05' and `end` < '2025-01-07 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:32:19] Production.INFO: count ==397 [2025-01-07 08:32:19] Production.ERROR: pbx CDR StartTime 2025-01-07 05:32:05 - End Time 2025-01-07 08:32:05 [2025-01-07 08:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193697', 'tblTempUsageDetail_20' ) start [2025-01-07 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193697', 'tblTempUsageDetail_20' ) end [2025-01-07 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193697', 'tblTempVendorCDR_20' ) start [2025-01-07 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193697', 'tblTempVendorCDR_20' ) end [2025-01-07 08:32:19] Production.INFO: ProcessCDR(1,14193697,1,1,2) [2025-01-07 08:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193697', 'tblTempUsageDetail_20' ) start [2025-01-07 08:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193697', 'tblTempUsageDetail_20' ) end [2025-01-07 08:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:32:24] Production.INFO: ==22061== Releasing lock... [2025-01-07 08:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:32:24] Production.INFO: 32 MB #Memory Used# [2025-01-07 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:33:05 [end_date_ymd] => 2025-01-07 08:33:05 [RateCDR] => 1 ) [2025-01-07 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:33:05' and `end` < '2025-01-07 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:33:18] Production.INFO: count ==416 [2025-01-07 08:33:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:33:05 - End Time 2025-01-07 08:33:05 [2025-01-07 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193702', 'tblTempUsageDetail_20' ) start [2025-01-07 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193702', 'tblTempUsageDetail_20' ) end [2025-01-07 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193702', 'tblTempVendorCDR_20' ) start [2025-01-07 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193702', 'tblTempVendorCDR_20' ) end [2025-01-07 08:33:18] Production.INFO: ProcessCDR(1,14193702,1,1,2) [2025-01-07 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193702', 'tblTempUsageDetail_20' ) start [2025-01-07 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193702', 'tblTempUsageDetail_20' ) end [2025-01-07 08:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:33:23] Production.INFO: ==22131== Releasing lock... [2025-01-07 08:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:33:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-07 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:34:05 [end_date_ymd] => 2025-01-07 08:34:05 [RateCDR] => 1 ) [2025-01-07 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:34:05' and `end` < '2025-01-07 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:34:20] Production.INFO: count ==429 [2025-01-07 08:34:20] Production.ERROR: pbx CDR StartTime 2025-01-07 05:34:05 - End Time 2025-01-07 08:34:05 [2025-01-07 08:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193707', 'tblTempUsageDetail_20' ) start [2025-01-07 08:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193707', 'tblTempUsageDetail_20' ) end [2025-01-07 08:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193707', 'tblTempVendorCDR_20' ) start [2025-01-07 08:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193707', 'tblTempVendorCDR_20' ) end [2025-01-07 08:34:20] Production.INFO: ProcessCDR(1,14193707,1,1,2) [2025-01-07 08:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193707', 'tblTempUsageDetail_20' ) start [2025-01-07 08:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193707', 'tblTempUsageDetail_20' ) end [2025-01-07 08:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:34:25] Production.INFO: ==22201== Releasing lock... [2025-01-07 08:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:34:25] Production.INFO: 32 MB #Memory Used# [2025-01-07 08:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:35:04 [end_date_ymd] => 2025-01-07 08:35:04 [RateCDR] => 1 ) [2025-01-07 08:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:35:04' and `end` < '2025-01-07 08:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:35:17] Production.INFO: count ==450 [2025-01-07 08:35:17] Production.ERROR: pbx CDR StartTime 2025-01-07 05:35:04 - End Time 2025-01-07 08:35:04 [2025-01-07 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193712', 'tblTempUsageDetail_20' ) start [2025-01-07 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193712', 'tblTempUsageDetail_20' ) end [2025-01-07 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193712', 'tblTempVendorCDR_20' ) start [2025-01-07 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193712', 'tblTempVendorCDR_20' ) end [2025-01-07 08:35:17] Production.INFO: ProcessCDR(1,14193712,1,1,2) [2025-01-07 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193712', 'tblTempUsageDetail_20' ) start [2025-01-07 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193712', 'tblTempUsageDetail_20' ) end [2025-01-07 08:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:35:22] Production.INFO: ==22272== Releasing lock... [2025-01-07 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:35:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-07 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:36:05 [end_date_ymd] => 2025-01-07 08:36:05 [RateCDR] => 1 ) [2025-01-07 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:36:05' and `end` < '2025-01-07 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:36:18] Production.INFO: count ==450 [2025-01-07 08:36:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:36:05 - End Time 2025-01-07 08:36:05 [2025-01-07 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193717', 'tblTempUsageDetail_20' ) start [2025-01-07 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193717', 'tblTempUsageDetail_20' ) end [2025-01-07 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193717', 'tblTempVendorCDR_20' ) start [2025-01-07 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193717', 'tblTempVendorCDR_20' ) end [2025-01-07 08:36:18] Production.INFO: ProcessCDR(1,14193717,1,1,2) [2025-01-07 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193717', 'tblTempUsageDetail_20' ) start [2025-01-07 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193717', 'tblTempUsageDetail_20' ) end [2025-01-07 08:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:36:21] Production.INFO: ==22347== Releasing lock... [2025-01-07 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:36:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-07 08:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:37:04 [end_date_ymd] => 2025-01-07 08:37:04 [RateCDR] => 1 ) [2025-01-07 08:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:37:04' and `end` < '2025-01-07 08:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:37:17] Production.INFO: count ==450 [2025-01-07 08:37:17] Production.ERROR: pbx CDR StartTime 2025-01-07 05:37:04 - End Time 2025-01-07 08:37:04 [2025-01-07 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193722', 'tblTempUsageDetail_20' ) start [2025-01-07 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193722', 'tblTempUsageDetail_20' ) end [2025-01-07 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193722', 'tblTempVendorCDR_20' ) start [2025-01-07 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193722', 'tblTempVendorCDR_20' ) end [2025-01-07 08:37:17] Production.INFO: ProcessCDR(1,14193722,1,1,2) [2025-01-07 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193722', 'tblTempUsageDetail_20' ) start [2025-01-07 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193722', 'tblTempUsageDetail_20' ) end [2025-01-07 08:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:37:20] Production.INFO: ==22417== Releasing lock... [2025-01-07 08:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:37:20] Production.INFO: 32.5 MB #Memory Used# [2025-01-07 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:38:05 [end_date_ymd] => 2025-01-07 08:38:05 [RateCDR] => 1 ) [2025-01-07 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:38:05' and `end` < '2025-01-07 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:38:18] Production.INFO: count ==455 [2025-01-07 08:38:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:38:05 - End Time 2025-01-07 08:38:05 [2025-01-07 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193727', 'tblTempUsageDetail_20' ) start [2025-01-07 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193727', 'tblTempUsageDetail_20' ) end [2025-01-07 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193727', 'tblTempVendorCDR_20' ) start [2025-01-07 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193727', 'tblTempVendorCDR_20' ) end [2025-01-07 08:38:18] Production.INFO: ProcessCDR(1,14193727,1,1,2) [2025-01-07 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193727', 'tblTempUsageDetail_20' ) start [2025-01-07 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193727', 'tblTempUsageDetail_20' ) end [2025-01-07 08:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:38:21] Production.INFO: ==22496== Releasing lock... [2025-01-07 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:38:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-07 08:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:39:04 [end_date_ymd] => 2025-01-07 08:39:04 [RateCDR] => 1 ) [2025-01-07 08:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:39:04' and `end` < '2025-01-07 08:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:39:17] Production.INFO: count ==463 [2025-01-07 08:39:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:39:04 - End Time 2025-01-07 08:39:04 [2025-01-07 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193732', 'tblTempUsageDetail_20' ) start [2025-01-07 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193732', 'tblTempUsageDetail_20' ) end [2025-01-07 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193732', 'tblTempVendorCDR_20' ) start [2025-01-07 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193732', 'tblTempVendorCDR_20' ) end [2025-01-07 08:39:18] Production.INFO: ProcessCDR(1,14193732,1,1,2) [2025-01-07 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193732', 'tblTempUsageDetail_20' ) start [2025-01-07 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193732', 'tblTempUsageDetail_20' ) end [2025-01-07 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:39:21] Production.INFO: ==22573== Releasing lock... [2025-01-07 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:39:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-07 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:40:05 [end_date_ymd] => 2025-01-07 08:40:05 [RateCDR] => 1 ) [2025-01-07 08:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:40:05' and `end` < '2025-01-07 08:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:40:18] Production.INFO: count ==479 [2025-01-07 08:40:19] Production.ERROR: pbx CDR StartTime 2025-01-07 05:40:05 - End Time 2025-01-07 08:40:05 [2025-01-07 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193737', 'tblTempUsageDetail_20' ) start [2025-01-07 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193737', 'tblTempUsageDetail_20' ) end [2025-01-07 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193737', 'tblTempVendorCDR_20' ) start [2025-01-07 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193737', 'tblTempVendorCDR_20' ) end [2025-01-07 08:40:19] Production.INFO: ProcessCDR(1,14193737,1,1,2) [2025-01-07 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193737', 'tblTempUsageDetail_20' ) start [2025-01-07 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193737', 'tblTempUsageDetail_20' ) end [2025-01-07 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:40:23] Production.INFO: ==22651== Releasing lock... [2025-01-07 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:40:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-07 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:41:05 [end_date_ymd] => 2025-01-07 08:41:05 [RateCDR] => 1 ) [2025-01-07 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:41:05' and `end` < '2025-01-07 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:41:19] Production.INFO: count ==515 [2025-01-07 08:41:20] Production.ERROR: pbx CDR StartTime 2025-01-07 05:41:05 - End Time 2025-01-07 08:41:05 [2025-01-07 08:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193743', 'tblTempUsageDetail_20' ) start [2025-01-07 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193743', 'tblTempUsageDetail_20' ) end [2025-01-07 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193743', 'tblTempVendorCDR_20' ) start [2025-01-07 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193743', 'tblTempVendorCDR_20' ) end [2025-01-07 08:41:20] Production.INFO: ProcessCDR(1,14193743,1,1,2) [2025-01-07 08:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193743', 'tblTempUsageDetail_20' ) start [2025-01-07 08:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193743', 'tblTempUsageDetail_20' ) end [2025-01-07 08:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:41:24] Production.INFO: ==22728== Releasing lock... [2025-01-07 08:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:41:24] Production.INFO: 32.5 MB #Memory Used# [2025-01-07 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:42:05 [end_date_ymd] => 2025-01-07 08:42:05 [RateCDR] => 1 ) [2025-01-07 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:42:05' and `end` < '2025-01-07 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:42:18] Production.INFO: count ==521 [2025-01-07 08:42:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:42:05 - End Time 2025-01-07 08:42:05 [2025-01-07 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193748', 'tblTempUsageDetail_20' ) start [2025-01-07 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193748', 'tblTempUsageDetail_20' ) end [2025-01-07 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193748', 'tblTempVendorCDR_20' ) start [2025-01-07 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193748', 'tblTempVendorCDR_20' ) end [2025-01-07 08:42:18] Production.INFO: ProcessCDR(1,14193748,1,1,2) [2025-01-07 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193748', 'tblTempUsageDetail_20' ) start [2025-01-07 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193748', 'tblTempUsageDetail_20' ) end [2025-01-07 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:42:21] Production.INFO: ==22838== Releasing lock... [2025-01-07 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:42:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-07 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:43:05 [end_date_ymd] => 2025-01-07 08:43:05 [RateCDR] => 1 ) [2025-01-07 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:43:05' and `end` < '2025-01-07 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:43:18] Production.INFO: count ==521 [2025-01-07 08:43:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:43:05 - End Time 2025-01-07 08:43:05 [2025-01-07 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193753', 'tblTempUsageDetail_20' ) start [2025-01-07 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193753', 'tblTempUsageDetail_20' ) end [2025-01-07 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193753', 'tblTempVendorCDR_20' ) start [2025-01-07 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193753', 'tblTempVendorCDR_20' ) end [2025-01-07 08:43:18] Production.INFO: ProcessCDR(1,14193753,1,1,2) [2025-01-07 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193753', 'tblTempUsageDetail_20' ) start [2025-01-07 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193753', 'tblTempUsageDetail_20' ) end [2025-01-07 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:43:21] Production.INFO: ==22909== Releasing lock... [2025-01-07 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:43:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-07 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:44:05 [end_date_ymd] => 2025-01-07 08:44:05 [RateCDR] => 1 ) [2025-01-07 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:44:05' and `end` < '2025-01-07 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:44:18] Production.INFO: count ==533 [2025-01-07 08:44:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:44:05 - End Time 2025-01-07 08:44:05 [2025-01-07 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193758', 'tblTempUsageDetail_20' ) start [2025-01-07 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193758', 'tblTempUsageDetail_20' ) end [2025-01-07 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193758', 'tblTempVendorCDR_20' ) start [2025-01-07 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193758', 'tblTempVendorCDR_20' ) end [2025-01-07 08:44:18] Production.INFO: ProcessCDR(1,14193758,1,1,2) [2025-01-07 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193758', 'tblTempUsageDetail_20' ) start [2025-01-07 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193758', 'tblTempUsageDetail_20' ) end [2025-01-07 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:44:22] Production.INFO: ==22981== Releasing lock... [2025-01-07 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:44:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-07 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:45:05 [end_date_ymd] => 2025-01-07 08:45:05 [RateCDR] => 1 ) [2025-01-07 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:45:05' and `end` < '2025-01-07 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:45:18] Production.INFO: count ==543 [2025-01-07 08:45:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:45:05 - End Time 2025-01-07 08:45:05 [2025-01-07 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193763', 'tblTempUsageDetail_20' ) start [2025-01-07 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193763', 'tblTempUsageDetail_20' ) end [2025-01-07 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193763', 'tblTempVendorCDR_20' ) start [2025-01-07 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193763', 'tblTempVendorCDR_20' ) end [2025-01-07 08:45:18] Production.INFO: ProcessCDR(1,14193763,1,1,2) [2025-01-07 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193763', 'tblTempUsageDetail_20' ) start [2025-01-07 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193763', 'tblTempUsageDetail_20' ) end [2025-01-07 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:45:21] Production.INFO: ==23062== Releasing lock... [2025-01-07 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:45:21] Production.INFO: 33 MB #Memory Used# [2025-01-07 08:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:46:06 [end_date_ymd] => 2025-01-07 08:46:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 05:46:06' and `end` < '2025-01-07 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-01-07 08:46:18] Production.INFO: count ==543 [2025-01-07 08:46:19] Production.ERROR: pbx CDR StartTime 2025-01-07 05:46:06 - End Time 2025-01-07 08:46:06 [2025-01-07 08:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193768', 'tblTempUsageDetail_20' ) start [2025-01-07 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193768', 'tblTempUsageDetail_20' ) end [2025-01-07 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193768', 'tblTempVendorCDR_20' ) start [2025-01-07 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193768', 'tblTempVendorCDR_20' ) end [2025-01-07 08:46:19] Production.INFO: ProcessCDR(1,14193768,1,1,2) [2025-01-07 08:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193768', 'tblTempUsageDetail_20' ) start [2025-01-07 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193768', 'tblTempUsageDetail_20' ) end [2025-01-07 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:46:22] Production.INFO: ==23133== Releasing lock... [2025-01-07 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:46:22] Production.INFO: 33 MB #Memory Used# [2025-01-07 08:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:47:04 [end_date_ymd] => 2025-01-07 08:47:04 [RateCDR] => 1 ) [2025-01-07 08:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:47:04' and `end` < '2025-01-07 08:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:47:17] Production.INFO: count ==546 [2025-01-07 08:47:17] Production.ERROR: pbx CDR StartTime 2025-01-07 05:47:04 - End Time 2025-01-07 08:47:04 [2025-01-07 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193769', 'tblTempUsageDetail_20' ) start [2025-01-07 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193769', 'tblTempUsageDetail_20' ) end [2025-01-07 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193769', 'tblTempVendorCDR_20' ) start [2025-01-07 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193769', 'tblTempVendorCDR_20' ) end [2025-01-07 08:47:17] Production.INFO: ProcessCDR(1,14193769,1,1,2) [2025-01-07 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193769', 'tblTempUsageDetail_20' ) start [2025-01-07 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193769', 'tblTempUsageDetail_20' ) end [2025-01-07 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:47:22] Production.INFO: ==23210== Releasing lock... [2025-01-07 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:47:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-07 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:48:05 [end_date_ymd] => 2025-01-07 08:48:05 [RateCDR] => 1 ) [2025-01-07 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:48:05' and `end` < '2025-01-07 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:48:18] Production.INFO: count ==553 [2025-01-07 08:48:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:48:05 - End Time 2025-01-07 08:48:05 [2025-01-07 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193778', 'tblTempUsageDetail_20' ) start [2025-01-07 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193778', 'tblTempUsageDetail_20' ) end [2025-01-07 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193778', 'tblTempVendorCDR_20' ) start [2025-01-07 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193778', 'tblTempVendorCDR_20' ) end [2025-01-07 08:48:18] Production.INFO: ProcessCDR(1,14193778,1,1,2) [2025-01-07 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193778', 'tblTempUsageDetail_20' ) start [2025-01-07 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193778', 'tblTempUsageDetail_20' ) end [2025-01-07 08:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:48:21] Production.INFO: ==23283== Releasing lock... [2025-01-07 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:48:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-07 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:49:05 [end_date_ymd] => 2025-01-07 08:49:05 [RateCDR] => 1 ) [2025-01-07 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:49:05' and `end` < '2025-01-07 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:49:19] Production.INFO: count ==554 [2025-01-07 08:49:19] Production.ERROR: pbx CDR StartTime 2025-01-07 05:49:05 - End Time 2025-01-07 08:49:05 [2025-01-07 08:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193783', 'tblTempUsageDetail_20' ) start [2025-01-07 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193783', 'tblTempUsageDetail_20' ) end [2025-01-07 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193783', 'tblTempVendorCDR_20' ) start [2025-01-07 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193783', 'tblTempVendorCDR_20' ) end [2025-01-07 08:49:19] Production.INFO: ProcessCDR(1,14193783,1,1,2) [2025-01-07 08:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193783', 'tblTempUsageDetail_20' ) start [2025-01-07 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193783', 'tblTempUsageDetail_20' ) end [2025-01-07 08:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:49:23] Production.INFO: ==23356== Releasing lock... [2025-01-07 08:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:49:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-07 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:50:06 [end_date_ymd] => 2025-01-07 08:50:06 [RateCDR] => 1 ) [2025-01-07 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:50:06' and `end` < '2025-01-07 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:50:19] Production.INFO: count ==573 [2025-01-07 08:50:19] Production.ERROR: pbx CDR StartTime 2025-01-07 05:50:06 - End Time 2025-01-07 08:50:06 [2025-01-07 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193789', 'tblTempUsageDetail_20' ) start [2025-01-07 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193789', 'tblTempUsageDetail_20' ) end [2025-01-07 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193789', 'tblTempVendorCDR_20' ) start [2025-01-07 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193789', 'tblTempVendorCDR_20' ) end [2025-01-07 08:50:19] Production.INFO: ProcessCDR(1,14193789,1,1,2) [2025-01-07 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193789', 'tblTempUsageDetail_20' ) start [2025-01-07 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193789', 'tblTempUsageDetail_20' ) end [2025-01-07 08:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:50:24] Production.INFO: ==23441== Releasing lock... [2025-01-07 08:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:50:24] Production.INFO: 32.75 MB #Memory Used# [2025-01-07 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:51:05 [end_date_ymd] => 2025-01-07 08:51:05 [RateCDR] => 1 ) [2025-01-07 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:51:05' and `end` < '2025-01-07 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:51:19] Production.INFO: count ==602 [2025-01-07 08:51:19] Production.ERROR: pbx CDR StartTime 2025-01-07 05:51:05 - End Time 2025-01-07 08:51:05 [2025-01-07 08:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193794', 'tblTempUsageDetail_20' ) start [2025-01-07 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193794', 'tblTempUsageDetail_20' ) end [2025-01-07 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193794', 'tblTempVendorCDR_20' ) start [2025-01-07 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193794', 'tblTempVendorCDR_20' ) end [2025-01-07 08:51:19] Production.INFO: ProcessCDR(1,14193794,1,1,2) [2025-01-07 08:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193794', 'tblTempUsageDetail_20' ) start [2025-01-07 08:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193794', 'tblTempUsageDetail_20' ) end [2025-01-07 08:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:51:24] Production.INFO: ==23517== Releasing lock... [2025-01-07 08:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:51:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-07 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:52:05 [end_date_ymd] => 2025-01-07 08:52:05 [RateCDR] => 1 ) [2025-01-07 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:52:05' and `end` < '2025-01-07 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:52:18] Production.INFO: count ==625 [2025-01-07 08:52:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:52:05 - End Time 2025-01-07 08:52:05 [2025-01-07 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193799', 'tblTempUsageDetail_20' ) start [2025-01-07 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193799', 'tblTempUsageDetail_20' ) end [2025-01-07 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193799', 'tblTempVendorCDR_20' ) start [2025-01-07 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193799', 'tblTempVendorCDR_20' ) end [2025-01-07 08:52:18] Production.INFO: ProcessCDR(1,14193799,1,1,2) [2025-01-07 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193799', 'tblTempUsageDetail_20' ) start [2025-01-07 08:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193799', 'tblTempUsageDetail_20' ) end [2025-01-07 08:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:52:24] Production.INFO: ==23592== Releasing lock... [2025-01-07 08:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:52:24] Production.INFO: 33.75 MB #Memory Used# [2025-01-07 08:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:53:04 [end_date_ymd] => 2025-01-07 08:53:04 [RateCDR] => 1 ) [2025-01-07 08:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:53:04' and `end` < '2025-01-07 08:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:53:17] Production.INFO: count ==629 [2025-01-07 08:53:17] Production.ERROR: pbx CDR StartTime 2025-01-07 05:53:04 - End Time 2025-01-07 08:53:04 [2025-01-07 08:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193804', 'tblTempUsageDetail_20' ) start [2025-01-07 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193804', 'tblTempUsageDetail_20' ) end [2025-01-07 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193804', 'tblTempVendorCDR_20' ) start [2025-01-07 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193804', 'tblTempVendorCDR_20' ) end [2025-01-07 08:53:18] Production.INFO: ProcessCDR(1,14193804,1,1,2) [2025-01-07 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193804', 'tblTempUsageDetail_20' ) start [2025-01-07 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193804', 'tblTempUsageDetail_20' ) end [2025-01-07 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:53:22] Production.INFO: ==23670== Releasing lock... [2025-01-07 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:53:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-07 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:54:05 [end_date_ymd] => 2025-01-07 08:54:05 [RateCDR] => 1 ) [2025-01-07 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:54:05' and `end` < '2025-01-07 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:54:18] Production.INFO: count ==632 [2025-01-07 08:54:19] Production.ERROR: pbx CDR StartTime 2025-01-07 05:54:05 - End Time 2025-01-07 08:54:05 [2025-01-07 08:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193809', 'tblTempUsageDetail_20' ) start [2025-01-07 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193809', 'tblTempUsageDetail_20' ) end [2025-01-07 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193809', 'tblTempVendorCDR_20' ) start [2025-01-07 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193809', 'tblTempVendorCDR_20' ) end [2025-01-07 08:54:19] Production.INFO: ProcessCDR(1,14193809,1,1,2) [2025-01-07 08:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193809', 'tblTempUsageDetail_20' ) start [2025-01-07 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193809', 'tblTempUsageDetail_20' ) end [2025-01-07 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:54:23] Production.INFO: ==23742== Releasing lock... [2025-01-07 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:54:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-07 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:55:05 [end_date_ymd] => 2025-01-07 08:55:05 [RateCDR] => 1 ) [2025-01-07 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:55:05' and `end` < '2025-01-07 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:55:18] Production.INFO: count ==632 [2025-01-07 08:55:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:55:05 - End Time 2025-01-07 08:55:05 [2025-01-07 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193814', 'tblTempUsageDetail_20' ) start [2025-01-07 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193814', 'tblTempUsageDetail_20' ) end [2025-01-07 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193814', 'tblTempVendorCDR_20' ) start [2025-01-07 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193814', 'tblTempVendorCDR_20' ) end [2025-01-07 08:55:18] Production.INFO: ProcessCDR(1,14193814,1,1,2) [2025-01-07 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193814', 'tblTempUsageDetail_20' ) start [2025-01-07 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193814', 'tblTempUsageDetail_20' ) end [2025-01-07 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:55:21] Production.INFO: ==23821== Releasing lock... [2025-01-07 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:55:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-07 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:56:05 [end_date_ymd] => 2025-01-07 08:56:05 [RateCDR] => 1 ) [2025-01-07 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:56:05' and `end` < '2025-01-07 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:56:18] Production.INFO: count ==636 [2025-01-07 08:56:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:56:05 - End Time 2025-01-07 08:56:05 [2025-01-07 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193819', 'tblTempUsageDetail_20' ) start [2025-01-07 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193819', 'tblTempUsageDetail_20' ) end [2025-01-07 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193819', 'tblTempVendorCDR_20' ) start [2025-01-07 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193819', 'tblTempVendorCDR_20' ) end [2025-01-07 08:56:18] Production.INFO: ProcessCDR(1,14193819,1,1,2) [2025-01-07 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193819', 'tblTempUsageDetail_20' ) start [2025-01-07 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193819', 'tblTempUsageDetail_20' ) end [2025-01-07 08:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:56:21] Production.INFO: ==23900== Releasing lock... [2025-01-07 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:56:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-07 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:57:05 [end_date_ymd] => 2025-01-07 08:57:05 [RateCDR] => 1 ) [2025-01-07 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:57:05' and `end` < '2025-01-07 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:57:18] Production.INFO: count ==641 [2025-01-07 08:57:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:57:05 - End Time 2025-01-07 08:57:05 [2025-01-07 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193824', 'tblTempUsageDetail_20' ) start [2025-01-07 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193824', 'tblTempUsageDetail_20' ) end [2025-01-07 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193824', 'tblTempVendorCDR_20' ) start [2025-01-07 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193824', 'tblTempVendorCDR_20' ) end [2025-01-07 08:57:18] Production.INFO: ProcessCDR(1,14193824,1,1,2) [2025-01-07 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193824', 'tblTempUsageDetail_20' ) start [2025-01-07 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193824', 'tblTempUsageDetail_20' ) end [2025-01-07 08:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:57:23] Production.INFO: ==23979== Releasing lock... [2025-01-07 08:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:57:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-07 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:58:05 [end_date_ymd] => 2025-01-07 08:58:05 [RateCDR] => 1 ) [2025-01-07 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:58:05' and `end` < '2025-01-07 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:58:17] Production.INFO: count ==642 [2025-01-07 08:58:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:58:05 - End Time 2025-01-07 08:58:05 [2025-01-07 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193829', 'tblTempUsageDetail_20' ) start [2025-01-07 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193829', 'tblTempUsageDetail_20' ) end [2025-01-07 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193829', 'tblTempVendorCDR_20' ) start [2025-01-07 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193829', 'tblTempVendorCDR_20' ) end [2025-01-07 08:58:18] Production.INFO: ProcessCDR(1,14193829,1,1,2) [2025-01-07 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193829', 'tblTempUsageDetail_20' ) start [2025-01-07 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193829', 'tblTempUsageDetail_20' ) end [2025-01-07 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:58:21] Production.INFO: ==24090== Releasing lock... [2025-01-07 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:58:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-07 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 05:59:05 [end_date_ymd] => 2025-01-07 08:59:05 [RateCDR] => 1 ) [2025-01-07 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 05:59:05' and `end` < '2025-01-07 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 08:59:18] Production.INFO: count ==642 [2025-01-07 08:59:18] Production.ERROR: pbx CDR StartTime 2025-01-07 05:59:05 - End Time 2025-01-07 08:59:05 [2025-01-07 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193834', 'tblTempUsageDetail_20' ) start [2025-01-07 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193834', 'tblTempUsageDetail_20' ) end [2025-01-07 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193834', 'tblTempVendorCDR_20' ) start [2025-01-07 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193834', 'tblTempVendorCDR_20' ) end [2025-01-07 08:59:18] Production.INFO: ProcessCDR(1,14193834,1,1,2) [2025-01-07 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193834', 'tblTempUsageDetail_20' ) start [2025-01-07 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193834', 'tblTempUsageDetail_20' ) end [2025-01-07 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 08:59:21] Production.INFO: ==24162== Releasing lock... [2025-01-07 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 08:59:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-07 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:00:06 [end_date_ymd] => 2025-01-07 09:00:06 [RateCDR] => 1 ) [2025-01-07 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:00:06' and `end` < '2025-01-07 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:00:19] Production.INFO: count ==657 [2025-01-07 09:00:19] Production.ERROR: pbx CDR StartTime 2025-01-07 06:00:06 - End Time 2025-01-07 09:00:06 [2025-01-07 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193840', 'tblTempUsageDetail_20' ) start [2025-01-07 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193840', 'tblTempUsageDetail_20' ) end [2025-01-07 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193840', 'tblTempVendorCDR_20' ) start [2025-01-07 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193840', 'tblTempVendorCDR_20' ) end [2025-01-07 09:00:19] Production.INFO: ProcessCDR(1,14193840,1,1,2) [2025-01-07 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193840', 'tblTempUsageDetail_20' ) start [2025-01-07 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193840', 'tblTempUsageDetail_20' ) end [2025-01-07 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:00:24] Production.INFO: ==24247== Releasing lock... [2025-01-07 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:00:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-07 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:01:05 [end_date_ymd] => 2025-01-07 09:01:05 [RateCDR] => 1 ) [2025-01-07 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:01:05' and `end` < '2025-01-07 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:01:18] Production.INFO: count ==699 [2025-01-07 09:01:18] Production.ERROR: pbx CDR StartTime 2025-01-07 06:01:05 - End Time 2025-01-07 09:01:05 [2025-01-07 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193845', 'tblTempUsageDetail_20' ) start [2025-01-07 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193845', 'tblTempUsageDetail_20' ) end [2025-01-07 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193845', 'tblTempVendorCDR_20' ) start [2025-01-07 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193845', 'tblTempVendorCDR_20' ) end [2025-01-07 09:01:18] Production.INFO: ProcessCDR(1,14193845,1,1,2) [2025-01-07 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193845', 'tblTempUsageDetail_20' ) start [2025-01-07 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193845', 'tblTempUsageDetail_20' ) end [2025-01-07 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:01:23] Production.INFO: ==24333== Releasing lock... [2025-01-07 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:01:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-07 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:02:05 [end_date_ymd] => 2025-01-07 09:02:05 [RateCDR] => 1 ) [2025-01-07 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:02:05' and `end` < '2025-01-07 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:02:21] Production.INFO: count ==753 [2025-01-07 09:02:21] Production.ERROR: pbx CDR StartTime 2025-01-07 06:02:05 - End Time 2025-01-07 09:02:05 [2025-01-07 09:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193850', 'tblTempUsageDetail_20' ) start [2025-01-07 09:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193850', 'tblTempUsageDetail_20' ) end [2025-01-07 09:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193850', 'tblTempVendorCDR_20' ) start [2025-01-07 09:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193850', 'tblTempVendorCDR_20' ) end [2025-01-07 09:02:21] Production.INFO: ProcessCDR(1,14193850,1,1,2) [2025-01-07 09:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193850', 'tblTempUsageDetail_20' ) start [2025-01-07 09:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193850', 'tblTempUsageDetail_20' ) end [2025-01-07 09:02:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:02:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:02:26] Production.INFO: ==24414== Releasing lock... [2025-01-07 09:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:02:26] Production.INFO: 34.5 MB #Memory Used# [2025-01-07 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:03:05 [end_date_ymd] => 2025-01-07 09:03:05 [RateCDR] => 1 ) [2025-01-07 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:03:05' and `end` < '2025-01-07 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:03:18] Production.INFO: count ==780 [2025-01-07 09:03:18] Production.ERROR: pbx CDR StartTime 2025-01-07 06:03:05 - End Time 2025-01-07 09:03:05 [2025-01-07 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193855', 'tblTempUsageDetail_20' ) start [2025-01-07 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193855', 'tblTempUsageDetail_20' ) end [2025-01-07 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193855', 'tblTempVendorCDR_20' ) start [2025-01-07 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193855', 'tblTempVendorCDR_20' ) end [2025-01-07 09:03:18] Production.INFO: ProcessCDR(1,14193855,1,1,2) [2025-01-07 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193855', 'tblTempUsageDetail_20' ) start [2025-01-07 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193855', 'tblTempUsageDetail_20' ) end [2025-01-07 09:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:03:23] Production.INFO: ==24486== Releasing lock... [2025-01-07 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:03:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-07 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:04:05 [end_date_ymd] => 2025-01-07 09:04:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 06:04:05' and `end` < '2025-01-07 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:04:20] Production.INFO: count ==785 [2025-01-07 09:04:20] Production.ERROR: pbx CDR StartTime 2025-01-07 06:04:05 - End Time 2025-01-07 09:04:05 [2025-01-07 09:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193860', 'tblTempUsageDetail_20' ) start [2025-01-07 09:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193860', 'tblTempUsageDetail_20' ) end [2025-01-07 09:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193860', 'tblTempVendorCDR_20' ) start [2025-01-07 09:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193860', 'tblTempVendorCDR_20' ) end [2025-01-07 09:04:20] Production.INFO: ProcessCDR(1,14193860,1,1,2) [2025-01-07 09:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193860', 'tblTempUsageDetail_20' ) start [2025-01-07 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193860', 'tblTempUsageDetail_20' ) end [2025-01-07 09:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:04:24] Production.INFO: ==24558== Releasing lock... [2025-01-07 09:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:04:24] Production.INFO: 34.25 MB #Memory Used# [2025-01-07 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:05:05 [end_date_ymd] => 2025-01-07 09:05:05 [RateCDR] => 1 ) [2025-01-07 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:05:05' and `end` < '2025-01-07 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:05:18] Production.INFO: count ==788 [2025-01-07 09:05:18] Production.ERROR: pbx CDR StartTime 2025-01-07 06:05:05 - End Time 2025-01-07 09:05:05 [2025-01-07 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193865', 'tblTempUsageDetail_20' ) start [2025-01-07 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193865', 'tblTempUsageDetail_20' ) end [2025-01-07 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193865', 'tblTempVendorCDR_20' ) start [2025-01-07 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193865', 'tblTempVendorCDR_20' ) end [2025-01-07 09:05:18] Production.INFO: ProcessCDR(1,14193865,1,1,2) [2025-01-07 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193865', 'tblTempUsageDetail_20' ) start [2025-01-07 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193865', 'tblTempUsageDetail_20' ) end [2025-01-07 09:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:05:22] Production.INFO: ==24630== Releasing lock... [2025-01-07 09:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:05:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-07 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:06:05 [end_date_ymd] => 2025-01-07 09:06:05 [RateCDR] => 1 ) [2025-01-07 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:06:05' and `end` < '2025-01-07 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:06:18] Production.INFO: count ==799 [2025-01-07 09:06:18] Production.ERROR: pbx CDR StartTime 2025-01-07 06:06:05 - End Time 2025-01-07 09:06:05 [2025-01-07 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193870', 'tblTempUsageDetail_20' ) start [2025-01-07 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193870', 'tblTempUsageDetail_20' ) end [2025-01-07 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193870', 'tblTempVendorCDR_20' ) start [2025-01-07 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193870', 'tblTempVendorCDR_20' ) end [2025-01-07 09:06:18] Production.INFO: ProcessCDR(1,14193870,1,1,2) [2025-01-07 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193870', 'tblTempUsageDetail_20' ) start [2025-01-07 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193870', 'tblTempUsageDetail_20' ) end [2025-01-07 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:06:23] Production.INFO: ==24711== Releasing lock... [2025-01-07 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:06:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-07 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:07:05 [end_date_ymd] => 2025-01-07 09:07:05 [RateCDR] => 1 ) [2025-01-07 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:07:05' and `end` < '2025-01-07 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:07:18] Production.INFO: count ==818 [2025-01-07 09:07:19] Production.ERROR: pbx CDR StartTime 2025-01-07 06:07:05 - End Time 2025-01-07 09:07:05 [2025-01-07 09:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193875', 'tblTempUsageDetail_20' ) start [2025-01-07 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193875', 'tblTempUsageDetail_20' ) end [2025-01-07 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193875', 'tblTempVendorCDR_20' ) start [2025-01-07 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193875', 'tblTempVendorCDR_20' ) end [2025-01-07 09:07:19] Production.INFO: ProcessCDR(1,14193875,1,1,2) [2025-01-07 09:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193875', 'tblTempUsageDetail_20' ) start [2025-01-07 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193875', 'tblTempUsageDetail_20' ) end [2025-01-07 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:07:23] Production.INFO: ==24786== Releasing lock... [2025-01-07 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:07:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-07 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:08:05 [end_date_ymd] => 2025-01-07 09:08:05 [RateCDR] => 1 ) [2025-01-07 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:08:05' and `end` < '2025-01-07 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:08:18] Production.INFO: count ==830 [2025-01-07 09:08:19] Production.ERROR: pbx CDR StartTime 2025-01-07 06:08:05 - End Time 2025-01-07 09:08:05 [2025-01-07 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193880', 'tblTempUsageDetail_20' ) start [2025-01-07 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193880', 'tblTempUsageDetail_20' ) end [2025-01-07 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193880', 'tblTempVendorCDR_20' ) start [2025-01-07 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193880', 'tblTempVendorCDR_20' ) end [2025-01-07 09:08:19] Production.INFO: ProcessCDR(1,14193880,1,1,2) [2025-01-07 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193880', 'tblTempUsageDetail_20' ) start [2025-01-07 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193880', 'tblTempUsageDetail_20' ) end [2025-01-07 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:08:23] Production.INFO: ==24864== Releasing lock... [2025-01-07 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:08:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-07 09:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:09:06 [end_date_ymd] => 2025-01-07 09:09:06 [RateCDR] => 1 ) [2025-01-07 09:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:09:06' and `end` < '2025-01-07 09:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:09:18] Production.INFO: count ==832 [2025-01-07 09:09:19] Production.ERROR: pbx CDR StartTime 2025-01-07 06:09:06 - End Time 2025-01-07 09:09:06 [2025-01-07 09:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193885', 'tblTempUsageDetail_20' ) start [2025-01-07 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193885', 'tblTempUsageDetail_20' ) end [2025-01-07 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193885', 'tblTempVendorCDR_20' ) start [2025-01-07 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193885', 'tblTempVendorCDR_20' ) end [2025-01-07 09:09:19] Production.INFO: ProcessCDR(1,14193885,1,1,2) [2025-01-07 09:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193885', 'tblTempUsageDetail_20' ) start [2025-01-07 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193885', 'tblTempUsageDetail_20' ) end [2025-01-07 09:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:09:24] Production.INFO: ==24939== Releasing lock... [2025-01-07 09:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:09:24] Production.INFO: 34.75 MB #Memory Used# [2025-01-07 09:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:10:05 [end_date_ymd] => 2025-01-07 09:10:05 [RateCDR] => 1 ) [2025-01-07 09:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:10:05' and `end` < '2025-01-07 09:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:10:18] Production.INFO: count ==847 [2025-01-07 09:10:18] Production.ERROR: pbx CDR StartTime 2025-01-07 06:10:05 - End Time 2025-01-07 09:10:05 [2025-01-07 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193891', 'tblTempUsageDetail_20' ) start [2025-01-07 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193891', 'tblTempUsageDetail_20' ) end [2025-01-07 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193891', 'tblTempVendorCDR_20' ) start [2025-01-07 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193891', 'tblTempVendorCDR_20' ) end [2025-01-07 09:10:18] Production.INFO: ProcessCDR(1,14193891,1,1,2) [2025-01-07 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193891', 'tblTempUsageDetail_20' ) start [2025-01-07 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193891', 'tblTempUsageDetail_20' ) end [2025-01-07 09:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:10:23] Production.INFO: ==25016== Releasing lock... [2025-01-07 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:10:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-07 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:11:05 [end_date_ymd] => 2025-01-07 09:11:05 [RateCDR] => 1 ) [2025-01-07 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:11:05' and `end` < '2025-01-07 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:11:19] Production.INFO: count ==945 [2025-01-07 09:11:19] Production.ERROR: pbx CDR StartTime 2025-01-07 06:11:05 - End Time 2025-01-07 09:11:05 [2025-01-07 09:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193896', 'tblTempUsageDetail_20' ) start [2025-01-07 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193896', 'tblTempUsageDetail_20' ) end [2025-01-07 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193896', 'tblTempVendorCDR_20' ) start [2025-01-07 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193896', 'tblTempVendorCDR_20' ) end [2025-01-07 09:11:19] Production.INFO: ProcessCDR(1,14193896,1,1,2) [2025-01-07 09:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193896', 'tblTempUsageDetail_20' ) start [2025-01-07 09:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193896', 'tblTempUsageDetail_20' ) end [2025-01-07 09:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:11:24] Production.INFO: ==25091== Releasing lock... [2025-01-07 09:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:11:24] Production.INFO: 35.75 MB #Memory Used# [2025-01-07 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:12:06 [end_date_ymd] => 2025-01-07 09:12:06 [RateCDR] => 1 ) [2025-01-07 09:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:12:06' and `end` < '2025-01-07 09:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:12:19] Production.INFO: count ==956 [2025-01-07 09:12:19] Production.ERROR: pbx CDR StartTime 2025-01-07 06:12:06 - End Time 2025-01-07 09:12:06 [2025-01-07 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193901', 'tblTempUsageDetail_20' ) start [2025-01-07 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193901', 'tblTempUsageDetail_20' ) end [2025-01-07 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193901', 'tblTempVendorCDR_20' ) start [2025-01-07 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193901', 'tblTempVendorCDR_20' ) end [2025-01-07 09:12:19] Production.INFO: ProcessCDR(1,14193901,1,1,2) [2025-01-07 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193901', 'tblTempUsageDetail_20' ) start [2025-01-07 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193901', 'tblTempUsageDetail_20' ) end [2025-01-07 09:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:12:22] Production.INFO: ==25170== Releasing lock... [2025-01-07 09:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:12:22] Production.INFO: 36 MB #Memory Used# [2025-01-07 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:13:05 [end_date_ymd] => 2025-01-07 09:13:05 [RateCDR] => 1 ) [2025-01-07 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:13:05' and `end` < '2025-01-07 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:13:19] Production.INFO: count ==962 [2025-01-07 09:13:19] Production.ERROR: pbx CDR StartTime 2025-01-07 06:13:05 - End Time 2025-01-07 09:13:05 [2025-01-07 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193906', 'tblTempUsageDetail_20' ) start [2025-01-07 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193906', 'tblTempUsageDetail_20' ) end [2025-01-07 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193906', 'tblTempVendorCDR_20' ) start [2025-01-07 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193906', 'tblTempVendorCDR_20' ) end [2025-01-07 09:13:19] Production.INFO: ProcessCDR(1,14193906,1,1,2) [2025-01-07 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193906', 'tblTempUsageDetail_20' ) start [2025-01-07 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193906', 'tblTempUsageDetail_20' ) end [2025-01-07 09:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:13:23] Production.INFO: ==25282== Releasing lock... [2025-01-07 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:13:23] Production.INFO: 36 MB #Memory Used# [2025-01-07 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:14:05 [end_date_ymd] => 2025-01-07 09:14:05 [RateCDR] => 1 ) [2025-01-07 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:14:05' and `end` < '2025-01-07 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:14:20] Production.INFO: count ==978 [2025-01-07 09:14:21] Production.ERROR: pbx CDR StartTime 2025-01-07 06:14:05 - End Time 2025-01-07 09:14:05 [2025-01-07 09:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193911', 'tblTempUsageDetail_20' ) start [2025-01-07 09:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193911', 'tblTempUsageDetail_20' ) end [2025-01-07 09:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193911', 'tblTempVendorCDR_20' ) start [2025-01-07 09:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193911', 'tblTempVendorCDR_20' ) end [2025-01-07 09:14:21] Production.INFO: ProcessCDR(1,14193911,1,1,2) [2025-01-07 09:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193911', 'tblTempUsageDetail_20' ) start [2025-01-07 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193911', 'tblTempUsageDetail_20' ) end [2025-01-07 09:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:14:24] Production.INFO: ==25366== Releasing lock... [2025-01-07 09:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:14:24] Production.INFO: 36 MB #Memory Used# [2025-01-07 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:15:04 [end_date_ymd] => 2025-01-07 09:15:04 [RateCDR] => 1 ) [2025-01-07 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:15:04' and `end` < '2025-01-07 09:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:15:18] Production.INFO: count ==985 [2025-01-07 09:15:18] Production.ERROR: pbx CDR StartTime 2025-01-07 06:15:04 - End Time 2025-01-07 09:15:04 [2025-01-07 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193914', 'tblTempUsageDetail_20' ) start [2025-01-07 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193914', 'tblTempUsageDetail_20' ) end [2025-01-07 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193914', 'tblTempVendorCDR_20' ) start [2025-01-07 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193914', 'tblTempVendorCDR_20' ) end [2025-01-07 09:15:18] Production.INFO: ProcessCDR(1,14193914,1,1,2) [2025-01-07 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193914', 'tblTempUsageDetail_20' ) start [2025-01-07 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193914', 'tblTempUsageDetail_20' ) end [2025-01-07 09:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:15:23] Production.INFO: ==25440== Releasing lock... [2025-01-07 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:15:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-07 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:16:05 [end_date_ymd] => 2025-01-07 09:16:05 [RateCDR] => 1 ) [2025-01-07 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:16:05' and `end` < '2025-01-07 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:16:19] Production.INFO: count ==993 [2025-01-07 09:16:19] Production.ERROR: pbx CDR StartTime 2025-01-07 06:16:05 - End Time 2025-01-07 09:16:05 [2025-01-07 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193921', 'tblTempUsageDetail_20' ) start [2025-01-07 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193921', 'tblTempUsageDetail_20' ) end [2025-01-07 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193921', 'tblTempVendorCDR_20' ) start [2025-01-07 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193921', 'tblTempVendorCDR_20' ) end [2025-01-07 09:16:19] Production.INFO: ProcessCDR(1,14193921,1,1,2) [2025-01-07 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193921', 'tblTempUsageDetail_20' ) start [2025-01-07 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193921', 'tblTempUsageDetail_20' ) end [2025-01-07 09:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:16:23] Production.INFO: ==25517== Releasing lock... [2025-01-07 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:16:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-07 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:17:05 [end_date_ymd] => 2025-01-07 09:17:05 [RateCDR] => 1 ) [2025-01-07 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:17:05' and `end` < '2025-01-07 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:17:18] Production.INFO: count ==1002 [2025-01-07 09:17:18] Production.ERROR: pbx CDR StartTime 2025-01-07 06:17:05 - End Time 2025-01-07 09:17:05 [2025-01-07 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193926', 'tblTempUsageDetail_20' ) start [2025-01-07 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193926', 'tblTempUsageDetail_20' ) end [2025-01-07 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193926', 'tblTempVendorCDR_20' ) start [2025-01-07 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193926', 'tblTempVendorCDR_20' ) end [2025-01-07 09:17:18] Production.INFO: ProcessCDR(1,14193926,1,1,2) [2025-01-07 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193926', 'tblTempUsageDetail_20' ) start [2025-01-07 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193926', 'tblTempUsageDetail_20' ) end [2025-01-07 09:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:17:23] Production.INFO: ==25595== Releasing lock... [2025-01-07 09:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:17:23] Production.INFO: 36 MB #Memory Used# [2025-01-07 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:18:06 [end_date_ymd] => 2025-01-07 09:18:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 06:18:06' and `end` < '2025-01-07 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-01-07 09:18:19] Production.INFO: count ==1004 [2025-01-07 09:18:19] Production.ERROR: pbx CDR StartTime 2025-01-07 06:18:06 - End Time 2025-01-07 09:18:06 [2025-01-07 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193931', 'tblTempUsageDetail_20' ) start [2025-01-07 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193931', 'tblTempUsageDetail_20' ) end [2025-01-07 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193931', 'tblTempVendorCDR_20' ) start [2025-01-07 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193931', 'tblTempVendorCDR_20' ) end [2025-01-07 09:18:19] Production.INFO: ProcessCDR(1,14193931,1,1,2) [2025-01-07 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193931', 'tblTempUsageDetail_20' ) start [2025-01-07 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193931', 'tblTempUsageDetail_20' ) end [2025-01-07 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:18:24] Production.INFO: ==25668== Releasing lock... [2025-01-07 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:18:24] Production.INFO: 36 MB #Memory Used# [2025-01-07 09:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:19:04 [end_date_ymd] => 2025-01-07 09:19:04 [RateCDR] => 1 ) [2025-01-07 09:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:19:04' and `end` < '2025-01-07 09:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:19:17] Production.INFO: count ==1029 [2025-01-07 09:19:18] Production.ERROR: pbx CDR StartTime 2025-01-07 06:19:04 - End Time 2025-01-07 09:19:04 [2025-01-07 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193936', 'tblTempUsageDetail_20' ) start [2025-01-07 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193936', 'tblTempUsageDetail_20' ) end [2025-01-07 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193936', 'tblTempVendorCDR_20' ) start [2025-01-07 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193936', 'tblTempVendorCDR_20' ) end [2025-01-07 09:19:18] Production.INFO: ProcessCDR(1,14193936,1,1,2) [2025-01-07 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193936', 'tblTempUsageDetail_20' ) start [2025-01-07 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193936', 'tblTempUsageDetail_20' ) end [2025-01-07 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:19:23] Production.INFO: ==25748== Releasing lock... [2025-01-07 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:19:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-07 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:20:05 [end_date_ymd] => 2025-01-07 09:20:05 [RateCDR] => 1 ) [2025-01-07 09:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:20:05' and `end` < '2025-01-07 09:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:20:18] Production.INFO: count ==1052 [2025-01-07 09:20:19] Production.ERROR: pbx CDR StartTime 2025-01-07 06:20:05 - End Time 2025-01-07 09:20:05 [2025-01-07 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193941', 'tblTempUsageDetail_20' ) start [2025-01-07 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193941', 'tblTempUsageDetail_20' ) end [2025-01-07 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193941', 'tblTempVendorCDR_20' ) start [2025-01-07 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193941', 'tblTempVendorCDR_20' ) end [2025-01-07 09:20:19] Production.INFO: ProcessCDR(1,14193941,1,1,2) [2025-01-07 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193941', 'tblTempUsageDetail_20' ) start [2025-01-07 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193941', 'tblTempUsageDetail_20' ) end [2025-01-07 09:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:20:24] Production.INFO: ==25820== Releasing lock... [2025-01-07 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:20:24] Production.INFO: 36.5 MB #Memory Used# [2025-01-07 09:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:21:06 [end_date_ymd] => 2025-01-07 09:21:06 [RateCDR] => 1 ) [2025-01-07 09:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:21:06' and `end` < '2025-01-07 09:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:21:19] Production.INFO: count ==1107 [2025-01-07 09:21:19] Production.ERROR: pbx CDR StartTime 2025-01-07 06:21:06 - End Time 2025-01-07 09:21:06 [2025-01-07 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193947', 'tblTempUsageDetail_20' ) start [2025-01-07 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193947', 'tblTempUsageDetail_20' ) end [2025-01-07 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193947', 'tblTempVendorCDR_20' ) start [2025-01-07 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193947', 'tblTempVendorCDR_20' ) end [2025-01-07 09:21:19] Production.INFO: ProcessCDR(1,14193947,1,1,2) [2025-01-07 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193947', 'tblTempUsageDetail_20' ) start [2025-01-07 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193947', 'tblTempUsageDetail_20' ) end [2025-01-07 09:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:21:22] Production.INFO: ==25896== Releasing lock... [2025-01-07 09:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:21:22] Production.INFO: 37 MB #Memory Used# [2025-01-07 09:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:22:04 [end_date_ymd] => 2025-01-07 09:22:04 [RateCDR] => 1 ) [2025-01-07 09:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:22:04' and `end` < '2025-01-07 09:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:22:18] Production.INFO: count ==1109 [2025-01-07 09:22:18] Production.ERROR: pbx CDR StartTime 2025-01-07 06:22:04 - End Time 2025-01-07 09:22:04 [2025-01-07 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193952', 'tblTempUsageDetail_20' ) start [2025-01-07 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193952', 'tblTempUsageDetail_20' ) end [2025-01-07 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193952', 'tblTempVendorCDR_20' ) start [2025-01-07 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193952', 'tblTempVendorCDR_20' ) end [2025-01-07 09:22:18] Production.INFO: ProcessCDR(1,14193952,1,1,2) [2025-01-07 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193952', 'tblTempUsageDetail_20' ) start [2025-01-07 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193952', 'tblTempUsageDetail_20' ) end [2025-01-07 09:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:22:23] Production.INFO: ==25973== Releasing lock... [2025-01-07 09:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:22:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-07 09:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:23:06 [end_date_ymd] => 2025-01-07 09:23:06 [RateCDR] => 1 ) [2025-01-07 09:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:23:06' and `end` < '2025-01-07 09:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:23:19] Production.INFO: count ==1134 [2025-01-07 09:23:19] Production.ERROR: pbx CDR StartTime 2025-01-07 06:23:06 - End Time 2025-01-07 09:23:06 [2025-01-07 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193957', 'tblTempUsageDetail_20' ) start [2025-01-07 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193957', 'tblTempUsageDetail_20' ) end [2025-01-07 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193957', 'tblTempVendorCDR_20' ) start [2025-01-07 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193957', 'tblTempVendorCDR_20' ) end [2025-01-07 09:23:19] Production.INFO: ProcessCDR(1,14193957,1,1,2) [2025-01-07 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193957', 'tblTempUsageDetail_20' ) start [2025-01-07 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193957', 'tblTempUsageDetail_20' ) end [2025-01-07 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:23:24] Production.INFO: ==26047== Releasing lock... [2025-01-07 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:23:24] Production.INFO: 36.75 MB #Memory Used# [2025-01-07 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:24:05 [end_date_ymd] => 2025-01-07 09:24:05 [RateCDR] => 1 ) [2025-01-07 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:24:05' and `end` < '2025-01-07 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:24:18] Production.INFO: count ==1143 [2025-01-07 09:24:18] Production.ERROR: pbx CDR StartTime 2025-01-07 06:24:05 - End Time 2025-01-07 09:24:05 [2025-01-07 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193962', 'tblTempUsageDetail_20' ) start [2025-01-07 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193962', 'tblTempUsageDetail_20' ) end [2025-01-07 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193962', 'tblTempVendorCDR_20' ) start [2025-01-07 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193962', 'tblTempVendorCDR_20' ) end [2025-01-07 09:24:18] Production.INFO: ProcessCDR(1,14193962,1,1,2) [2025-01-07 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193962', 'tblTempUsageDetail_20' ) start [2025-01-07 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193962', 'tblTempUsageDetail_20' ) end [2025-01-07 09:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:24:23] Production.INFO: ==26132== Releasing lock... [2025-01-07 09:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:24:23] Production.INFO: 37 MB #Memory Used# [2025-01-07 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:25:05 [end_date_ymd] => 2025-01-07 09:25:05 [RateCDR] => 1 ) [2025-01-07 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:25:05' and `end` < '2025-01-07 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:25:18] Production.INFO: count ==1149 [2025-01-07 09:25:18] Production.ERROR: pbx CDR StartTime 2025-01-07 06:25:05 - End Time 2025-01-07 09:25:05 [2025-01-07 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193967', 'tblTempUsageDetail_20' ) start [2025-01-07 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193967', 'tblTempUsageDetail_20' ) end [2025-01-07 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193967', 'tblTempVendorCDR_20' ) start [2025-01-07 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193967', 'tblTempVendorCDR_20' ) end [2025-01-07 09:25:18] Production.INFO: ProcessCDR(1,14193967,1,1,2) [2025-01-07 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193967', 'tblTempUsageDetail_20' ) start [2025-01-07 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193967', 'tblTempUsageDetail_20' ) end [2025-01-07 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:25:23] Production.INFO: ==26209== Releasing lock... [2025-01-07 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:25:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-07 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:26:05 [end_date_ymd] => 2025-01-07 09:26:05 [RateCDR] => 1 ) [2025-01-07 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:26:05' and `end` < '2025-01-07 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:26:19] Production.INFO: count ==1159 [2025-01-07 09:26:20] Production.ERROR: pbx CDR StartTime 2025-01-07 06:26:05 - End Time 2025-01-07 09:26:05 [2025-01-07 09:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193972', 'tblTempUsageDetail_20' ) start [2025-01-07 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193972', 'tblTempUsageDetail_20' ) end [2025-01-07 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193972', 'tblTempVendorCDR_20' ) start [2025-01-07 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193972', 'tblTempVendorCDR_20' ) end [2025-01-07 09:26:20] Production.INFO: ProcessCDR(1,14193972,1,1,2) [2025-01-07 09:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193972', 'tblTempUsageDetail_20' ) start [2025-01-07 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193972', 'tblTempUsageDetail_20' ) end [2025-01-07 09:26:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:26:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:26:24] Production.INFO: ==26287== Releasing lock... [2025-01-07 09:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:26:24] Production.INFO: 37.75 MB #Memory Used# [2025-01-07 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:27:05 [end_date_ymd] => 2025-01-07 09:27:05 [RateCDR] => 1 ) [2025-01-07 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:27:05' and `end` < '2025-01-07 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:27:18] Production.INFO: count ==1176 [2025-01-07 09:27:19] Production.ERROR: pbx CDR StartTime 2025-01-07 06:27:05 - End Time 2025-01-07 09:27:05 [2025-01-07 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193977', 'tblTempUsageDetail_20' ) start [2025-01-07 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193977', 'tblTempUsageDetail_20' ) end [2025-01-07 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193977', 'tblTempVendorCDR_20' ) start [2025-01-07 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193977', 'tblTempVendorCDR_20' ) end [2025-01-07 09:27:19] Production.INFO: ProcessCDR(1,14193977,1,1,2) [2025-01-07 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193977', 'tblTempUsageDetail_20' ) start [2025-01-07 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193977', 'tblTempUsageDetail_20' ) end [2025-01-07 09:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:27:23] Production.INFO: ==26360== Releasing lock... [2025-01-07 09:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:27:23] Production.INFO: 37 MB #Memory Used# [2025-01-07 09:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:28:06 [end_date_ymd] => 2025-01-07 09:28:06 [RateCDR] => 1 ) [2025-01-07 09:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:28:06' and `end` < '2025-01-07 09:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:28:20] Production.INFO: count ==1206 [2025-01-07 09:28:21] Production.ERROR: pbx CDR StartTime 2025-01-07 06:28:06 - End Time 2025-01-07 09:28:06 [2025-01-07 09:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193982', 'tblTempUsageDetail_20' ) start [2025-01-07 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193982', 'tblTempUsageDetail_20' ) end [2025-01-07 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193982', 'tblTempVendorCDR_20' ) start [2025-01-07 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193982', 'tblTempVendorCDR_20' ) end [2025-01-07 09:28:21] Production.INFO: ProcessCDR(1,14193982,1,1,2) [2025-01-07 09:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193982', 'tblTempUsageDetail_20' ) start [2025-01-07 09:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193982', 'tblTempUsageDetail_20' ) end [2025-01-07 09:28:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:28:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:28:26] Production.INFO: ==26434== Releasing lock... [2025-01-07 09:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:28:26] Production.INFO: 37.5 MB #Memory Used# [2025-01-07 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:29:05 [end_date_ymd] => 2025-01-07 09:29:05 [RateCDR] => 1 ) [2025-01-07 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:29:05' and `end` < '2025-01-07 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:29:18] Production.INFO: count ==1209 [2025-01-07 09:29:19] Production.ERROR: pbx CDR StartTime 2025-01-07 06:29:05 - End Time 2025-01-07 09:29:05 [2025-01-07 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193987', 'tblTempUsageDetail_20' ) start [2025-01-07 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193987', 'tblTempUsageDetail_20' ) end [2025-01-07 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193987', 'tblTempVendorCDR_20' ) start [2025-01-07 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193987', 'tblTempVendorCDR_20' ) end [2025-01-07 09:29:19] Production.INFO: ProcessCDR(1,14193987,1,1,2) [2025-01-07 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193987', 'tblTempUsageDetail_20' ) start [2025-01-07 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193987', 'tblTempUsageDetail_20' ) end [2025-01-07 09:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:29:23] Production.INFO: ==26544== Releasing lock... [2025-01-07 09:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:29:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-07 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:30:05 [end_date_ymd] => 2025-01-07 09:30:05 [RateCDR] => 1 ) [2025-01-07 09:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:30:05' and `end` < '2025-01-07 09:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:30:21] Production.INFO: count ==1221 [2025-01-07 09:30:21] Production.ERROR: pbx CDR StartTime 2025-01-07 06:30:05 - End Time 2025-01-07 09:30:05 [2025-01-07 09:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193993', 'tblTempUsageDetail_20' ) start [2025-01-07 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193993', 'tblTempUsageDetail_20' ) end [2025-01-07 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193993', 'tblTempVendorCDR_20' ) start [2025-01-07 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193993', 'tblTempVendorCDR_20' ) end [2025-01-07 09:30:21] Production.INFO: ProcessCDR(1,14193993,1,1,2) [2025-01-07 09:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193993', 'tblTempUsageDetail_20' ) start [2025-01-07 09:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193993', 'tblTempUsageDetail_20' ) end [2025-01-07 09:30:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:30:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:30:26] Production.INFO: ==26616== Releasing lock... [2025-01-07 09:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:30:26] Production.INFO: 37.5 MB #Memory Used# [2025-01-07 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:31:05 [end_date_ymd] => 2025-01-07 09:31:05 [RateCDR] => 1 ) [2025-01-07 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:31:05' and `end` < '2025-01-07 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:31:19] Production.INFO: count ==1325 [2025-01-07 09:31:20] Production.ERROR: pbx CDR StartTime 2025-01-07 06:31:05 - End Time 2025-01-07 09:31:05 [2025-01-07 09:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193998', 'tblTempUsageDetail_20' ) start [2025-01-07 09:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14193998', 'tblTempUsageDetail_20' ) end [2025-01-07 09:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193998', 'tblTempVendorCDR_20' ) start [2025-01-07 09:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14193998', 'tblTempVendorCDR_20' ) end [2025-01-07 09:31:20] Production.INFO: ProcessCDR(1,14193998,1,1,2) [2025-01-07 09:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14193998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14193998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14193998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14193998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193998', 'tblTempUsageDetail_20' ) start [2025-01-07 09:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14193998', 'tblTempUsageDetail_20' ) end [2025-01-07 09:31:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:31:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:31:25] Production.INFO: ==26689== Releasing lock... [2025-01-07 09:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:31:25] Production.INFO: 38.25 MB #Memory Used# [2025-01-07 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:32:05 [end_date_ymd] => 2025-01-07 09:32:05 [RateCDR] => 1 ) [2025-01-07 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:32:05' and `end` < '2025-01-07 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:32:20] Production.INFO: count ==1340 [2025-01-07 09:32:21] Production.ERROR: pbx CDR StartTime 2025-01-07 06:32:05 - End Time 2025-01-07 09:32:05 [2025-01-07 09:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194003', 'tblTempUsageDetail_20' ) start [2025-01-07 09:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194003', 'tblTempUsageDetail_20' ) end [2025-01-07 09:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194003', 'tblTempVendorCDR_20' ) start [2025-01-07 09:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194003', 'tblTempVendorCDR_20' ) end [2025-01-07 09:32:21] Production.INFO: ProcessCDR(1,14194003,1,1,2) [2025-01-07 09:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194003', 'tblTempUsageDetail_20' ) start [2025-01-07 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194003', 'tblTempUsageDetail_20' ) end [2025-01-07 09:32:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:32:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:32:26] Production.INFO: ==26760== Releasing lock... [2025-01-07 09:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:32:26] Production.INFO: 38.25 MB #Memory Used# [2025-01-07 09:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:33:06 [end_date_ymd] => 2025-01-07 09:33:06 [RateCDR] => 1 ) [2025-01-07 09:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:33:06' and `end` < '2025-01-07 09:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:33:21] Production.INFO: count ==1345 [2025-01-07 09:33:21] Production.ERROR: pbx CDR StartTime 2025-01-07 06:33:06 - End Time 2025-01-07 09:33:06 [2025-01-07 09:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194008', 'tblTempUsageDetail_20' ) start [2025-01-07 09:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194008', 'tblTempUsageDetail_20' ) end [2025-01-07 09:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194008', 'tblTempVendorCDR_20' ) start [2025-01-07 09:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194008', 'tblTempVendorCDR_20' ) end [2025-01-07 09:33:21] Production.INFO: ProcessCDR(1,14194008,1,1,2) [2025-01-07 09:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194008', 'tblTempUsageDetail_20' ) start [2025-01-07 09:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194008', 'tblTempUsageDetail_20' ) end [2025-01-07 09:33:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:33:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:33:26] Production.INFO: ==26832== Releasing lock... [2025-01-07 09:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:33:26] Production.INFO: 38.25 MB #Memory Used# [2025-01-07 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:34:05 [end_date_ymd] => 2025-01-07 09:34:05 [RateCDR] => 1 ) [2025-01-07 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:34:05' and `end` < '2025-01-07 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:34:19] Production.INFO: count ==1363 [2025-01-07 09:34:19] Production.ERROR: pbx CDR StartTime 2025-01-07 06:34:05 - End Time 2025-01-07 09:34:05 [2025-01-07 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194013', 'tblTempUsageDetail_20' ) start [2025-01-07 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194013', 'tblTempUsageDetail_20' ) end [2025-01-07 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194013', 'tblTempVendorCDR_20' ) start [2025-01-07 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194013', 'tblTempVendorCDR_20' ) end [2025-01-07 09:34:19] Production.INFO: ProcessCDR(1,14194013,1,1,2) [2025-01-07 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194013', 'tblTempUsageDetail_20' ) start [2025-01-07 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194013', 'tblTempUsageDetail_20' ) end [2025-01-07 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:34:25] Production.INFO: ==26905== Releasing lock... [2025-01-07 09:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:34:25] Production.INFO: 38.75 MB #Memory Used# [2025-01-07 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:35:05 [end_date_ymd] => 2025-01-07 09:35:05 [RateCDR] => 1 ) [2025-01-07 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:35:05' and `end` < '2025-01-07 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:35:19] Production.INFO: count ==1382 [2025-01-07 09:35:19] Production.ERROR: pbx CDR StartTime 2025-01-07 06:35:05 - End Time 2025-01-07 09:35:05 [2025-01-07 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194018', 'tblTempUsageDetail_20' ) start [2025-01-07 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194018', 'tblTempUsageDetail_20' ) end [2025-01-07 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194018', 'tblTempVendorCDR_20' ) start [2025-01-07 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194018', 'tblTempVendorCDR_20' ) end [2025-01-07 09:35:19] Production.INFO: ProcessCDR(1,14194018,1,1,2) [2025-01-07 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194018', 'tblTempUsageDetail_20' ) start [2025-01-07 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194018', 'tblTempUsageDetail_20' ) end [2025-01-07 09:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:35:24] Production.INFO: ==26977== Releasing lock... [2025-01-07 09:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:35:24] Production.INFO: 38.75 MB #Memory Used# [2025-01-07 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:36:05 [end_date_ymd] => 2025-01-07 09:36:05 [RateCDR] => 1 ) [2025-01-07 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:36:05' and `end` < '2025-01-07 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:36:28] Production.INFO: count ==1404 [2025-01-07 09:36:28] Production.ERROR: pbx CDR StartTime 2025-01-07 06:36:05 - End Time 2025-01-07 09:36:05 [2025-01-07 09:36:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194023', 'tblTempUsageDetail_20' ) start [2025-01-07 09:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194023', 'tblTempUsageDetail_20' ) end [2025-01-07 09:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194023', 'tblTempVendorCDR_20' ) start [2025-01-07 09:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194023', 'tblTempVendorCDR_20' ) end [2025-01-07 09:36:28] Production.INFO: ProcessCDR(1,14194023,1,1,2) [2025-01-07 09:36:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:36:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194023', 'tblTempUsageDetail_20' ) start [2025-01-07 09:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194023', 'tblTempUsageDetail_20' ) end [2025-01-07 09:36:33] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:36:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:36:33] Production.INFO: ==27055== Releasing lock... [2025-01-07 09:36:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:36:33] Production.INFO: 38.75 MB #Memory Used# [2025-01-07 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:37:05 [end_date_ymd] => 2025-01-07 09:37:05 [RateCDR] => 1 ) [2025-01-07 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:37:05' and `end` < '2025-01-07 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:37:23] Production.INFO: count ==1424 [2025-01-07 09:37:23] Production.ERROR: pbx CDR StartTime 2025-01-07 06:37:05 - End Time 2025-01-07 09:37:05 [2025-01-07 09:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194028', 'tblTempUsageDetail_20' ) start [2025-01-07 09:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194028', 'tblTempUsageDetail_20' ) end [2025-01-07 09:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194028', 'tblTempVendorCDR_20' ) start [2025-01-07 09:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194028', 'tblTempVendorCDR_20' ) end [2025-01-07 09:37:23] Production.INFO: ProcessCDR(1,14194028,1,1,2) [2025-01-07 09:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194028', 'tblTempUsageDetail_20' ) start [2025-01-07 09:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194028', 'tblTempUsageDetail_20' ) end [2025-01-07 09:37:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:37:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:37:28] Production.INFO: ==27126== Releasing lock... [2025-01-07 09:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:37:28] Production.INFO: 39.25 MB #Memory Used# [2025-01-07 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:38:05 [end_date_ymd] => 2025-01-07 09:38:05 [RateCDR] => 1 ) [2025-01-07 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:38:05' and `end` < '2025-01-07 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:38:21] Production.INFO: count ==1443 [2025-01-07 09:38:22] Production.ERROR: pbx CDR StartTime 2025-01-07 06:38:05 - End Time 2025-01-07 09:38:05 [2025-01-07 09:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194033', 'tblTempUsageDetail_20' ) start [2025-01-07 09:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194033', 'tblTempUsageDetail_20' ) end [2025-01-07 09:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194033', 'tblTempVendorCDR_20' ) start [2025-01-07 09:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194033', 'tblTempVendorCDR_20' ) end [2025-01-07 09:38:22] Production.INFO: ProcessCDR(1,14194033,1,1,2) [2025-01-07 09:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194033', 'tblTempUsageDetail_20' ) start [2025-01-07 09:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194033', 'tblTempUsageDetail_20' ) end [2025-01-07 09:38:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:38:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:38:27] Production.INFO: ==27201== Releasing lock... [2025-01-07 09:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:38:27] Production.INFO: 39.5 MB #Memory Used# [2025-01-07 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:39:05 [end_date_ymd] => 2025-01-07 09:39:05 [RateCDR] => 1 ) [2025-01-07 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:39:05' and `end` < '2025-01-07 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:39:20] Production.INFO: count ==1456 [2025-01-07 09:39:21] Production.ERROR: pbx CDR StartTime 2025-01-07 06:39:05 - End Time 2025-01-07 09:39:05 [2025-01-07 09:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194038', 'tblTempUsageDetail_20' ) start [2025-01-07 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194038', 'tblTempUsageDetail_20' ) end [2025-01-07 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194038', 'tblTempVendorCDR_20' ) start [2025-01-07 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194038', 'tblTempVendorCDR_20' ) end [2025-01-07 09:39:21] Production.INFO: ProcessCDR(1,14194038,1,1,2) [2025-01-07 09:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194038', 'tblTempUsageDetail_20' ) start [2025-01-07 09:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194038', 'tblTempUsageDetail_20' ) end [2025-01-07 09:39:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:39:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:39:26] Production.INFO: ==27275== Releasing lock... [2025-01-07 09:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:39:26] Production.INFO: 39 MB #Memory Used# [2025-01-07 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:40:06 [end_date_ymd] => 2025-01-07 09:40:06 [RateCDR] => 1 ) [2025-01-07 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:40:06' and `end` < '2025-01-07 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:40:23] Production.INFO: count ==1498 [2025-01-07 09:40:24] Production.ERROR: pbx CDR StartTime 2025-01-07 06:40:06 - End Time 2025-01-07 09:40:06 [2025-01-07 09:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194044', 'tblTempUsageDetail_20' ) start [2025-01-07 09:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194044', 'tblTempUsageDetail_20' ) end [2025-01-07 09:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194044', 'tblTempVendorCDR_20' ) start [2025-01-07 09:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194044', 'tblTempVendorCDR_20' ) end [2025-01-07 09:40:24] Production.INFO: ProcessCDR(1,14194044,1,1,2) [2025-01-07 09:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194044', 'tblTempUsageDetail_20' ) start [2025-01-07 09:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194044', 'tblTempUsageDetail_20' ) end [2025-01-07 09:40:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:40:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:40:28] Production.INFO: ==27354== Releasing lock... [2025-01-07 09:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:40:28] Production.INFO: 39.25 MB #Memory Used# [2025-01-07 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:41:05 [end_date_ymd] => 2025-01-07 09:41:05 [RateCDR] => 1 ) [2025-01-07 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:41:05' and `end` < '2025-01-07 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:41:23] Production.INFO: count ==1554 [2025-01-07 09:41:24] Production.ERROR: pbx CDR StartTime 2025-01-07 06:41:05 - End Time 2025-01-07 09:41:05 [2025-01-07 09:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194049', 'tblTempUsageDetail_20' ) start [2025-01-07 09:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194049', 'tblTempUsageDetail_20' ) end [2025-01-07 09:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194049', 'tblTempVendorCDR_20' ) start [2025-01-07 09:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194049', 'tblTempVendorCDR_20' ) end [2025-01-07 09:41:24] Production.INFO: ProcessCDR(1,14194049,1,1,2) [2025-01-07 09:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194049', 'tblTempUsageDetail_20' ) start [2025-01-07 09:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194049', 'tblTempUsageDetail_20' ) end [2025-01-07 09:41:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:41:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:41:27] Production.INFO: ==27435== Releasing lock... [2025-01-07 09:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:41:27] Production.INFO: 40 MB #Memory Used# [2025-01-07 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:42:05 [end_date_ymd] => 2025-01-07 09:42:05 [RateCDR] => 1 ) [2025-01-07 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:42:05' and `end` < '2025-01-07 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:42:18] Production.INFO: count ==1575 [2025-01-07 09:42:19] Production.ERROR: pbx CDR StartTime 2025-01-07 06:42:05 - End Time 2025-01-07 09:42:05 [2025-01-07 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194054', 'tblTempUsageDetail_20' ) start [2025-01-07 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194054', 'tblTempUsageDetail_20' ) end [2025-01-07 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194054', 'tblTempVendorCDR_20' ) start [2025-01-07 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194054', 'tblTempVendorCDR_20' ) end [2025-01-07 09:42:19] Production.INFO: ProcessCDR(1,14194054,1,1,2) [2025-01-07 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194054', 'tblTempUsageDetail_20' ) start [2025-01-07 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194054', 'tblTempUsageDetail_20' ) end [2025-01-07 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:42:24] Production.INFO: ==27512== Releasing lock... [2025-01-07 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:42:24] Production.INFO: 40.25 MB #Memory Used# [2025-01-07 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:43:05 [end_date_ymd] => 2025-01-07 09:43:05 [RateCDR] => 1 ) [2025-01-07 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:43:05' and `end` < '2025-01-07 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:43:18] Production.INFO: count ==1583 [2025-01-07 09:43:19] Production.ERROR: pbx CDR StartTime 2025-01-07 06:43:05 - End Time 2025-01-07 09:43:05 [2025-01-07 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194059', 'tblTempUsageDetail_20' ) start [2025-01-07 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194059', 'tblTempUsageDetail_20' ) end [2025-01-07 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194059', 'tblTempVendorCDR_20' ) start [2025-01-07 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194059', 'tblTempVendorCDR_20' ) end [2025-01-07 09:43:19] Production.INFO: ProcessCDR(1,14194059,1,1,2) [2025-01-07 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194059', 'tblTempUsageDetail_20' ) start [2025-01-07 09:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194059', 'tblTempUsageDetail_20' ) end [2025-01-07 09:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:43:22] Production.INFO: ==27588== Releasing lock... [2025-01-07 09:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:43:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-07 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:44:05 [end_date_ymd] => 2025-01-07 09:44:05 [RateCDR] => 1 ) [2025-01-07 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:44:05' and `end` < '2025-01-07 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:44:19] Production.INFO: count ==1592 [2025-01-07 09:44:20] Production.ERROR: pbx CDR StartTime 2025-01-07 06:44:05 - End Time 2025-01-07 09:44:05 [2025-01-07 09:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194064', 'tblTempUsageDetail_20' ) start [2025-01-07 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194064', 'tblTempUsageDetail_20' ) end [2025-01-07 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194064', 'tblTempVendorCDR_20' ) start [2025-01-07 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194064', 'tblTempVendorCDR_20' ) end [2025-01-07 09:44:20] Production.INFO: ProcessCDR(1,14194064,1,1,2) [2025-01-07 09:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194064', 'tblTempUsageDetail_20' ) start [2025-01-07 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194064', 'tblTempUsageDetail_20' ) end [2025-01-07 09:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:44:23] Production.INFO: ==27676== Releasing lock... [2025-01-07 09:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:44:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-07 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:45:05 [end_date_ymd] => 2025-01-07 09:45:05 [RateCDR] => 1 ) [2025-01-07 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:45:05' and `end` < '2025-01-07 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:45:23] Production.INFO: count ==1634 [2025-01-07 09:45:24] Production.ERROR: pbx CDR StartTime 2025-01-07 06:45:05 - End Time 2025-01-07 09:45:05 [2025-01-07 09:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194069', 'tblTempUsageDetail_20' ) start [2025-01-07 09:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194069', 'tblTempUsageDetail_20' ) end [2025-01-07 09:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194069', 'tblTempVendorCDR_20' ) start [2025-01-07 09:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194069', 'tblTempVendorCDR_20' ) end [2025-01-07 09:45:24] Production.INFO: ProcessCDR(1,14194069,1,1,2) [2025-01-07 09:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194069', 'tblTempUsageDetail_20' ) start [2025-01-07 09:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194069', 'tblTempUsageDetail_20' ) end [2025-01-07 09:45:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:45:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:45:28] Production.INFO: ==27788== Releasing lock... [2025-01-07 09:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:45:28] Production.INFO: 40.5 MB #Memory Used# [2025-01-07 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:46:05 [end_date_ymd] => 2025-01-07 09:46:05 [RateCDR] => 1 ) [2025-01-07 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:46:05' and `end` < '2025-01-07 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:46:18] Production.INFO: count ==1642 [2025-01-07 09:46:19] Production.ERROR: pbx CDR StartTime 2025-01-07 06:46:05 - End Time 2025-01-07 09:46:05 [2025-01-07 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194074', 'tblTempUsageDetail_20' ) start [2025-01-07 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194074', 'tblTempUsageDetail_20' ) end [2025-01-07 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194074', 'tblTempVendorCDR_20' ) start [2025-01-07 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194074', 'tblTempVendorCDR_20' ) end [2025-01-07 09:46:19] Production.INFO: ProcessCDR(1,14194074,1,1,2) [2025-01-07 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194074', 'tblTempUsageDetail_20' ) start [2025-01-07 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194074', 'tblTempUsageDetail_20' ) end [2025-01-07 09:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:46:22] Production.INFO: ==27865== Releasing lock... [2025-01-07 09:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:46:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-07 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:47:05 [end_date_ymd] => 2025-01-07 09:47:05 [RateCDR] => 1 ) [2025-01-07 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:47:05' and `end` < '2025-01-07 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:47:18] Production.INFO: count ==1644 [2025-01-07 09:47:19] Production.ERROR: pbx CDR StartTime 2025-01-07 06:47:05 - End Time 2025-01-07 09:47:05 [2025-01-07 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194079', 'tblTempUsageDetail_20' ) start [2025-01-07 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194079', 'tblTempUsageDetail_20' ) end [2025-01-07 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194079', 'tblTempVendorCDR_20' ) start [2025-01-07 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194079', 'tblTempVendorCDR_20' ) end [2025-01-07 09:47:19] Production.INFO: ProcessCDR(1,14194079,1,1,2) [2025-01-07 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194079', 'tblTempUsageDetail_20' ) start [2025-01-07 09:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194079', 'tblTempUsageDetail_20' ) end [2025-01-07 09:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:47:22] Production.INFO: ==27941== Releasing lock... [2025-01-07 09:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:47:22] Production.INFO: 41 MB #Memory Used# [2025-01-07 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:48:05 [end_date_ymd] => 2025-01-07 09:48:05 [RateCDR] => 1 ) [2025-01-07 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:48:05' and `end` < '2025-01-07 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:48:19] Production.INFO: count ==1653 [2025-01-07 09:48:20] Production.ERROR: pbx CDR StartTime 2025-01-07 06:48:05 - End Time 2025-01-07 09:48:05 [2025-01-07 09:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194084', 'tblTempUsageDetail_20' ) start [2025-01-07 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194084', 'tblTempUsageDetail_20' ) end [2025-01-07 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194084', 'tblTempVendorCDR_20' ) start [2025-01-07 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194084', 'tblTempVendorCDR_20' ) end [2025-01-07 09:48:20] Production.INFO: ProcessCDR(1,14194084,1,1,2) [2025-01-07 09:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194084', 'tblTempUsageDetail_20' ) start [2025-01-07 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194084', 'tblTempUsageDetail_20' ) end [2025-01-07 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:48:24] Production.INFO: ==28016== Releasing lock... [2025-01-07 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:48:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-07 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:49:05 [end_date_ymd] => 2025-01-07 09:49:05 [RateCDR] => 1 ) [2025-01-07 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:49:05' and `end` < '2025-01-07 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:49:21] Production.INFO: count ==1659 [2025-01-07 09:49:22] Production.ERROR: pbx CDR StartTime 2025-01-07 06:49:05 - End Time 2025-01-07 09:49:05 [2025-01-07 09:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194089', 'tblTempUsageDetail_20' ) start [2025-01-07 09:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194089', 'tblTempUsageDetail_20' ) end [2025-01-07 09:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194089', 'tblTempVendorCDR_20' ) start [2025-01-07 09:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194089', 'tblTempVendorCDR_20' ) end [2025-01-07 09:49:22] Production.INFO: ProcessCDR(1,14194089,1,1,2) [2025-01-07 09:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194089', 'tblTempUsageDetail_20' ) start [2025-01-07 09:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194089', 'tblTempUsageDetail_20' ) end [2025-01-07 09:49:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:49:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:49:26] Production.INFO: ==28096== Releasing lock... [2025-01-07 09:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:49:26] Production.INFO: 41.25 MB #Memory Used# [2025-01-07 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:50:06 [end_date_ymd] => 2025-01-07 09:50:06 [RateCDR] => 1 ) [2025-01-07 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:50:06' and `end` < '2025-01-07 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:50:24] Production.INFO: count ==1682 [2025-01-07 09:50:25] Production.ERROR: pbx CDR StartTime 2025-01-07 06:50:06 - End Time 2025-01-07 09:50:06 [2025-01-07 09:50:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194095', 'tblTempUsageDetail_20' ) start [2025-01-07 09:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194095', 'tblTempUsageDetail_20' ) end [2025-01-07 09:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194095', 'tblTempVendorCDR_20' ) start [2025-01-07 09:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194095', 'tblTempVendorCDR_20' ) end [2025-01-07 09:50:25] Production.INFO: ProcessCDR(1,14194095,1,1,2) [2025-01-07 09:50:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:50:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194095', 'tblTempUsageDetail_20' ) start [2025-01-07 09:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194095', 'tblTempUsageDetail_20' ) end [2025-01-07 09:50:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:50:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:50:30] Production.INFO: ==28171== Releasing lock... [2025-01-07 09:50:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:50:30] Production.INFO: 41 MB #Memory Used# [2025-01-07 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:51:05 [end_date_ymd] => 2025-01-07 09:51:05 [RateCDR] => 1 ) [2025-01-07 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:51:05' and `end` < '2025-01-07 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:51:23] Production.INFO: count ==1773 [2025-01-07 09:51:24] Production.ERROR: pbx CDR StartTime 2025-01-07 06:51:05 - End Time 2025-01-07 09:51:05 [2025-01-07 09:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194100', 'tblTempUsageDetail_20' ) start [2025-01-07 09:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194100', 'tblTempUsageDetail_20' ) end [2025-01-07 09:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194100', 'tblTempVendorCDR_20' ) start [2025-01-07 09:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194100', 'tblTempVendorCDR_20' ) end [2025-01-07 09:51:24] Production.INFO: ProcessCDR(1,14194100,1,1,2) [2025-01-07 09:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194100', 'tblTempUsageDetail_20' ) start [2025-01-07 09:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194100', 'tblTempUsageDetail_20' ) end [2025-01-07 09:51:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:51:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:51:28] Production.INFO: ==28250== Releasing lock... [2025-01-07 09:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:51:28] Production.INFO: 41.25 MB #Memory Used# [2025-01-07 09:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:52:04 [end_date_ymd] => 2025-01-07 09:52:04 [RateCDR] => 1 ) [2025-01-07 09:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:52:04' and `end` < '2025-01-07 09:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:52:18] Production.INFO: count ==1778 [2025-01-07 09:52:18] Production.ERROR: pbx CDR StartTime 2025-01-07 06:52:04 - End Time 2025-01-07 09:52:04 [2025-01-07 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194105', 'tblTempUsageDetail_20' ) start [2025-01-07 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194105', 'tblTempUsageDetail_20' ) end [2025-01-07 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194105', 'tblTempVendorCDR_20' ) start [2025-01-07 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194105', 'tblTempVendorCDR_20' ) end [2025-01-07 09:52:18] Production.INFO: ProcessCDR(1,14194105,1,1,2) [2025-01-07 09:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194105', 'tblTempUsageDetail_20' ) start [2025-01-07 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194105', 'tblTempUsageDetail_20' ) end [2025-01-07 09:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:52:22] Production.INFO: ==28330== Releasing lock... [2025-01-07 09:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:52:22] Production.INFO: 42 MB #Memory Used# [2025-01-07 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:53:05 [end_date_ymd] => 2025-01-07 09:53:05 [RateCDR] => 1 ) [2025-01-07 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:53:05' and `end` < '2025-01-07 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:53:18] Production.INFO: count ==1790 [2025-01-07 09:53:18] Production.ERROR: pbx CDR StartTime 2025-01-07 06:53:05 - End Time 2025-01-07 09:53:05 [2025-01-07 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194110', 'tblTempUsageDetail_20' ) start [2025-01-07 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194110', 'tblTempUsageDetail_20' ) end [2025-01-07 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194110', 'tblTempVendorCDR_20' ) start [2025-01-07 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194110', 'tblTempVendorCDR_20' ) end [2025-01-07 09:53:19] Production.INFO: ProcessCDR(1,14194110,1,1,2) [2025-01-07 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194110', 'tblTempUsageDetail_20' ) start [2025-01-07 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194110', 'tblTempUsageDetail_20' ) end [2025-01-07 09:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:53:23] Production.INFO: ==28403== Releasing lock... [2025-01-07 09:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:53:23] Production.INFO: 42.25 MB #Memory Used# [2025-01-07 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:54:05 [end_date_ymd] => 2025-01-07 09:54:05 [RateCDR] => 1 ) [2025-01-07 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:54:05' and `end` < '2025-01-07 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:54:24] Production.INFO: count ==1811 [2025-01-07 09:54:24] Production.ERROR: pbx CDR StartTime 2025-01-07 06:54:05 - End Time 2025-01-07 09:54:05 [2025-01-07 09:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194115', 'tblTempUsageDetail_20' ) start [2025-01-07 09:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194115', 'tblTempUsageDetail_20' ) end [2025-01-07 09:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194115', 'tblTempVendorCDR_20' ) start [2025-01-07 09:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194115', 'tblTempVendorCDR_20' ) end [2025-01-07 09:54:24] Production.INFO: ProcessCDR(1,14194115,1,1,2) [2025-01-07 09:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194115', 'tblTempUsageDetail_20' ) start [2025-01-07 09:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194115', 'tblTempUsageDetail_20' ) end [2025-01-07 09:54:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:54:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:54:29] Production.INFO: ==28475== Releasing lock... [2025-01-07 09:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:54:29] Production.INFO: 42.25 MB #Memory Used# [2025-01-07 09:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:55:04 [end_date_ymd] => 2025-01-07 09:55:04 [RateCDR] => 1 ) [2025-01-07 09:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:55:04' and `end` < '2025-01-07 09:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:55:31] Production.INFO: count ==1822 [2025-01-07 09:55:32] Production.ERROR: pbx CDR StartTime 2025-01-07 06:55:04 - End Time 2025-01-07 09:55:04 [2025-01-07 09:55:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194120', 'tblTempUsageDetail_20' ) start [2025-01-07 09:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194120', 'tblTempUsageDetail_20' ) end [2025-01-07 09:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194120', 'tblTempVendorCDR_20' ) start [2025-01-07 09:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194120', 'tblTempVendorCDR_20' ) end [2025-01-07 09:55:32] Production.INFO: ProcessCDR(1,14194120,1,1,2) [2025-01-07 09:55:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:55:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:55:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:55:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:55:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194120', 'tblTempUsageDetail_20' ) start [2025-01-07 09:55:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194120', 'tblTempUsageDetail_20' ) end [2025-01-07 09:55:36] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:55:36] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:55:36] Production.INFO: ==28548== Releasing lock... [2025-01-07 09:55:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:55:36] Production.INFO: 41.75 MB #Memory Used# [2025-01-07 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:56:05 [end_date_ymd] => 2025-01-07 09:56:05 [RateCDR] => 1 ) [2025-01-07 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:56:05' and `end` < '2025-01-07 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:56:30] Production.INFO: count ==1865 [2025-01-07 09:56:31] Production.ERROR: pbx CDR StartTime 2025-01-07 06:56:05 - End Time 2025-01-07 09:56:05 [2025-01-07 09:56:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194125', 'tblTempUsageDetail_20' ) start [2025-01-07 09:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194125', 'tblTempUsageDetail_20' ) end [2025-01-07 09:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194125', 'tblTempVendorCDR_20' ) start [2025-01-07 09:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194125', 'tblTempVendorCDR_20' ) end [2025-01-07 09:56:31] Production.INFO: ProcessCDR(1,14194125,1,1,2) [2025-01-07 09:56:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:56:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:56:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:56:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:56:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194125', 'tblTempUsageDetail_20' ) start [2025-01-07 09:56:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194125', 'tblTempUsageDetail_20' ) end [2025-01-07 09:56:35] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:56:36] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:56:36] Production.INFO: ==28619== Releasing lock... [2025-01-07 09:56:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:56:36] Production.INFO: 42.5 MB #Memory Used# [2025-01-07 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:57:05 [end_date_ymd] => 2025-01-07 09:57:05 [RateCDR] => 1 ) [2025-01-07 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:57:05' and `end` < '2025-01-07 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:57:24] Production.INFO: count ==1875 [2025-01-07 09:57:24] Production.ERROR: pbx CDR StartTime 2025-01-07 06:57:05 - End Time 2025-01-07 09:57:05 [2025-01-07 09:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194130', 'tblTempUsageDetail_20' ) start [2025-01-07 09:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194130', 'tblTempUsageDetail_20' ) end [2025-01-07 09:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194130', 'tblTempVendorCDR_20' ) start [2025-01-07 09:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194130', 'tblTempVendorCDR_20' ) end [2025-01-07 09:57:24] Production.INFO: ProcessCDR(1,14194130,1,1,2) [2025-01-07 09:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194130', 'tblTempUsageDetail_20' ) start [2025-01-07 09:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194130', 'tblTempUsageDetail_20' ) end [2025-01-07 09:57:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:57:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:57:28] Production.INFO: ==28688== Releasing lock... [2025-01-07 09:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:57:28] Production.INFO: 42.75 MB #Memory Used# [2025-01-07 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:58:05 [end_date_ymd] => 2025-01-07 09:58:05 [RateCDR] => 1 ) [2025-01-07 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 06:58:05' and `end` < '2025-01-07 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 09:58:22] Production.INFO: count ==1909 [2025-01-07 09:58:23] Production.ERROR: pbx CDR StartTime 2025-01-07 06:58:05 - End Time 2025-01-07 09:58:05 [2025-01-07 09:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194135', 'tblTempUsageDetail_20' ) start [2025-01-07 09:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194135', 'tblTempUsageDetail_20' ) end [2025-01-07 09:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194135', 'tblTempVendorCDR_20' ) start [2025-01-07 09:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194135', 'tblTempVendorCDR_20' ) end [2025-01-07 09:58:23] Production.INFO: ProcessCDR(1,14194135,1,1,2) [2025-01-07 09:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194135', 'tblTempUsageDetail_20' ) start [2025-01-07 09:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194135', 'tblTempUsageDetail_20' ) end [2025-01-07 09:58:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:58:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:58:28] Production.INFO: ==28759== Releasing lock... [2025-01-07 09:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:58:28] Production.INFO: 42.5 MB #Memory Used# [2025-01-07 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 06:59:05 [end_date_ymd] => 2025-01-07 09:59:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 06:59:05' and `end` < '2025-01-07 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-01-07 09:59:18] Production.INFO: count ==1932 [2025-01-07 09:59:18] Production.ERROR: pbx CDR StartTime 2025-01-07 06:59:05 - End Time 2025-01-07 09:59:05 [2025-01-07 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194140', 'tblTempUsageDetail_20' ) start [2025-01-07 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194140', 'tblTempUsageDetail_20' ) end [2025-01-07 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194140', 'tblTempVendorCDR_20' ) start [2025-01-07 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194140', 'tblTempVendorCDR_20' ) end [2025-01-07 09:59:18] Production.INFO: ProcessCDR(1,14194140,1,1,2) [2025-01-07 09:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 09:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194140', 'tblTempUsageDetail_20' ) start [2025-01-07 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194140', 'tblTempUsageDetail_20' ) end [2025-01-07 09:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 09:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 09:59:23] Production.INFO: ==28830== Releasing lock... [2025-01-07 09:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 09:59:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-07 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:00:06 [end_date_ymd] => 2025-01-07 10:00:06 [RateCDR] => 1 ) [2025-01-07 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:00:06' and `end` < '2025-01-07 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:00:20] Production.INFO: count ==1954 [2025-01-07 10:00:20] Production.ERROR: pbx CDR StartTime 2025-01-07 07:00:06 - End Time 2025-01-07 10:00:06 [2025-01-07 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194146', 'tblTempUsageDetail_20' ) start [2025-01-07 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194146', 'tblTempUsageDetail_20' ) end [2025-01-07 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194146', 'tblTempVendorCDR_20' ) start [2025-01-07 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194146', 'tblTempVendorCDR_20' ) end [2025-01-07 10:00:20] Production.INFO: ProcessCDR(1,14194146,1,1,2) [2025-01-07 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194146', 'tblTempUsageDetail_20' ) start [2025-01-07 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194146', 'tblTempUsageDetail_20' ) end [2025-01-07 10:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:00:24] Production.INFO: ==28944== Releasing lock... [2025-01-07 10:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:00:24] Production.INFO: 43.25 MB #Memory Used# [2025-01-07 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:01:05 [end_date_ymd] => 2025-01-07 10:01:05 [RateCDR] => 1 ) [2025-01-07 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:01:05' and `end` < '2025-01-07 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:01:22] Production.INFO: count ==2006 [2025-01-07 10:01:22] Production.ERROR: pbx CDR StartTime 2025-01-07 07:01:05 - End Time 2025-01-07 10:01:05 [2025-01-07 10:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194151', 'tblTempUsageDetail_20' ) start [2025-01-07 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194151', 'tblTempUsageDetail_20' ) end [2025-01-07 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194151', 'tblTempVendorCDR_20' ) start [2025-01-07 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194151', 'tblTempVendorCDR_20' ) end [2025-01-07 10:01:22] Production.INFO: ProcessCDR(1,14194151,1,1,2) [2025-01-07 10:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194151', 'tblTempUsageDetail_20' ) start [2025-01-07 10:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194151', 'tblTempUsageDetail_20' ) end [2025-01-07 10:01:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:01:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:01:27] Production.INFO: ==29033== Releasing lock... [2025-01-07 10:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:01:27] Production.INFO: 43.25 MB #Memory Used# [2025-01-07 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:02:05 [end_date_ymd] => 2025-01-07 10:02:05 [RateCDR] => 1 ) [2025-01-07 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:02:05' and `end` < '2025-01-07 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:02:20] Production.INFO: count ==2021 [2025-01-07 10:02:21] Production.ERROR: pbx CDR StartTime 2025-01-07 07:02:05 - End Time 2025-01-07 10:02:05 [2025-01-07 10:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194156', 'tblTempUsageDetail_20' ) start [2025-01-07 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194156', 'tblTempUsageDetail_20' ) end [2025-01-07 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194156', 'tblTempVendorCDR_20' ) start [2025-01-07 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194156', 'tblTempVendorCDR_20' ) end [2025-01-07 10:02:21] Production.INFO: ProcessCDR(1,14194156,1,1,2) [2025-01-07 10:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194156', 'tblTempUsageDetail_20' ) start [2025-01-07 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194156', 'tblTempUsageDetail_20' ) end [2025-01-07 10:02:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:02:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:02:26] Production.INFO: ==29104== Releasing lock... [2025-01-07 10:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:02:26] Production.INFO: 43.5 MB #Memory Used# [2025-01-07 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:03:05 [end_date_ymd] => 2025-01-07 10:03:05 [RateCDR] => 1 ) [2025-01-07 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:03:05' and `end` < '2025-01-07 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:03:21] Production.INFO: count ==2038 [2025-01-07 10:03:21] Production.ERROR: pbx CDR StartTime 2025-01-07 07:03:05 - End Time 2025-01-07 10:03:05 [2025-01-07 10:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194161', 'tblTempUsageDetail_20' ) start [2025-01-07 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194161', 'tblTempUsageDetail_20' ) end [2025-01-07 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194161', 'tblTempVendorCDR_20' ) start [2025-01-07 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194161', 'tblTempVendorCDR_20' ) end [2025-01-07 10:03:21] Production.INFO: ProcessCDR(1,14194161,1,1,2) [2025-01-07 10:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194161', 'tblTempUsageDetail_20' ) start [2025-01-07 10:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194161', 'tblTempUsageDetail_20' ) end [2025-01-07 10:03:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:03:26] Production.INFO: ==29175== Releasing lock... [2025-01-07 10:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:03:26] Production.INFO: 44 MB #Memory Used# [2025-01-07 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:04:05 [end_date_ymd] => 2025-01-07 10:04:05 [RateCDR] => 1 ) [2025-01-07 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:04:05' and `end` < '2025-01-07 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:04:25] Production.INFO: count ==2055 [2025-01-07 10:04:26] Production.ERROR: pbx CDR StartTime 2025-01-07 07:04:05 - End Time 2025-01-07 10:04:05 [2025-01-07 10:04:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194166', 'tblTempUsageDetail_20' ) start [2025-01-07 10:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194166', 'tblTempUsageDetail_20' ) end [2025-01-07 10:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194166', 'tblTempVendorCDR_20' ) start [2025-01-07 10:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194166', 'tblTempVendorCDR_20' ) end [2025-01-07 10:04:26] Production.INFO: ProcessCDR(1,14194166,1,1,2) [2025-01-07 10:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194166', 'tblTempUsageDetail_20' ) start [2025-01-07 10:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194166', 'tblTempUsageDetail_20' ) end [2025-01-07 10:04:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:04:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:04:29] Production.INFO: ==29248== Releasing lock... [2025-01-07 10:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:04:29] Production.INFO: 43.5 MB #Memory Used# [2025-01-07 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:05:05 [end_date_ymd] => 2025-01-07 10:05:05 [RateCDR] => 1 ) [2025-01-07 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:05:05' and `end` < '2025-01-07 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:05:23] Production.INFO: count ==2090 [2025-01-07 10:05:24] Production.ERROR: pbx CDR StartTime 2025-01-07 07:05:05 - End Time 2025-01-07 10:05:05 [2025-01-07 10:05:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194171', 'tblTempUsageDetail_20' ) start [2025-01-07 10:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194171', 'tblTempUsageDetail_20' ) end [2025-01-07 10:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194171', 'tblTempVendorCDR_20' ) start [2025-01-07 10:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194171', 'tblTempVendorCDR_20' ) end [2025-01-07 10:05:24] Production.INFO: ProcessCDR(1,14194171,1,1,2) [2025-01-07 10:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194171', 'tblTempUsageDetail_20' ) start [2025-01-07 10:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194171', 'tblTempUsageDetail_20' ) end [2025-01-07 10:05:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:05:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:05:29] Production.INFO: ==29318== Releasing lock... [2025-01-07 10:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:05:29] Production.INFO: 44.25 MB #Memory Used# [2025-01-07 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:06:05 [end_date_ymd] => 2025-01-07 10:06:05 [RateCDR] => 1 ) [2025-01-07 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:06:05' and `end` < '2025-01-07 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:06:19] Production.INFO: count ==2132 [2025-01-07 10:06:19] Production.ERROR: pbx CDR StartTime 2025-01-07 07:06:05 - End Time 2025-01-07 10:06:05 [2025-01-07 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194176', 'tblTempUsageDetail_20' ) start [2025-01-07 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194176', 'tblTempUsageDetail_20' ) end [2025-01-07 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194176', 'tblTempVendorCDR_20' ) start [2025-01-07 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194176', 'tblTempVendorCDR_20' ) end [2025-01-07 10:06:20] Production.INFO: ProcessCDR(1,14194176,1,1,2) [2025-01-07 10:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194176', 'tblTempUsageDetail_20' ) start [2025-01-07 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194176', 'tblTempUsageDetail_20' ) end [2025-01-07 10:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:06:24] Production.INFO: ==29393== Releasing lock... [2025-01-07 10:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:06:24] Production.INFO: 44 MB #Memory Used# [2025-01-07 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:07:05 [end_date_ymd] => 2025-01-07 10:07:05 [RateCDR] => 1 ) [2025-01-07 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:07:05' and `end` < '2025-01-07 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:07:18] Production.INFO: count ==2144 [2025-01-07 10:07:19] Production.ERROR: pbx CDR StartTime 2025-01-07 07:07:05 - End Time 2025-01-07 10:07:05 [2025-01-07 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194181', 'tblTempUsageDetail_20' ) start [2025-01-07 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194181', 'tblTempUsageDetail_20' ) end [2025-01-07 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194181', 'tblTempVendorCDR_20' ) start [2025-01-07 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194181', 'tblTempVendorCDR_20' ) end [2025-01-07 10:07:19] Production.INFO: ProcessCDR(1,14194181,1,1,2) [2025-01-07 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194181', 'tblTempUsageDetail_20' ) start [2025-01-07 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194181', 'tblTempUsageDetail_20' ) end [2025-01-07 10:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:07:24] Production.INFO: ==29464== Releasing lock... [2025-01-07 10:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:07:24] Production.INFO: 44.5 MB #Memory Used# [2025-01-07 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:08:05 [end_date_ymd] => 2025-01-07 10:08:05 [RateCDR] => 1 ) [2025-01-07 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:08:05' and `end` < '2025-01-07 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:08:18] Production.INFO: count ==2154 [2025-01-07 10:08:19] Production.ERROR: pbx CDR StartTime 2025-01-07 07:08:05 - End Time 2025-01-07 10:08:05 [2025-01-07 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194186', 'tblTempUsageDetail_20' ) start [2025-01-07 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194186', 'tblTempUsageDetail_20' ) end [2025-01-07 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194186', 'tblTempVendorCDR_20' ) start [2025-01-07 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194186', 'tblTempVendorCDR_20' ) end [2025-01-07 10:08:19] Production.INFO: ProcessCDR(1,14194186,1,1,2) [2025-01-07 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194186', 'tblTempUsageDetail_20' ) start [2025-01-07 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194186', 'tblTempUsageDetail_20' ) end [2025-01-07 10:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:08:24] Production.INFO: ==29536== Releasing lock... [2025-01-07 10:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:08:24] Production.INFO: 44.5 MB #Memory Used# [2025-01-07 10:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:09:04 [end_date_ymd] => 2025-01-07 10:09:04 [RateCDR] => 1 ) [2025-01-07 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-01-07 07:09:04' and `end` < '2025-01-07 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-01-07 10:09:17] Production.INFO: count ==2157 [2025-01-07 10:09:18] Production.ERROR: pbx CDR StartTime 2025-01-07 07:09:04 - End Time 2025-01-07 10:09:04 [2025-01-07 10:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194191', 'tblTempUsageDetail_20' ) start [2025-01-07 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194191', 'tblTempUsageDetail_20' ) end [2025-01-07 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194191', 'tblTempVendorCDR_20' ) start [2025-01-07 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194191', 'tblTempVendorCDR_20' ) end [2025-01-07 10:09:18] Production.INFO: ProcessCDR(1,14194191,1,1,2) [2025-01-07 10:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194191', 'tblTempUsageDetail_20' ) start [2025-01-07 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194191', 'tblTempUsageDetail_20' ) end [2025-01-07 10:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:09:22] Production.INFO: ==29605== Releasing lock... [2025-01-07 10:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:09:22] Production.INFO: 44.5 MB #Memory Used# [2025-01-07 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:10:06 [end_date_ymd] => 2025-01-07 10:10:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 07:10:06' and `end` < '2025-01-07 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-01-07 10:10:24] Production.INFO: count ==2175 [2025-01-07 10:10:25] Production.ERROR: pbx CDR StartTime 2025-01-07 07:10:06 - End Time 2025-01-07 10:10:06 [2025-01-07 10:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194197', 'tblTempUsageDetail_20' ) start [2025-01-07 10:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194197', 'tblTempUsageDetail_20' ) end [2025-01-07 10:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194197', 'tblTempVendorCDR_20' ) start [2025-01-07 10:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194197', 'tblTempVendorCDR_20' ) end [2025-01-07 10:10:25] Production.INFO: ProcessCDR(1,14194197,1,1,2) [2025-01-07 10:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194197', 'tblTempUsageDetail_20' ) start [2025-01-07 10:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194197', 'tblTempUsageDetail_20' ) end [2025-01-07 10:10:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:10:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:10:30] Production.INFO: ==29687== Releasing lock... [2025-01-07 10:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:10:30] Production.INFO: 44.75 MB #Memory Used# [2025-01-07 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:11:06 [end_date_ymd] => 2025-01-07 10:11:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 07:11:06' and `end` < '2025-01-07 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-01-07 10:11:25] Production.INFO: count ==2243 [2025-01-07 10:11:26] Production.ERROR: pbx CDR StartTime 2025-01-07 07:11:06 - End Time 2025-01-07 10:11:06 [2025-01-07 10:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194202', 'tblTempUsageDetail_20' ) start [2025-01-07 10:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194202', 'tblTempUsageDetail_20' ) end [2025-01-07 10:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194202', 'tblTempVendorCDR_20' ) start [2025-01-07 10:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194202', 'tblTempVendorCDR_20' ) end [2025-01-07 10:11:26] Production.INFO: ProcessCDR(1,14194202,1,1,2) [2025-01-07 10:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:11:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:11:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:11:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194202', 'tblTempUsageDetail_20' ) start [2025-01-07 10:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194202', 'tblTempUsageDetail_20' ) end [2025-01-07 10:11:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:11:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:11:31] Production.INFO: ==29761== Releasing lock... [2025-01-07 10:11:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:11:31] Production.INFO: 44.75 MB #Memory Used# [2025-01-07 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:12:05 [end_date_ymd] => 2025-01-07 10:12:05 [RateCDR] => 1 ) [2025-01-07 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:12:05' and `end` < '2025-01-07 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:12:22] Production.INFO: count ==2254 [2025-01-07 10:12:23] Production.ERROR: pbx CDR StartTime 2025-01-07 07:12:05 - End Time 2025-01-07 10:12:05 [2025-01-07 10:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194207', 'tblTempUsageDetail_20' ) start [2025-01-07 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194207', 'tblTempUsageDetail_20' ) end [2025-01-07 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194207', 'tblTempVendorCDR_20' ) start [2025-01-07 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194207', 'tblTempVendorCDR_20' ) end [2025-01-07 10:12:23] Production.INFO: ProcessCDR(1,14194207,1,1,2) [2025-01-07 10:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194207', 'tblTempUsageDetail_20' ) start [2025-01-07 10:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194207', 'tblTempUsageDetail_20' ) end [2025-01-07 10:12:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:12:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:12:27] Production.INFO: ==29833== Releasing lock... [2025-01-07 10:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:12:27] Production.INFO: 45 MB #Memory Used# [2025-01-07 10:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:13:04 [end_date_ymd] => 2025-01-07 10:13:04 [RateCDR] => 1 ) [2025-01-07 10:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:13:04' and `end` < '2025-01-07 10:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:13:18] Production.INFO: count ==2260 [2025-01-07 10:13:18] Production.ERROR: pbx CDR StartTime 2025-01-07 07:13:04 - End Time 2025-01-07 10:13:04 [2025-01-07 10:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194212', 'tblTempUsageDetail_20' ) start [2025-01-07 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194212', 'tblTempUsageDetail_20' ) end [2025-01-07 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194212', 'tblTempVendorCDR_20' ) start [2025-01-07 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194212', 'tblTempVendorCDR_20' ) end [2025-01-07 10:13:18] Production.INFO: ProcessCDR(1,14194212,1,1,2) [2025-01-07 10:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194212', 'tblTempUsageDetail_20' ) start [2025-01-07 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194212', 'tblTempUsageDetail_20' ) end [2025-01-07 10:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:13:23] Production.INFO: ==29903== Releasing lock... [2025-01-07 10:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:13:23] Production.INFO: 45 MB #Memory Used# [2025-01-07 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:14:05 [end_date_ymd] => 2025-01-07 10:14:05 [RateCDR] => 1 ) [2025-01-07 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:14:05' and `end` < '2025-01-07 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:14:20] Production.INFO: count ==2279 [2025-01-07 10:14:21] Production.ERROR: pbx CDR StartTime 2025-01-07 07:14:05 - End Time 2025-01-07 10:14:05 [2025-01-07 10:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194216', 'tblTempUsageDetail_20' ) start [2025-01-07 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194216', 'tblTempUsageDetail_20' ) end [2025-01-07 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194216', 'tblTempVendorCDR_20' ) start [2025-01-07 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194216', 'tblTempVendorCDR_20' ) end [2025-01-07 10:14:21] Production.INFO: ProcessCDR(1,14194216,1,1,2) [2025-01-07 10:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194216', 'tblTempUsageDetail_20' ) start [2025-01-07 10:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194216', 'tblTempUsageDetail_20' ) end [2025-01-07 10:14:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:14:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:14:27] Production.INFO: ==29974== Releasing lock... [2025-01-07 10:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:14:27] Production.INFO: 45.5 MB #Memory Used# [2025-01-07 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:15:05 [end_date_ymd] => 2025-01-07 10:15:05 [RateCDR] => 1 ) [2025-01-07 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:15:05' and `end` < '2025-01-07 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:15:18] Production.INFO: count ==2294 [2025-01-07 10:15:19] Production.ERROR: pbx CDR StartTime 2025-01-07 07:15:05 - End Time 2025-01-07 10:15:05 [2025-01-07 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194222', 'tblTempUsageDetail_20' ) start [2025-01-07 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194222', 'tblTempUsageDetail_20' ) end [2025-01-07 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194222', 'tblTempVendorCDR_20' ) start [2025-01-07 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194222', 'tblTempVendorCDR_20' ) end [2025-01-07 10:15:19] Production.INFO: ProcessCDR(1,14194222,1,1,2) [2025-01-07 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194222', 'tblTempUsageDetail_20' ) start [2025-01-07 10:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194222', 'tblTempUsageDetail_20' ) end [2025-01-07 10:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:15:22] Production.INFO: ==30045== Releasing lock... [2025-01-07 10:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:15:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-07 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:16:06 [end_date_ymd] => 2025-01-07 10:16:06 [RateCDR] => 1 ) [2025-01-07 10:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:16:06' and `end` < '2025-01-07 10:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:16:26] Production.INFO: count ==2319 [2025-01-07 10:16:26] Production.ERROR: pbx CDR StartTime 2025-01-07 07:16:06 - End Time 2025-01-07 10:16:06 [2025-01-07 10:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194227', 'tblTempUsageDetail_20' ) start [2025-01-07 10:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194227', 'tblTempUsageDetail_20' ) end [2025-01-07 10:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194227', 'tblTempVendorCDR_20' ) start [2025-01-07 10:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194227', 'tblTempVendorCDR_20' ) end [2025-01-07 10:16:26] Production.INFO: ProcessCDR(1,14194227,1,1,2) [2025-01-07 10:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194227', 'tblTempUsageDetail_20' ) start [2025-01-07 10:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194227', 'tblTempUsageDetail_20' ) end [2025-01-07 10:16:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:16:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:16:31] Production.INFO: ==30157== Releasing lock... [2025-01-07 10:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:16:31] Production.INFO: 45.5 MB #Memory Used# [2025-01-07 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:17:05 [end_date_ymd] => 2025-01-07 10:17:05 [RateCDR] => 1 ) [2025-01-07 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:17:05' and `end` < '2025-01-07 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:17:25] Production.INFO: count ==2320 [2025-01-07 10:17:26] Production.ERROR: pbx CDR StartTime 2025-01-07 07:17:05 - End Time 2025-01-07 10:17:05 [2025-01-07 10:17:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194232', 'tblTempUsageDetail_20' ) start [2025-01-07 10:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194232', 'tblTempUsageDetail_20' ) end [2025-01-07 10:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194232', 'tblTempVendorCDR_20' ) start [2025-01-07 10:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194232', 'tblTempVendorCDR_20' ) end [2025-01-07 10:17:26] Production.INFO: ProcessCDR(1,14194232,1,1,2) [2025-01-07 10:17:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194232', 'tblTempUsageDetail_20' ) start [2025-01-07 10:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194232', 'tblTempUsageDetail_20' ) end [2025-01-07 10:17:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:17:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:17:29] Production.INFO: ==30230== Releasing lock... [2025-01-07 10:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:17:29] Production.INFO: 45.75 MB #Memory Used# [2025-01-07 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:18:05 [end_date_ymd] => 2025-01-07 10:18:05 [RateCDR] => 1 ) [2025-01-07 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:18:05' and `end` < '2025-01-07 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:18:26] Production.INFO: count ==2342 [2025-01-07 10:18:26] Production.ERROR: pbx CDR StartTime 2025-01-07 07:18:05 - End Time 2025-01-07 10:18:05 [2025-01-07 10:18:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194237', 'tblTempUsageDetail_20' ) start [2025-01-07 10:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194237', 'tblTempUsageDetail_20' ) end [2025-01-07 10:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194237', 'tblTempVendorCDR_20' ) start [2025-01-07 10:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194237', 'tblTempVendorCDR_20' ) end [2025-01-07 10:18:27] Production.INFO: ProcessCDR(1,14194237,1,1,2) [2025-01-07 10:18:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:18:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:18:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:18:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194237', 'tblTempUsageDetail_20' ) start [2025-01-07 10:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194237', 'tblTempUsageDetail_20' ) end [2025-01-07 10:18:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:18:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:18:31] Production.INFO: ==30301== Releasing lock... [2025-01-07 10:18:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:18:31] Production.INFO: 45.75 MB #Memory Used# [2025-01-07 10:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:19:04 [end_date_ymd] => 2025-01-07 10:19:04 [RateCDR] => 1 ) [2025-01-07 10:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:19:04' and `end` < '2025-01-07 10:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:19:20] Production.INFO: count ==2348 [2025-01-07 10:19:21] Production.ERROR: pbx CDR StartTime 2025-01-07 07:19:04 - End Time 2025-01-07 10:19:04 [2025-01-07 10:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194242', 'tblTempUsageDetail_20' ) start [2025-01-07 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194242', 'tblTempUsageDetail_20' ) end [2025-01-07 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194242', 'tblTempVendorCDR_20' ) start [2025-01-07 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194242', 'tblTempVendorCDR_20' ) end [2025-01-07 10:19:21] Production.INFO: ProcessCDR(1,14194242,1,1,2) [2025-01-07 10:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194242', 'tblTempUsageDetail_20' ) start [2025-01-07 10:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194242', 'tblTempUsageDetail_20' ) end [2025-01-07 10:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:19:26] Production.INFO: ==30370== Releasing lock... [2025-01-07 10:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:19:26] Production.INFO: 45.75 MB #Memory Used# [2025-01-07 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:20:05 [end_date_ymd] => 2025-01-07 10:20:05 [RateCDR] => 1 ) [2025-01-07 10:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:20:05' and `end` < '2025-01-07 10:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:20:28] Production.INFO: count ==2381 [2025-01-07 10:20:29] Production.ERROR: pbx CDR StartTime 2025-01-07 07:20:05 - End Time 2025-01-07 10:20:05 [2025-01-07 10:20:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194248', 'tblTempUsageDetail_20' ) start [2025-01-07 10:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194248', 'tblTempUsageDetail_20' ) end [2025-01-07 10:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194248', 'tblTempVendorCDR_20' ) start [2025-01-07 10:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194248', 'tblTempVendorCDR_20' ) end [2025-01-07 10:20:29] Production.INFO: ProcessCDR(1,14194248,1,1,2) [2025-01-07 10:20:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:20:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:20:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:20:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194248', 'tblTempUsageDetail_20' ) start [2025-01-07 10:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194248', 'tblTempUsageDetail_20' ) end [2025-01-07 10:20:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:20:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:20:34] Production.INFO: ==30448== Releasing lock... [2025-01-07 10:20:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:20:34] Production.INFO: 46 MB #Memory Used# [2025-01-07 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:21:05 [end_date_ymd] => 2025-01-07 10:21:05 [RateCDR] => 1 ) [2025-01-07 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:21:05' and `end` < '2025-01-07 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:21:23] Production.INFO: count ==2447 [2025-01-07 10:21:23] Production.ERROR: pbx CDR StartTime 2025-01-07 07:21:05 - End Time 2025-01-07 10:21:05 [2025-01-07 10:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194253', 'tblTempUsageDetail_20' ) start [2025-01-07 10:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194253', 'tblTempUsageDetail_20' ) end [2025-01-07 10:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194253', 'tblTempVendorCDR_20' ) start [2025-01-07 10:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194253', 'tblTempVendorCDR_20' ) end [2025-01-07 10:21:24] Production.INFO: ProcessCDR(1,14194253,1,1,2) [2025-01-07 10:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194253', 'tblTempUsageDetail_20' ) start [2025-01-07 10:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194253', 'tblTempUsageDetail_20' ) end [2025-01-07 10:21:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:21:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:21:28] Production.INFO: ==30519== Releasing lock... [2025-01-07 10:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:21:28] Production.INFO: 46.5 MB #Memory Used# [2025-01-07 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:22:05 [end_date_ymd] => 2025-01-07 10:22:05 [RateCDR] => 1 ) [2025-01-07 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:22:05' and `end` < '2025-01-07 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:22:19] Production.INFO: count ==2465 [2025-01-07 10:22:20] Production.ERROR: pbx CDR StartTime 2025-01-07 07:22:05 - End Time 2025-01-07 10:22:05 [2025-01-07 10:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194258', 'tblTempUsageDetail_20' ) start [2025-01-07 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194258', 'tblTempUsageDetail_20' ) end [2025-01-07 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194258', 'tblTempVendorCDR_20' ) start [2025-01-07 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194258', 'tblTempVendorCDR_20' ) end [2025-01-07 10:22:20] Production.INFO: ProcessCDR(1,14194258,1,1,2) [2025-01-07 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194258', 'tblTempUsageDetail_20' ) start [2025-01-07 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194258', 'tblTempUsageDetail_20' ) end [2025-01-07 10:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:22:25] Production.INFO: ==30590== Releasing lock... [2025-01-07 10:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:22:25] Production.INFO: 46.5 MB #Memory Used# [2025-01-07 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:23:05 [end_date_ymd] => 2025-01-07 10:23:05 [RateCDR] => 1 ) [2025-01-07 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:23:05' and `end` < '2025-01-07 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:23:23] Production.INFO: count ==2486 [2025-01-07 10:23:24] Production.ERROR: pbx CDR StartTime 2025-01-07 07:23:05 - End Time 2025-01-07 10:23:05 [2025-01-07 10:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194263', 'tblTempUsageDetail_20' ) start [2025-01-07 10:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194263', 'tblTempUsageDetail_20' ) end [2025-01-07 10:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194263', 'tblTempVendorCDR_20' ) start [2025-01-07 10:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194263', 'tblTempVendorCDR_20' ) end [2025-01-07 10:23:24] Production.INFO: ProcessCDR(1,14194263,1,1,2) [2025-01-07 10:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194263', 'tblTempUsageDetail_20' ) start [2025-01-07 10:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194263', 'tblTempUsageDetail_20' ) end [2025-01-07 10:23:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:23:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:23:29] Production.INFO: ==30661== Releasing lock... [2025-01-07 10:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:23:29] Production.INFO: 46.75 MB #Memory Used# [2025-01-07 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:24:05 [end_date_ymd] => 2025-01-07 10:24:05 [RateCDR] => 1 ) [2025-01-07 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:24:05' and `end` < '2025-01-07 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:24:23] Production.INFO: count ==2490 [2025-01-07 10:24:24] Production.ERROR: pbx CDR StartTime 2025-01-07 07:24:05 - End Time 2025-01-07 10:24:05 [2025-01-07 10:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194268', 'tblTempUsageDetail_20' ) start [2025-01-07 10:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194268', 'tblTempUsageDetail_20' ) end [2025-01-07 10:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194268', 'tblTempVendorCDR_20' ) start [2025-01-07 10:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194268', 'tblTempVendorCDR_20' ) end [2025-01-07 10:24:24] Production.INFO: ProcessCDR(1,14194268,1,1,2) [2025-01-07 10:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194268', 'tblTempUsageDetail_20' ) start [2025-01-07 10:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194268', 'tblTempUsageDetail_20' ) end [2025-01-07 10:24:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:24:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:24:29] Production.INFO: ==30734== Releasing lock... [2025-01-07 10:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:24:29] Production.INFO: 46.75 MB #Memory Used# [2025-01-07 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:25:05 [end_date_ymd] => 2025-01-07 10:25:05 [RateCDR] => 1 ) [2025-01-07 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:25:05' and `end` < '2025-01-07 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:25:22] Production.INFO: count ==2499 [2025-01-07 10:25:23] Production.ERROR: pbx CDR StartTime 2025-01-07 07:25:05 - End Time 2025-01-07 10:25:05 [2025-01-07 10:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194273', 'tblTempUsageDetail_20' ) start [2025-01-07 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194273', 'tblTempUsageDetail_20' ) end [2025-01-07 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194273', 'tblTempVendorCDR_20' ) start [2025-01-07 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194273', 'tblTempVendorCDR_20' ) end [2025-01-07 10:25:23] Production.INFO: ProcessCDR(1,14194273,1,1,2) [2025-01-07 10:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194273', 'tblTempUsageDetail_20' ) start [2025-01-07 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194273', 'tblTempUsageDetail_20' ) end [2025-01-07 10:25:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:25:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:25:28] Production.INFO: ==30804== Releasing lock... [2025-01-07 10:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:25:28] Production.INFO: 46.75 MB #Memory Used# [2025-01-07 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:26:05 [end_date_ymd] => 2025-01-07 10:26:05 [RateCDR] => 1 ) [2025-01-07 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:26:05' and `end` < '2025-01-07 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:26:23] Production.INFO: count ==2518 [2025-01-07 10:26:24] Production.ERROR: pbx CDR StartTime 2025-01-07 07:26:05 - End Time 2025-01-07 10:26:05 [2025-01-07 10:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194278', 'tblTempUsageDetail_20' ) start [2025-01-07 10:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194278', 'tblTempUsageDetail_20' ) end [2025-01-07 10:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194278', 'tblTempVendorCDR_20' ) start [2025-01-07 10:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194278', 'tblTempVendorCDR_20' ) end [2025-01-07 10:26:24] Production.INFO: ProcessCDR(1,14194278,1,1,2) [2025-01-07 10:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194278', 'tblTempUsageDetail_20' ) start [2025-01-07 10:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194278', 'tblTempUsageDetail_20' ) end [2025-01-07 10:26:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:26:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:26:29] Production.INFO: ==30875== Releasing lock... [2025-01-07 10:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:26:29] Production.INFO: 47 MB #Memory Used# [2025-01-07 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:27:05 [end_date_ymd] => 2025-01-07 10:27:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 07:27:05' and `end` < '2025-01-07 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-01-07 10:27:18] Production.INFO: count ==2535 [2025-01-07 10:27:19] Production.ERROR: pbx CDR StartTime 2025-01-07 07:27:05 - End Time 2025-01-07 10:27:05 [2025-01-07 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194283', 'tblTempUsageDetail_20' ) start [2025-01-07 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194283', 'tblTempUsageDetail_20' ) end [2025-01-07 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194283', 'tblTempVendorCDR_20' ) start [2025-01-07 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194283', 'tblTempVendorCDR_20' ) end [2025-01-07 10:27:19] Production.INFO: ProcessCDR(1,14194283,1,1,2) [2025-01-07 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194283', 'tblTempUsageDetail_20' ) start [2025-01-07 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194283', 'tblTempUsageDetail_20' ) end [2025-01-07 10:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:27:24] Production.INFO: ==30949== Releasing lock... [2025-01-07 10:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:27:24] Production.INFO: 47 MB #Memory Used# [2025-01-07 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:28:05 [end_date_ymd] => 2025-01-07 10:28:05 [RateCDR] => 1 ) [2025-01-07 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:28:05' and `end` < '2025-01-07 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:28:24] Production.INFO: count ==2562 [2025-01-07 10:28:25] Production.ERROR: pbx CDR StartTime 2025-01-07 07:28:05 - End Time 2025-01-07 10:28:05 [2025-01-07 10:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194288', 'tblTempUsageDetail_20' ) start [2025-01-07 10:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194288', 'tblTempUsageDetail_20' ) end [2025-01-07 10:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194288', 'tblTempVendorCDR_20' ) start [2025-01-07 10:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194288', 'tblTempVendorCDR_20' ) end [2025-01-07 10:28:25] Production.INFO: ProcessCDR(1,14194288,1,1,2) [2025-01-07 10:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194288', 'tblTempUsageDetail_20' ) start [2025-01-07 10:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194288', 'tblTempUsageDetail_20' ) end [2025-01-07 10:28:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:28:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:28:29] Production.INFO: ==31022== Releasing lock... [2025-01-07 10:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:28:29] Production.INFO: 47.25 MB #Memory Used# [2025-01-07 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:29:05 [end_date_ymd] => 2025-01-07 10:29:05 [RateCDR] => 1 ) [2025-01-07 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:29:05' and `end` < '2025-01-07 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:29:19] Production.INFO: count ==2568 [2025-01-07 10:29:20] Production.ERROR: pbx CDR StartTime 2025-01-07 07:29:05 - End Time 2025-01-07 10:29:05 [2025-01-07 10:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194293', 'tblTempUsageDetail_20' ) start [2025-01-07 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194293', 'tblTempUsageDetail_20' ) end [2025-01-07 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194293', 'tblTempVendorCDR_20' ) start [2025-01-07 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194293', 'tblTempVendorCDR_20' ) end [2025-01-07 10:29:20] Production.INFO: ProcessCDR(1,14194293,1,1,2) [2025-01-07 10:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194293', 'tblTempUsageDetail_20' ) start [2025-01-07 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194293', 'tblTempUsageDetail_20' ) end [2025-01-07 10:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:29:24] Production.INFO: ==31092== Releasing lock... [2025-01-07 10:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:29:24] Production.INFO: 47.25 MB #Memory Used# [2025-01-07 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:30:06 [end_date_ymd] => 2025-01-07 10:30:06 [RateCDR] => 1 ) [2025-01-07 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:30:06' and `end` < '2025-01-07 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:30:30] Production.INFO: count ==2597 [2025-01-07 10:30:31] Production.ERROR: pbx CDR StartTime 2025-01-07 07:30:06 - End Time 2025-01-07 10:30:06 [2025-01-07 10:30:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194299', 'tblTempUsageDetail_20' ) start [2025-01-07 10:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194299', 'tblTempUsageDetail_20' ) end [2025-01-07 10:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194299', 'tblTempVendorCDR_20' ) start [2025-01-07 10:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194299', 'tblTempVendorCDR_20' ) end [2025-01-07 10:30:31] Production.INFO: ProcessCDR(1,14194299,1,1,2) [2025-01-07 10:30:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:30:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:30:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:30:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194299', 'tblTempUsageDetail_20' ) start [2025-01-07 10:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194299', 'tblTempUsageDetail_20' ) end [2025-01-07 10:30:36] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:30:36] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:30:36] Production.INFO: ==31165== Releasing lock... [2025-01-07 10:30:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:30:36] Production.INFO: 47.5 MB #Memory Used# [2025-01-07 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:31:05 [end_date_ymd] => 2025-01-07 10:31:05 [RateCDR] => 1 ) [2025-01-07 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:31:05' and `end` < '2025-01-07 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:31:21] Production.INFO: count ==2705 [2025-01-07 10:31:22] Production.ERROR: pbx CDR StartTime 2025-01-07 07:31:05 - End Time 2025-01-07 10:31:05 [2025-01-07 10:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194304', 'tblTempUsageDetail_20' ) start [2025-01-07 10:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194304', 'tblTempUsageDetail_20' ) end [2025-01-07 10:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194304', 'tblTempVendorCDR_20' ) start [2025-01-07 10:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194304', 'tblTempVendorCDR_20' ) end [2025-01-07 10:31:22] Production.INFO: ProcessCDR(1,14194304,1,1,2) [2025-01-07 10:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194304', 'tblTempUsageDetail_20' ) start [2025-01-07 10:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194304', 'tblTempUsageDetail_20' ) end [2025-01-07 10:31:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:31:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:31:27] Production.INFO: ==31279== Releasing lock... [2025-01-07 10:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:31:27] Production.INFO: 48.25 MB #Memory Used# [2025-01-07 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:32:06 [end_date_ymd] => 2025-01-07 10:32:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 07:32:06' and `end` < '2025-01-07 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-01-07 10:32:23] Production.INFO: count ==2717 [2025-01-07 10:32:24] Production.ERROR: pbx CDR StartTime 2025-01-07 07:32:06 - End Time 2025-01-07 10:32:06 [2025-01-07 10:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194309', 'tblTempUsageDetail_20' ) start [2025-01-07 10:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194309', 'tblTempUsageDetail_20' ) end [2025-01-07 10:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194309', 'tblTempVendorCDR_20' ) start [2025-01-07 10:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194309', 'tblTempVendorCDR_20' ) end [2025-01-07 10:32:24] Production.INFO: ProcessCDR(1,14194309,1,1,2) [2025-01-07 10:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194309', 'tblTempUsageDetail_20' ) start [2025-01-07 10:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194309', 'tblTempUsageDetail_20' ) end [2025-01-07 10:32:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:32:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:32:29] Production.INFO: ==31352== Releasing lock... [2025-01-07 10:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:32:29] Production.INFO: 48.5 MB #Memory Used# [2025-01-07 10:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:33:04 [end_date_ymd] => 2025-01-07 10:33:04 [RateCDR] => 1 ) [2025-01-07 10:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:33:04' and `end` < '2025-01-07 10:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:33:20] Production.INFO: count ==2722 [2025-01-07 10:33:21] Production.ERROR: pbx CDR StartTime 2025-01-07 07:33:04 - End Time 2025-01-07 10:33:04 [2025-01-07 10:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194314', 'tblTempUsageDetail_20' ) start [2025-01-07 10:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194314', 'tblTempUsageDetail_20' ) end [2025-01-07 10:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194314', 'tblTempVendorCDR_20' ) start [2025-01-07 10:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194314', 'tblTempVendorCDR_20' ) end [2025-01-07 10:33:22] Production.INFO: ProcessCDR(1,14194314,1,1,2) [2025-01-07 10:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194314', 'tblTempUsageDetail_20' ) start [2025-01-07 10:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194314', 'tblTempUsageDetail_20' ) end [2025-01-07 10:33:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:33:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:33:26] Production.INFO: ==31421== Releasing lock... [2025-01-07 10:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:33:26] Production.INFO: 48.5 MB #Memory Used# [2025-01-07 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:34:05 [end_date_ymd] => 2025-01-07 10:34:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 07:34:05' and `end` < '2025-01-07 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-01-07 10:34:24] Production.INFO: count ==2768 [2025-01-07 10:34:25] Production.ERROR: pbx CDR StartTime 2025-01-07 07:34:05 - End Time 2025-01-07 10:34:05 [2025-01-07 10:34:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194319', 'tblTempUsageDetail_20' ) start [2025-01-07 10:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194319', 'tblTempUsageDetail_20' ) end [2025-01-07 10:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194319', 'tblTempVendorCDR_20' ) start [2025-01-07 10:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194319', 'tblTempVendorCDR_20' ) end [2025-01-07 10:34:25] Production.INFO: ProcessCDR(1,14194319,1,1,2) [2025-01-07 10:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:34:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194319', 'tblTempUsageDetail_20' ) start [2025-01-07 10:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194319', 'tblTempUsageDetail_20' ) end [2025-01-07 10:34:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:34:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:34:30] Production.INFO: ==31496== Releasing lock... [2025-01-07 10:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:34:30] Production.INFO: 48.75 MB #Memory Used# [2025-01-07 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:35:05 [end_date_ymd] => 2025-01-07 10:35:05 [RateCDR] => 1 ) [2025-01-07 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:35:05' and `end` < '2025-01-07 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:35:40] Production.INFO: count ==2789 [2025-01-07 10:35:41] Production.ERROR: pbx CDR StartTime 2025-01-07 07:35:05 - End Time 2025-01-07 10:35:05 [2025-01-07 10:35:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:35:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194324', 'tblTempUsageDetail_20' ) start [2025-01-07 10:35:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194324', 'tblTempUsageDetail_20' ) end [2025-01-07 10:35:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194324', 'tblTempVendorCDR_20' ) start [2025-01-07 10:35:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194324', 'tblTempVendorCDR_20' ) end [2025-01-07 10:35:41] Production.INFO: ProcessCDR(1,14194324,1,1,2) [2025-01-07 10:35:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:35:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:35:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:35:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:35:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194324', 'tblTempUsageDetail_20' ) start [2025-01-07 10:35:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194324', 'tblTempUsageDetail_20' ) end [2025-01-07 10:35:45] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:35:46] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:35:46] Production.INFO: ==31567== Releasing lock... [2025-01-07 10:35:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:35:46] Production.INFO: 49 MB #Memory Used# [2025-01-07 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:36:05 [end_date_ymd] => 2025-01-07 10:36:05 [RateCDR] => 1 ) [2025-01-07 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:36:05' and `end` < '2025-01-07 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:36:27] Production.INFO: count ==2804 [2025-01-07 10:36:28] Production.ERROR: pbx CDR StartTime 2025-01-07 07:36:05 - End Time 2025-01-07 10:36:05 [2025-01-07 10:36:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194329', 'tblTempUsageDetail_20' ) start [2025-01-07 10:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194329', 'tblTempUsageDetail_20' ) end [2025-01-07 10:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194329', 'tblTempVendorCDR_20' ) start [2025-01-07 10:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194329', 'tblTempVendorCDR_20' ) end [2025-01-07 10:36:28] Production.INFO: ProcessCDR(1,14194329,1,1,2) [2025-01-07 10:36:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:36:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194329', 'tblTempUsageDetail_20' ) start [2025-01-07 10:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194329', 'tblTempUsageDetail_20' ) end [2025-01-07 10:36:32] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:36:32] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:36:32] Production.INFO: ==31638== Releasing lock... [2025-01-07 10:36:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:36:32] Production.INFO: 49 MB #Memory Used# [2025-01-07 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:37:05 [end_date_ymd] => 2025-01-07 10:37:05 [RateCDR] => 1 ) [2025-01-07 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:37:05' and `end` < '2025-01-07 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:37:29] Production.INFO: count ==2840 [2025-01-07 10:37:30] Production.ERROR: pbx CDR StartTime 2025-01-07 07:37:05 - End Time 2025-01-07 10:37:05 [2025-01-07 10:37:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194334', 'tblTempUsageDetail_20' ) start [2025-01-07 10:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194334', 'tblTempUsageDetail_20' ) end [2025-01-07 10:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194334', 'tblTempVendorCDR_20' ) start [2025-01-07 10:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194334', 'tblTempVendorCDR_20' ) end [2025-01-07 10:37:30] Production.INFO: ProcessCDR(1,14194334,1,1,2) [2025-01-07 10:37:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:37:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:37:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:37:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194334', 'tblTempUsageDetail_20' ) start [2025-01-07 10:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194334', 'tblTempUsageDetail_20' ) end [2025-01-07 10:37:35] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:37:35] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:37:35] Production.INFO: ==31709== Releasing lock... [2025-01-07 10:37:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:37:35] Production.INFO: 49.75 MB #Memory Used# [2025-01-07 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:38:05 [end_date_ymd] => 2025-01-07 10:38:05 [RateCDR] => 1 ) [2025-01-07 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:38:05' and `end` < '2025-01-07 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:38:28] Production.INFO: count ==2853 [2025-01-07 10:38:29] Production.ERROR: pbx CDR StartTime 2025-01-07 07:38:05 - End Time 2025-01-07 10:38:05 [2025-01-07 10:38:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194339', 'tblTempUsageDetail_20' ) start [2025-01-07 10:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194339', 'tblTempUsageDetail_20' ) end [2025-01-07 10:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194339', 'tblTempVendorCDR_20' ) start [2025-01-07 10:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194339', 'tblTempVendorCDR_20' ) end [2025-01-07 10:38:29] Production.INFO: ProcessCDR(1,14194339,1,1,2) [2025-01-07 10:38:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:38:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:38:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:38:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194339', 'tblTempUsageDetail_20' ) start [2025-01-07 10:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194339', 'tblTempUsageDetail_20' ) end [2025-01-07 10:38:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:38:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:38:34] Production.INFO: ==31782== Releasing lock... [2025-01-07 10:38:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:38:34] Production.INFO: 50 MB #Memory Used# [2025-01-07 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:39:05 [end_date_ymd] => 2025-01-07 10:39:05 [RateCDR] => 1 ) [2025-01-07 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:39:05' and `end` < '2025-01-07 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:39:28] Production.INFO: count ==2865 [2025-01-07 10:39:29] Production.ERROR: pbx CDR StartTime 2025-01-07 07:39:05 - End Time 2025-01-07 10:39:05 [2025-01-07 10:39:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194344', 'tblTempUsageDetail_20' ) start [2025-01-07 10:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194344', 'tblTempUsageDetail_20' ) end [2025-01-07 10:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194344', 'tblTempVendorCDR_20' ) start [2025-01-07 10:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194344', 'tblTempVendorCDR_20' ) end [2025-01-07 10:39:29] Production.INFO: ProcessCDR(1,14194344,1,1,2) [2025-01-07 10:39:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:39:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:39:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:39:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:39:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194344', 'tblTempUsageDetail_20' ) start [2025-01-07 10:39:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194344', 'tblTempUsageDetail_20' ) end [2025-01-07 10:39:33] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:39:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:39:34] Production.INFO: ==31853== Releasing lock... [2025-01-07 10:39:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:39:34] Production.INFO: 49.75 MB #Memory Used# [2025-01-07 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:40:06 [end_date_ymd] => 2025-01-07 10:40:06 [RateCDR] => 1 ) [2025-01-07 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:40:06' and `end` < '2025-01-07 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:40:26] Production.INFO: count ==2883 [2025-01-07 10:40:27] Production.ERROR: pbx CDR StartTime 2025-01-07 07:40:06 - End Time 2025-01-07 10:40:06 [2025-01-07 10:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194349', 'tblTempUsageDetail_20' ) start [2025-01-07 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194349', 'tblTempUsageDetail_20' ) end [2025-01-07 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194349', 'tblTempVendorCDR_20' ) start [2025-01-07 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194349', 'tblTempVendorCDR_20' ) end [2025-01-07 10:40:27] Production.INFO: ProcessCDR(1,14194349,1,1,2) [2025-01-07 10:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194349', 'tblTempUsageDetail_20' ) start [2025-01-07 10:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194349', 'tblTempUsageDetail_20' ) end [2025-01-07 10:40:32] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:40:32] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:40:32] Production.INFO: ==31928== Releasing lock... [2025-01-07 10:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:40:32] Production.INFO: 49.75 MB #Memory Used# [2025-01-07 10:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:41:04 [end_date_ymd] => 2025-01-07 10:41:04 [RateCDR] => 1 ) [2025-01-07 10:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:41:04' and `end` < '2025-01-07 10:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:41:32] Production.INFO: count ==2993 [2025-01-07 10:41:33] Production.ERROR: pbx CDR StartTime 2025-01-07 07:41:04 - End Time 2025-01-07 10:41:04 [2025-01-07 10:41:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:41:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194355', 'tblTempUsageDetail_20' ) start [2025-01-07 10:41:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194355', 'tblTempUsageDetail_20' ) end [2025-01-07 10:41:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194355', 'tblTempVendorCDR_20' ) start [2025-01-07 10:41:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194355', 'tblTempVendorCDR_20' ) end [2025-01-07 10:41:33] Production.INFO: ProcessCDR(1,14194355,1,1,2) [2025-01-07 10:41:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:41:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:41:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:41:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:41:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194355', 'tblTempUsageDetail_20' ) start [2025-01-07 10:41:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194355', 'tblTempUsageDetail_20' ) end [2025-01-07 10:41:39] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:41:39] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:41:39] Production.INFO: ==31999== Releasing lock... [2025-01-07 10:41:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:41:39] Production.INFO: 50.5 MB #Memory Used# [2025-01-07 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:42:05 [end_date_ymd] => 2025-01-07 10:42:05 [RateCDR] => 1 ) [2025-01-07 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:42:05' and `end` < '2025-01-07 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:42:25] Production.INFO: count ==2999 [2025-01-07 10:42:26] Production.ERROR: pbx CDR StartTime 2025-01-07 07:42:05 - End Time 2025-01-07 10:42:05 [2025-01-07 10:42:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194360', 'tblTempUsageDetail_20' ) start [2025-01-07 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194360', 'tblTempUsageDetail_20' ) end [2025-01-07 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194360', 'tblTempVendorCDR_20' ) start [2025-01-07 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194360', 'tblTempVendorCDR_20' ) end [2025-01-07 10:42:26] Production.INFO: ProcessCDR(1,14194360,1,1,2) [2025-01-07 10:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194360', 'tblTempUsageDetail_20' ) start [2025-01-07 10:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194360', 'tblTempUsageDetail_20' ) end [2025-01-07 10:42:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:42:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:42:31] Production.INFO: ==32070== Releasing lock... [2025-01-07 10:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:42:31] Production.INFO: 50.75 MB #Memory Used# [2025-01-07 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:43:05 [end_date_ymd] => 2025-01-07 10:43:05 [RateCDR] => 1 ) [2025-01-07 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:43:05' and `end` < '2025-01-07 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:43:30] Production.INFO: count ==3019 [2025-01-07 10:43:31] Production.ERROR: pbx CDR StartTime 2025-01-07 07:43:05 - End Time 2025-01-07 10:43:05 [2025-01-07 10:43:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194365', 'tblTempUsageDetail_20' ) start [2025-01-07 10:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194365', 'tblTempUsageDetail_20' ) end [2025-01-07 10:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194365', 'tblTempVendorCDR_20' ) start [2025-01-07 10:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194365', 'tblTempVendorCDR_20' ) end [2025-01-07 10:43:31] Production.INFO: ProcessCDR(1,14194365,1,1,2) [2025-01-07 10:43:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:43:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:43:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:43:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:43:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194365', 'tblTempUsageDetail_20' ) start [2025-01-07 10:43:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194365', 'tblTempUsageDetail_20' ) end [2025-01-07 10:43:36] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:43:36] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:43:36] Production.INFO: ==32143== Releasing lock... [2025-01-07 10:43:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:43:36] Production.INFO: 51.25 MB #Memory Used# [2025-01-07 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:44:05 [end_date_ymd] => 2025-01-07 10:44:05 [RateCDR] => 1 ) [2025-01-07 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:44:05' and `end` < '2025-01-07 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:44:24] Production.INFO: count ==3031 [2025-01-07 10:44:25] Production.ERROR: pbx CDR StartTime 2025-01-07 07:44:05 - End Time 2025-01-07 10:44:05 [2025-01-07 10:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194370', 'tblTempUsageDetail_20' ) start [2025-01-07 10:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194370', 'tblTempUsageDetail_20' ) end [2025-01-07 10:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194370', 'tblTempVendorCDR_20' ) start [2025-01-07 10:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194370', 'tblTempVendorCDR_20' ) end [2025-01-07 10:44:25] Production.INFO: ProcessCDR(1,14194370,1,1,2) [2025-01-07 10:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194370', 'tblTempUsageDetail_20' ) start [2025-01-07 10:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194370', 'tblTempUsageDetail_20' ) end [2025-01-07 10:44:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:44:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:44:30] Production.INFO: ==32213== Releasing lock... [2025-01-07 10:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:44:30] Production.INFO: 52 MB #Memory Used# [2025-01-07 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:45:05 [end_date_ymd] => 2025-01-07 10:45:05 [RateCDR] => 1 ) [2025-01-07 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:45:05' and `end` < '2025-01-07 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:45:21] Production.INFO: count ==3054 [2025-01-07 10:45:22] Production.ERROR: pbx CDR StartTime 2025-01-07 07:45:05 - End Time 2025-01-07 10:45:05 [2025-01-07 10:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194375', 'tblTempUsageDetail_20' ) start [2025-01-07 10:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194375', 'tblTempUsageDetail_20' ) end [2025-01-07 10:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194375', 'tblTempVendorCDR_20' ) start [2025-01-07 10:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194375', 'tblTempVendorCDR_20' ) end [2025-01-07 10:45:22] Production.INFO: ProcessCDR(1,14194375,1,1,2) [2025-01-07 10:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194375', 'tblTempUsageDetail_20' ) start [2025-01-07 10:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194375', 'tblTempUsageDetail_20' ) end [2025-01-07 10:45:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:45:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:45:27] Production.INFO: ==32285== Releasing lock... [2025-01-07 10:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:45:27] Production.INFO: 52.5 MB #Memory Used# [2025-01-07 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:46:05 [end_date_ymd] => 2025-01-07 10:46:05 [RateCDR] => 1 ) [2025-01-07 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:46:05' and `end` < '2025-01-07 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:46:22] Production.INFO: count ==3057 [2025-01-07 10:46:23] Production.ERROR: pbx CDR StartTime 2025-01-07 07:46:05 - End Time 2025-01-07 10:46:05 [2025-01-07 10:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194380', 'tblTempUsageDetail_20' ) start [2025-01-07 10:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194380', 'tblTempUsageDetail_20' ) end [2025-01-07 10:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194380', 'tblTempVendorCDR_20' ) start [2025-01-07 10:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194380', 'tblTempVendorCDR_20' ) end [2025-01-07 10:46:23] Production.INFO: ProcessCDR(1,14194380,1,1,2) [2025-01-07 10:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194380', 'tblTempUsageDetail_20' ) start [2025-01-07 10:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194380', 'tblTempUsageDetail_20' ) end [2025-01-07 10:46:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:46:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:46:28] Production.INFO: ==32356== Releasing lock... [2025-01-07 10:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:46:28] Production.INFO: 51.5 MB #Memory Used# [2025-01-07 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:47:05 [end_date_ymd] => 2025-01-07 10:47:05 [RateCDR] => 1 ) [2025-01-07 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:47:05' and `end` < '2025-01-07 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:47:26] Production.INFO: count ==3049 [2025-01-07 10:47:27] Production.ERROR: pbx CDR StartTime 2025-01-07 07:47:05 - End Time 2025-01-07 10:47:05 [2025-01-07 10:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194385', 'tblTempUsageDetail_20' ) start [2025-01-07 10:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194385', 'tblTempUsageDetail_20' ) end [2025-01-07 10:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194385', 'tblTempVendorCDR_20' ) start [2025-01-07 10:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194385', 'tblTempVendorCDR_20' ) end [2025-01-07 10:47:28] Production.INFO: ProcessCDR(1,14194385,1,1,2) [2025-01-07 10:47:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:47:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:47:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:47:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194385', 'tblTempUsageDetail_20' ) start [2025-01-07 10:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194385', 'tblTempUsageDetail_20' ) end [2025-01-07 10:47:32] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:47:32] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:47:32] Production.INFO: ==32466== Releasing lock... [2025-01-07 10:47:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:47:32] Production.INFO: 51.5 MB #Memory Used# [2025-01-07 10:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:48:04 [end_date_ymd] => 2025-01-07 10:48:04 [RateCDR] => 1 ) [2025-01-07 10:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:48:04' and `end` < '2025-01-07 10:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:48:28] Production.INFO: count ==3058 [2025-01-07 10:48:29] Production.ERROR: pbx CDR StartTime 2025-01-07 07:48:04 - End Time 2025-01-07 10:48:04 [2025-01-07 10:48:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194390', 'tblTempUsageDetail_20' ) start [2025-01-07 10:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194390', 'tblTempUsageDetail_20' ) end [2025-01-07 10:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194390', 'tblTempVendorCDR_20' ) start [2025-01-07 10:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194390', 'tblTempVendorCDR_20' ) end [2025-01-07 10:48:29] Production.INFO: ProcessCDR(1,14194390,1,1,2) [2025-01-07 10:48:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:48:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:48:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:48:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:48:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194390', 'tblTempUsageDetail_20' ) start [2025-01-07 10:48:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194390', 'tblTempUsageDetail_20' ) end [2025-01-07 10:48:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:48:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:48:34] Production.INFO: ==32543== Releasing lock... [2025-01-07 10:48:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:48:34] Production.INFO: 51.75 MB #Memory Used# [2025-01-07 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:49:05 [end_date_ymd] => 2025-01-07 10:49:05 [RateCDR] => 1 ) [2025-01-07 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:49:05' and `end` < '2025-01-07 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:49:23] Production.INFO: count ==3077 [2025-01-07 10:49:24] Production.ERROR: pbx CDR StartTime 2025-01-07 07:49:05 - End Time 2025-01-07 10:49:05 [2025-01-07 10:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194395', 'tblTempUsageDetail_20' ) start [2025-01-07 10:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194395', 'tblTempUsageDetail_20' ) end [2025-01-07 10:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194395', 'tblTempVendorCDR_20' ) start [2025-01-07 10:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194395', 'tblTempVendorCDR_20' ) end [2025-01-07 10:49:24] Production.INFO: ProcessCDR(1,14194395,1,1,2) [2025-01-07 10:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194395', 'tblTempUsageDetail_20' ) start [2025-01-07 10:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194395', 'tblTempUsageDetail_20' ) end [2025-01-07 10:49:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:49:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:49:29] Production.INFO: ==32615== Releasing lock... [2025-01-07 10:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:49:29] Production.INFO: 52 MB #Memory Used# [2025-01-07 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:50:06 [end_date_ymd] => 2025-01-07 10:50:06 [RateCDR] => 1 ) [2025-01-07 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:50:06' and `end` < '2025-01-07 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:50:31] Production.INFO: count ==3085 [2025-01-07 10:50:32] Production.ERROR: pbx CDR StartTime 2025-01-07 07:50:06 - End Time 2025-01-07 10:50:06 [2025-01-07 10:50:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194401', 'tblTempUsageDetail_20' ) start [2025-01-07 10:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194401', 'tblTempUsageDetail_20' ) end [2025-01-07 10:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194401', 'tblTempVendorCDR_20' ) start [2025-01-07 10:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194401', 'tblTempVendorCDR_20' ) end [2025-01-07 10:50:32] Production.INFO: ProcessCDR(1,14194401,1,1,2) [2025-01-07 10:50:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:50:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:50:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:50:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194401', 'tblTempUsageDetail_20' ) start [2025-01-07 10:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194401', 'tblTempUsageDetail_20' ) end [2025-01-07 10:50:37] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:50:37] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:50:37] Production.INFO: ==32689== Releasing lock... [2025-01-07 10:50:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:50:37] Production.INFO: 52.5 MB #Memory Used# [2025-01-07 10:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:51:04 [end_date_ymd] => 2025-01-07 10:51:04 [RateCDR] => 1 ) [2025-01-07 10:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:51:04' and `end` < '2025-01-07 10:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:51:22] Production.INFO: count ==3219 [2025-01-07 10:51:23] Production.ERROR: pbx CDR StartTime 2025-01-07 07:51:04 - End Time 2025-01-07 10:51:04 [2025-01-07 10:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194406', 'tblTempUsageDetail_20' ) start [2025-01-07 10:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194406', 'tblTempUsageDetail_20' ) end [2025-01-07 10:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194406', 'tblTempVendorCDR_20' ) start [2025-01-07 10:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194406', 'tblTempVendorCDR_20' ) end [2025-01-07 10:51:23] Production.INFO: ProcessCDR(1,14194406,1,1,2) [2025-01-07 10:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194406', 'tblTempUsageDetail_20' ) start [2025-01-07 10:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194406', 'tblTempUsageDetail_20' ) end [2025-01-07 10:51:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:51:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:51:28] Production.INFO: ==32762== Releasing lock... [2025-01-07 10:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:51:28] Production.INFO: 53 MB #Memory Used# [2025-01-07 10:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:52:06 [end_date_ymd] => 2025-01-07 10:52:06 [RateCDR] => 1 ) [2025-01-07 10:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:52:06' and `end` < '2025-01-07 10:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:52:19] Production.INFO: count ==3223 [2025-01-07 10:52:20] Production.ERROR: pbx CDR StartTime 2025-01-07 07:52:06 - End Time 2025-01-07 10:52:06 [2025-01-07 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194411', 'tblTempUsageDetail_20' ) start [2025-01-07 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194411', 'tblTempUsageDetail_20' ) end [2025-01-07 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194411', 'tblTempVendorCDR_20' ) start [2025-01-07 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194411', 'tblTempVendorCDR_20' ) end [2025-01-07 10:52:20] Production.INFO: ProcessCDR(1,14194411,1,1,2) [2025-01-07 10:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194411', 'tblTempUsageDetail_20' ) start [2025-01-07 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194411', 'tblTempUsageDetail_20' ) end [2025-01-07 10:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:52:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:52:25] Production.INFO: ==387== Releasing lock... [2025-01-07 10:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:52:25] Production.INFO: 53.75 MB #Memory Used# [2025-01-07 10:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:53:04 [end_date_ymd] => 2025-01-07 10:53:04 [RateCDR] => 1 ) [2025-01-07 10:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:53:04' and `end` < '2025-01-07 10:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:53:18] Production.INFO: count ==3227 [2025-01-07 10:53:19] Production.ERROR: pbx CDR StartTime 2025-01-07 07:53:04 - End Time 2025-01-07 10:53:04 [2025-01-07 10:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194416', 'tblTempUsageDetail_20' ) start [2025-01-07 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194416', 'tblTempUsageDetail_20' ) end [2025-01-07 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194416', 'tblTempVendorCDR_20' ) start [2025-01-07 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194416', 'tblTempVendorCDR_20' ) end [2025-01-07 10:53:19] Production.INFO: ProcessCDR(1,14194416,1,1,2) [2025-01-07 10:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194416', 'tblTempUsageDetail_20' ) start [2025-01-07 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194416', 'tblTempUsageDetail_20' ) end [2025-01-07 10:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:53:24] Production.INFO: ==459== Releasing lock... [2025-01-07 10:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:53:24] Production.INFO: 53.75 MB #Memory Used# [2025-01-07 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:54:05 [end_date_ymd] => 2025-01-07 10:54:05 [RateCDR] => 1 ) [2025-01-07 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:54:05' and `end` < '2025-01-07 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:54:25] Production.INFO: count ==3253 [2025-01-07 10:54:26] Production.ERROR: pbx CDR StartTime 2025-01-07 07:54:05 - End Time 2025-01-07 10:54:05 [2025-01-07 10:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194421', 'tblTempUsageDetail_20' ) start [2025-01-07 10:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194421', 'tblTempUsageDetail_20' ) end [2025-01-07 10:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194421', 'tblTempVendorCDR_20' ) start [2025-01-07 10:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194421', 'tblTempVendorCDR_20' ) end [2025-01-07 10:54:26] Production.INFO: ProcessCDR(1,14194421,1,1,2) [2025-01-07 10:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:54:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194421', 'tblTempUsageDetail_20' ) start [2025-01-07 10:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194421', 'tblTempUsageDetail_20' ) end [2025-01-07 10:54:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:54:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:54:31] Production.INFO: ==534== Releasing lock... [2025-01-07 10:54:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:54:31] Production.INFO: 53.25 MB #Memory Used# [2025-01-07 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:55:05 [end_date_ymd] => 2025-01-07 10:55:05 [RateCDR] => 1 ) [2025-01-07 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:55:05' and `end` < '2025-01-07 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:55:25] Production.INFO: count ==3271 [2025-01-07 10:55:26] Production.ERROR: pbx CDR StartTime 2025-01-07 07:55:05 - End Time 2025-01-07 10:55:05 [2025-01-07 10:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194426', 'tblTempUsageDetail_20' ) start [2025-01-07 10:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194426', 'tblTempUsageDetail_20' ) end [2025-01-07 10:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194426', 'tblTempVendorCDR_20' ) start [2025-01-07 10:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194426', 'tblTempVendorCDR_20' ) end [2025-01-07 10:55:26] Production.INFO: ProcessCDR(1,14194426,1,1,2) [2025-01-07 10:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:55:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194426', 'tblTempUsageDetail_20' ) start [2025-01-07 10:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194426', 'tblTempUsageDetail_20' ) end [2025-01-07 10:55:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:55:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:55:31] Production.INFO: ==609== Releasing lock... [2025-01-07 10:55:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:55:31] Production.INFO: 53.5 MB #Memory Used# [2025-01-07 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:56:06 [end_date_ymd] => 2025-01-07 10:56:06 [RateCDR] => 1 ) [2025-01-07 10:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:56:06' and `end` < '2025-01-07 10:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:56:32] Production.INFO: count ==3274 [2025-01-07 10:56:33] Production.ERROR: pbx CDR StartTime 2025-01-07 07:56:06 - End Time 2025-01-07 10:56:06 [2025-01-07 10:56:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194431', 'tblTempUsageDetail_20' ) start [2025-01-07 10:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194431', 'tblTempUsageDetail_20' ) end [2025-01-07 10:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194431', 'tblTempVendorCDR_20' ) start [2025-01-07 10:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194431', 'tblTempVendorCDR_20' ) end [2025-01-07 10:56:33] Production.INFO: ProcessCDR(1,14194431,1,1,2) [2025-01-07 10:56:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:56:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:56:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:56:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:56:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194431', 'tblTempUsageDetail_20' ) start [2025-01-07 10:56:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194431', 'tblTempUsageDetail_20' ) end [2025-01-07 10:56:38] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:56:38] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:56:38] Production.INFO: ==709== Releasing lock... [2025-01-07 10:56:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:56:38] Production.INFO: 53.5 MB #Memory Used# [2025-01-07 10:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:57:04 [end_date_ymd] => 2025-01-07 10:57:04 [RateCDR] => 1 ) [2025-01-07 10:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:57:04' and `end` < '2025-01-07 10:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:57:25] Production.INFO: count ==3307 [2025-01-07 10:57:26] Production.ERROR: pbx CDR StartTime 2025-01-07 07:57:04 - End Time 2025-01-07 10:57:04 [2025-01-07 10:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194436', 'tblTempUsageDetail_20' ) start [2025-01-07 10:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194436', 'tblTempUsageDetail_20' ) end [2025-01-07 10:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194436', 'tblTempVendorCDR_20' ) start [2025-01-07 10:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194436', 'tblTempVendorCDR_20' ) end [2025-01-07 10:57:26] Production.INFO: ProcessCDR(1,14194436,1,1,2) [2025-01-07 10:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:57:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:57:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:57:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194436', 'tblTempUsageDetail_20' ) start [2025-01-07 10:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194436', 'tblTempUsageDetail_20' ) end [2025-01-07 10:57:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:57:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:57:31] Production.INFO: ==783== Releasing lock... [2025-01-07 10:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:57:31] Production.INFO: 52.75 MB #Memory Used# [2025-01-07 10:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:58:04 [end_date_ymd] => 2025-01-07 10:58:04 [RateCDR] => 1 ) [2025-01-07 10:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:58:04' and `end` < '2025-01-07 10:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:58:28] Production.INFO: count ==3361 [2025-01-07 10:58:29] Production.ERROR: pbx CDR StartTime 2025-01-07 07:58:04 - End Time 2025-01-07 10:58:04 [2025-01-07 10:58:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194441', 'tblTempUsageDetail_20' ) start [2025-01-07 10:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194441', 'tblTempUsageDetail_20' ) end [2025-01-07 10:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194441', 'tblTempVendorCDR_20' ) start [2025-01-07 10:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194441', 'tblTempVendorCDR_20' ) end [2025-01-07 10:58:29] Production.INFO: ProcessCDR(1,14194441,1,1,2) [2025-01-07 10:58:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:58:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:58:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:58:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:58:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194441', 'tblTempUsageDetail_20' ) start [2025-01-07 10:58:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194441', 'tblTempUsageDetail_20' ) end [2025-01-07 10:58:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:58:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:58:34] Production.INFO: ==854== Releasing lock... [2025-01-07 10:58:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:58:34] Production.INFO: 53.5 MB #Memory Used# [2025-01-07 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 07:59:05 [end_date_ymd] => 2025-01-07 10:59:05 [RateCDR] => 1 ) [2025-01-07 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 07:59:05' and `end` < '2025-01-07 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 10:59:24] Production.INFO: count ==3371 [2025-01-07 10:59:25] Production.ERROR: pbx CDR StartTime 2025-01-07 07:59:05 - End Time 2025-01-07 10:59:05 [2025-01-07 10:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 10:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194446', 'tblTempUsageDetail_20' ) start [2025-01-07 10:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194446', 'tblTempUsageDetail_20' ) end [2025-01-07 10:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194446', 'tblTempVendorCDR_20' ) start [2025-01-07 10:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194446', 'tblTempVendorCDR_20' ) end [2025-01-07 10:59:25] Production.INFO: ProcessCDR(1,14194446,1,1,2) [2025-01-07 10:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 10:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 10:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194446', 'tblTempUsageDetail_20' ) start [2025-01-07 10:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194446', 'tblTempUsageDetail_20' ) end [2025-01-07 10:59:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 10:59:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 10:59:30] Production.INFO: ==927== Releasing lock... [2025-01-07 10:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 10:59:30] Production.INFO: 53.5 MB #Memory Used# [2025-01-07 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:00:06 [end_date_ymd] => 2025-01-07 11:00:06 [RateCDR] => 1 ) [2025-01-07 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:00:06' and `end` < '2025-01-07 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:00:21] Production.INFO: count ==3383 [2025-01-07 11:00:22] Production.ERROR: pbx CDR StartTime 2025-01-07 08:00:06 - End Time 2025-01-07 11:00:06 [2025-01-07 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194452', 'tblTempUsageDetail_20' ) start [2025-01-07 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194452', 'tblTempUsageDetail_20' ) end [2025-01-07 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194452', 'tblTempVendorCDR_20' ) start [2025-01-07 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194452', 'tblTempVendorCDR_20' ) end [2025-01-07 11:00:22] Production.INFO: ProcessCDR(1,14194452,1,1,2) [2025-01-07 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194452', 'tblTempUsageDetail_20' ) start [2025-01-07 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194452', 'tblTempUsageDetail_20' ) end [2025-01-07 11:00:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:00:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:00:27] Production.INFO: ==1001== Releasing lock... [2025-01-07 11:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:00:27] Production.INFO: 53.25 MB #Memory Used# [2025-01-07 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:01:05 [end_date_ymd] => 2025-01-07 11:01:05 [RateCDR] => 1 ) [2025-01-07 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:01:05' and `end` < '2025-01-07 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:01:19] Production.INFO: count ==3477 [2025-01-07 11:01:20] Production.ERROR: pbx CDR StartTime 2025-01-07 08:01:05 - End Time 2025-01-07 11:01:05 [2025-01-07 11:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194457', 'tblTempUsageDetail_20' ) start [2025-01-07 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194457', 'tblTempUsageDetail_20' ) end [2025-01-07 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194457', 'tblTempVendorCDR_20' ) start [2025-01-07 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194457', 'tblTempVendorCDR_20' ) end [2025-01-07 11:01:20] Production.INFO: ProcessCDR(1,14194457,1,1,2) [2025-01-07 11:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194457', 'tblTempUsageDetail_20' ) start [2025-01-07 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194457', 'tblTempUsageDetail_20' ) end [2025-01-07 11:01:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:01:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:01:25] Production.INFO: ==1126== Releasing lock... [2025-01-07 11:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:01:25] Production.INFO: 54 MB #Memory Used# [2025-01-07 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:02:05 [end_date_ymd] => 2025-01-07 11:02:05 [RateCDR] => 1 ) [2025-01-07 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:02:05' and `end` < '2025-01-07 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:02:23] Production.INFO: count ==3504 [2025-01-07 11:02:24] Production.ERROR: pbx CDR StartTime 2025-01-07 08:02:05 - End Time 2025-01-07 11:02:05 [2025-01-07 11:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194462', 'tblTempUsageDetail_20' ) start [2025-01-07 11:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194462', 'tblTempUsageDetail_20' ) end [2025-01-07 11:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194462', 'tblTempVendorCDR_20' ) start [2025-01-07 11:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194462', 'tblTempVendorCDR_20' ) end [2025-01-07 11:02:24] Production.INFO: ProcessCDR(1,14194462,1,1,2) [2025-01-07 11:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194462', 'tblTempUsageDetail_20' ) start [2025-01-07 11:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194462', 'tblTempUsageDetail_20' ) end [2025-01-07 11:02:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:02:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:02:29] Production.INFO: ==1256== Releasing lock... [2025-01-07 11:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:02:29] Production.INFO: 54.5 MB #Memory Used# [2025-01-07 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:03:05 [end_date_ymd] => 2025-01-07 11:03:05 [RateCDR] => 1 ) [2025-01-07 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:03:05' and `end` < '2025-01-07 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:03:19] Production.INFO: count ==3509 [2025-01-07 11:03:20] Production.ERROR: pbx CDR StartTime 2025-01-07 08:03:05 - End Time 2025-01-07 11:03:05 [2025-01-07 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194467', 'tblTempUsageDetail_20' ) start [2025-01-07 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194467', 'tblTempUsageDetail_20' ) end [2025-01-07 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194467', 'tblTempVendorCDR_20' ) start [2025-01-07 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194467', 'tblTempVendorCDR_20' ) end [2025-01-07 11:03:21] Production.INFO: ProcessCDR(1,14194467,1,1,2) [2025-01-07 11:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194467', 'tblTempUsageDetail_20' ) start [2025-01-07 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194467', 'tblTempUsageDetail_20' ) end [2025-01-07 11:03:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:03:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:03:25] Production.INFO: ==1371== Releasing lock... [2025-01-07 11:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:03:25] Production.INFO: 55 MB #Memory Used# [2025-01-07 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:04:05 [end_date_ymd] => 2025-01-07 11:04:05 [RateCDR] => 1 ) [2025-01-07 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:04:05' and `end` < '2025-01-07 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:04:18] Production.INFO: count ==3504 [2025-01-07 11:04:19] Production.ERROR: pbx CDR StartTime 2025-01-07 08:04:05 - End Time 2025-01-07 11:04:05 [2025-01-07 11:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194472', 'tblTempUsageDetail_20' ) start [2025-01-07 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194472', 'tblTempUsageDetail_20' ) end [2025-01-07 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194472', 'tblTempVendorCDR_20' ) start [2025-01-07 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194472', 'tblTempVendorCDR_20' ) end [2025-01-07 11:04:19] Production.INFO: ProcessCDR(1,14194472,1,1,2) [2025-01-07 11:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194472', 'tblTempUsageDetail_20' ) start [2025-01-07 11:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194472', 'tblTempUsageDetail_20' ) end [2025-01-07 11:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:04:24] Production.INFO: ==1444== Releasing lock... [2025-01-07 11:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:04:24] Production.INFO: 55.25 MB #Memory Used# [2025-01-07 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:05:05 [end_date_ymd] => 2025-01-07 11:05:05 [RateCDR] => 1 ) [2025-01-07 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:05:05' and `end` < '2025-01-07 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:05:19] Production.INFO: count ==3523 [2025-01-07 11:05:20] Production.ERROR: pbx CDR StartTime 2025-01-07 08:05:05 - End Time 2025-01-07 11:05:05 [2025-01-07 11:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194477', 'tblTempUsageDetail_20' ) start [2025-01-07 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194477', 'tblTempUsageDetail_20' ) end [2025-01-07 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194477', 'tblTempVendorCDR_20' ) start [2025-01-07 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194477', 'tblTempVendorCDR_20' ) end [2025-01-07 11:05:20] Production.INFO: ProcessCDR(1,14194477,1,1,2) [2025-01-07 11:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194477', 'tblTempUsageDetail_20' ) start [2025-01-07 11:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194477', 'tblTempUsageDetail_20' ) end [2025-01-07 11:05:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:05:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:05:25] Production.INFO: ==1632== Releasing lock... [2025-01-07 11:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:05:25] Production.INFO: 55.25 MB #Memory Used# [2025-01-07 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:06:05 [end_date_ymd] => 2025-01-07 11:06:05 [RateCDR] => 1 ) [2025-01-07 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:06:05' and `end` < '2025-01-07 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:06:19] Production.INFO: count ==3526 [2025-01-07 11:06:21] Production.ERROR: pbx CDR StartTime 2025-01-07 08:06:05 - End Time 2025-01-07 11:06:05 [2025-01-07 11:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194482', 'tblTempUsageDetail_20' ) start [2025-01-07 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194482', 'tblTempUsageDetail_20' ) end [2025-01-07 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194482', 'tblTempVendorCDR_20' ) start [2025-01-07 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194482', 'tblTempVendorCDR_20' ) end [2025-01-07 11:06:21] Production.INFO: ProcessCDR(1,14194482,1,1,2) [2025-01-07 11:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194482', 'tblTempUsageDetail_20' ) start [2025-01-07 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194482', 'tblTempUsageDetail_20' ) end [2025-01-07 11:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:06:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:06:26] Production.INFO: ==1701== Releasing lock... [2025-01-07 11:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:06:26] Production.INFO: 54.75 MB #Memory Used# [2025-01-07 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:07:05 [end_date_ymd] => 2025-01-07 11:07:05 [RateCDR] => 1 ) [2025-01-07 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:07:05' and `end` < '2025-01-07 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:07:21] Production.INFO: count ==3536 [2025-01-07 11:07:22] Production.ERROR: pbx CDR StartTime 2025-01-07 08:07:05 - End Time 2025-01-07 11:07:05 [2025-01-07 11:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194487', 'tblTempUsageDetail_20' ) start [2025-01-07 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194487', 'tblTempUsageDetail_20' ) end [2025-01-07 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194487', 'tblTempVendorCDR_20' ) start [2025-01-07 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194487', 'tblTempVendorCDR_20' ) end [2025-01-07 11:07:22] Production.INFO: ProcessCDR(1,14194487,1,1,2) [2025-01-07 11:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194487', 'tblTempUsageDetail_20' ) start [2025-01-07 11:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194487', 'tblTempUsageDetail_20' ) end [2025-01-07 11:07:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:07:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:07:27] Production.INFO: ==1776== Releasing lock... [2025-01-07 11:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:07:27] Production.INFO: 54.75 MB #Memory Used# [2025-01-07 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:08:05 [end_date_ymd] => 2025-01-07 11:08:05 [RateCDR] => 1 ) [2025-01-07 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:08:05' and `end` < '2025-01-07 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:08:25] Production.INFO: count ==3561 [2025-01-07 11:08:26] Production.ERROR: pbx CDR StartTime 2025-01-07 08:08:05 - End Time 2025-01-07 11:08:05 [2025-01-07 11:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194492', 'tblTempUsageDetail_20' ) start [2025-01-07 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194492', 'tblTempUsageDetail_20' ) end [2025-01-07 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194492', 'tblTempVendorCDR_20' ) start [2025-01-07 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194492', 'tblTempVendorCDR_20' ) end [2025-01-07 11:08:26] Production.INFO: ProcessCDR(1,14194492,1,1,2) [2025-01-07 11:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194492', 'tblTempUsageDetail_20' ) start [2025-01-07 11:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194492', 'tblTempUsageDetail_20' ) end [2025-01-07 11:08:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:08:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:08:31] Production.INFO: ==1927== Releasing lock... [2025-01-07 11:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:08:31] Production.INFO: 55.5 MB #Memory Used# [2025-01-07 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:09:05 [end_date_ymd] => 2025-01-07 11:09:05 [RateCDR] => 1 ) [2025-01-07 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:09:05' and `end` < '2025-01-07 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:09:27] Production.INFO: count ==3563 [2025-01-07 11:09:28] Production.ERROR: pbx CDR StartTime 2025-01-07 08:09:05 - End Time 2025-01-07 11:09:05 [2025-01-07 11:09:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194497', 'tblTempUsageDetail_20' ) start [2025-01-07 11:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194497', 'tblTempUsageDetail_20' ) end [2025-01-07 11:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194497', 'tblTempVendorCDR_20' ) start [2025-01-07 11:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194497', 'tblTempVendorCDR_20' ) end [2025-01-07 11:09:28] Production.INFO: ProcessCDR(1,14194497,1,1,2) [2025-01-07 11:09:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:09:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:09:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:09:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194497', 'tblTempUsageDetail_20' ) start [2025-01-07 11:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194497', 'tblTempUsageDetail_20' ) end [2025-01-07 11:09:33] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:09:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:09:33] Production.INFO: ==2000== Releasing lock... [2025-01-07 11:09:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:09:33] Production.INFO: 55.25 MB #Memory Used# [2025-01-07 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:10:06 [end_date_ymd] => 2025-01-07 11:10:06 [RateCDR] => 1 ) [2025-01-07 11:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:10:06' and `end` < '2025-01-07 11:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:10:36] Production.INFO: count ==3563 [2025-01-07 11:10:37] Production.ERROR: pbx CDR StartTime 2025-01-07 08:10:06 - End Time 2025-01-07 11:10:06 [2025-01-07 11:10:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194503', 'tblTempUsageDetail_20' ) start [2025-01-07 11:10:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194503', 'tblTempUsageDetail_20' ) end [2025-01-07 11:10:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194503', 'tblTempVendorCDR_20' ) start [2025-01-07 11:10:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194503', 'tblTempVendorCDR_20' ) end [2025-01-07 11:10:38] Production.INFO: ProcessCDR(1,14194503,1,1,2) [2025-01-07 11:10:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:10:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:10:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:10:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:10:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194503', 'tblTempUsageDetail_20' ) start [2025-01-07 11:10:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194503', 'tblTempUsageDetail_20' ) end [2025-01-07 11:10:42] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:10:42] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:10:42] Production.INFO: ==2072== Releasing lock... [2025-01-07 11:10:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:10:42] Production.INFO: 55.75 MB #Memory Used# [2025-01-07 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:11:05 [end_date_ymd] => 2025-01-07 11:11:05 [RateCDR] => 1 ) [2025-01-07 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:11:05' and `end` < '2025-01-07 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:11:29] Production.INFO: count ==3634 [2025-01-07 11:11:30] Production.ERROR: pbx CDR StartTime 2025-01-07 08:11:05 - End Time 2025-01-07 11:11:05 [2025-01-07 11:11:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194508', 'tblTempUsageDetail_20' ) start [2025-01-07 11:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194508', 'tblTempUsageDetail_20' ) end [2025-01-07 11:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194508', 'tblTempVendorCDR_20' ) start [2025-01-07 11:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194508', 'tblTempVendorCDR_20' ) end [2025-01-07 11:11:30] Production.INFO: ProcessCDR(1,14194508,1,1,2) [2025-01-07 11:11:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:11:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:11:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:11:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:11:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194508', 'tblTempUsageDetail_20' ) start [2025-01-07 11:11:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194508', 'tblTempUsageDetail_20' ) end [2025-01-07 11:11:35] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:11:35] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:11:35] Production.INFO: ==2146== Releasing lock... [2025-01-07 11:11:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:11:35] Production.INFO: 55.25 MB #Memory Used# [2025-01-07 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:12:05 [end_date_ymd] => 2025-01-07 11:12:05 [RateCDR] => 1 ) [2025-01-07 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:12:05' and `end` < '2025-01-07 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:12:24] Production.INFO: count ==3656 [2025-01-07 11:12:25] Production.ERROR: pbx CDR StartTime 2025-01-07 08:12:05 - End Time 2025-01-07 11:12:05 [2025-01-07 11:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194513', 'tblTempUsageDetail_20' ) start [2025-01-07 11:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194513', 'tblTempUsageDetail_20' ) end [2025-01-07 11:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194513', 'tblTempVendorCDR_20' ) start [2025-01-07 11:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194513', 'tblTempVendorCDR_20' ) end [2025-01-07 11:12:25] Production.INFO: ProcessCDR(1,14194513,1,1,2) [2025-01-07 11:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:12:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:12:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194513', 'tblTempUsageDetail_20' ) start [2025-01-07 11:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194513', 'tblTempUsageDetail_20' ) end [2025-01-07 11:12:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:12:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:12:30] Production.INFO: ==2297== Releasing lock... [2025-01-07 11:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:12:30] Production.INFO: 55.5 MB #Memory Used# [2025-01-07 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:13:05 [end_date_ymd] => 2025-01-07 11:13:05 [RateCDR] => 1 ) [2025-01-07 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:13:05' and `end` < '2025-01-07 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:13:26] Production.INFO: count ==3675 [2025-01-07 11:13:27] Production.ERROR: pbx CDR StartTime 2025-01-07 08:13:05 - End Time 2025-01-07 11:13:05 [2025-01-07 11:13:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194518', 'tblTempUsageDetail_20' ) start [2025-01-07 11:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194518', 'tblTempUsageDetail_20' ) end [2025-01-07 11:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194518', 'tblTempVendorCDR_20' ) start [2025-01-07 11:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194518', 'tblTempVendorCDR_20' ) end [2025-01-07 11:13:27] Production.INFO: ProcessCDR(1,14194518,1,1,2) [2025-01-07 11:13:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:13:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:13:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:13:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194518', 'tblTempUsageDetail_20' ) start [2025-01-07 11:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194518', 'tblTempUsageDetail_20' ) end [2025-01-07 11:13:32] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:13:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:13:33] Production.INFO: ==2368== Releasing lock... [2025-01-07 11:13:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:13:33] Production.INFO: 55.5 MB #Memory Used# [2025-01-07 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:14:05 [end_date_ymd] => 2025-01-07 11:14:05 [RateCDR] => 1 ) [2025-01-07 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:14:05' and `end` < '2025-01-07 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:14:20] Production.INFO: count ==3678 [2025-01-07 11:14:22] Production.ERROR: pbx CDR StartTime 2025-01-07 08:14:05 - End Time 2025-01-07 11:14:05 [2025-01-07 11:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194523', 'tblTempUsageDetail_20' ) start [2025-01-07 11:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194523', 'tblTempUsageDetail_20' ) end [2025-01-07 11:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194523', 'tblTempVendorCDR_20' ) start [2025-01-07 11:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194523', 'tblTempVendorCDR_20' ) end [2025-01-07 11:14:22] Production.INFO: ProcessCDR(1,14194523,1,1,2) [2025-01-07 11:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194523', 'tblTempUsageDetail_20' ) start [2025-01-07 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194523', 'tblTempUsageDetail_20' ) end [2025-01-07 11:14:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:14:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:14:26] Production.INFO: ==2443== Releasing lock... [2025-01-07 11:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:14:26] Production.INFO: 55.75 MB #Memory Used# [2025-01-07 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:15:05 [end_date_ymd] => 2025-01-07 11:15:05 [RateCDR] => 1 ) [2025-01-07 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:15:05' and `end` < '2025-01-07 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:15:31] Production.INFO: count ==3686 [2025-01-07 11:15:33] Production.ERROR: pbx CDR StartTime 2025-01-07 08:15:05 - End Time 2025-01-07 11:15:05 [2025-01-07 11:15:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194528', 'tblTempUsageDetail_20' ) start [2025-01-07 11:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194528', 'tblTempUsageDetail_20' ) end [2025-01-07 11:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194528', 'tblTempVendorCDR_20' ) start [2025-01-07 11:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194528', 'tblTempVendorCDR_20' ) end [2025-01-07 11:15:33] Production.INFO: ProcessCDR(1,14194528,1,1,2) [2025-01-07 11:15:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:15:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:15:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:15:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:15:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194528', 'tblTempUsageDetail_20' ) start [2025-01-07 11:15:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194528', 'tblTempUsageDetail_20' ) end [2025-01-07 11:15:38] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:15:38] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:15:38] Production.INFO: ==2589== Releasing lock... [2025-01-07 11:15:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:15:38] Production.INFO: 56.25 MB #Memory Used# [2025-01-07 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:16:05 [end_date_ymd] => 2025-01-07 11:16:05 [RateCDR] => 1 ) [2025-01-07 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:16:05' and `end` < '2025-01-07 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:16:21] Production.INFO: count ==3703 [2025-01-07 11:16:22] Production.ERROR: pbx CDR StartTime 2025-01-07 08:16:05 - End Time 2025-01-07 11:16:05 [2025-01-07 11:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194533', 'tblTempUsageDetail_20' ) start [2025-01-07 11:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194533', 'tblTempUsageDetail_20' ) end [2025-01-07 11:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194533', 'tblTempVendorCDR_20' ) start [2025-01-07 11:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194533', 'tblTempVendorCDR_20' ) end [2025-01-07 11:16:23] Production.INFO: ProcessCDR(1,14194533,1,1,2) [2025-01-07 11:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194533', 'tblTempUsageDetail_20' ) start [2025-01-07 11:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194533', 'tblTempUsageDetail_20' ) end [2025-01-07 11:16:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:16:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:16:28] Production.INFO: ==2673== Releasing lock... [2025-01-07 11:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:16:28] Production.INFO: 55.75 MB #Memory Used# [2025-01-07 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:17:05 [end_date_ymd] => 2025-01-07 11:17:05 [RateCDR] => 1 ) [2025-01-07 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:17:05' and `end` < '2025-01-07 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:17:19] Production.INFO: count ==3711 [2025-01-07 11:17:20] Production.ERROR: pbx CDR StartTime 2025-01-07 08:17:05 - End Time 2025-01-07 11:17:05 [2025-01-07 11:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194538', 'tblTempUsageDetail_20' ) start [2025-01-07 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194538', 'tblTempUsageDetail_20' ) end [2025-01-07 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194538', 'tblTempVendorCDR_20' ) start [2025-01-07 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194538', 'tblTempVendorCDR_20' ) end [2025-01-07 11:17:20] Production.INFO: ProcessCDR(1,14194538,1,1,2) [2025-01-07 11:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194538', 'tblTempUsageDetail_20' ) start [2025-01-07 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194538', 'tblTempUsageDetail_20' ) end [2025-01-07 11:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:17:25] Production.INFO: ==2753== Releasing lock... [2025-01-07 11:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:17:25] Production.INFO: 55.75 MB #Memory Used# [2025-01-07 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:18:06 [end_date_ymd] => 2025-01-07 11:18:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 08:18:06' and `end` < '2025-01-07 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-01-07 11:18:19] Production.INFO: count ==3723 [2025-01-07 11:18:21] Production.ERROR: pbx CDR StartTime 2025-01-07 08:18:06 - End Time 2025-01-07 11:18:06 [2025-01-07 11:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194543', 'tblTempUsageDetail_20' ) start [2025-01-07 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194543', 'tblTempUsageDetail_20' ) end [2025-01-07 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194543', 'tblTempVendorCDR_20' ) start [2025-01-07 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194543', 'tblTempVendorCDR_20' ) end [2025-01-07 11:18:21] Production.INFO: ProcessCDR(1,14194543,1,1,2) [2025-01-07 11:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194543', 'tblTempUsageDetail_20' ) start [2025-01-07 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194543', 'tblTempUsageDetail_20' ) end [2025-01-07 11:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:18:26] Production.INFO: ==2862== Releasing lock... [2025-01-07 11:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:18:26] Production.INFO: 56.5 MB #Memory Used# [2025-01-07 11:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:19:04 [end_date_ymd] => 2025-01-07 11:19:04 [RateCDR] => 1 ) [2025-01-07 11:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:19:04' and `end` < '2025-01-07 11:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:19:20] Production.INFO: count ==3707 [2025-01-07 11:19:21] Production.ERROR: pbx CDR StartTime 2025-01-07 08:19:04 - End Time 2025-01-07 11:19:04 [2025-01-07 11:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194548', 'tblTempUsageDetail_20' ) start [2025-01-07 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194548', 'tblTempUsageDetail_20' ) end [2025-01-07 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194548', 'tblTempVendorCDR_20' ) start [2025-01-07 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194548', 'tblTempVendorCDR_20' ) end [2025-01-07 11:19:22] Production.INFO: ProcessCDR(1,14194548,1,1,2) [2025-01-07 11:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194548', 'tblTempUsageDetail_20' ) start [2025-01-07 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194548', 'tblTempUsageDetail_20' ) end [2025-01-07 11:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:19:26] Production.INFO: ==2933== Releasing lock... [2025-01-07 11:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:19:26] Production.INFO: 56.75 MB #Memory Used# [2025-01-07 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:20:06 [end_date_ymd] => 2025-01-07 11:20:06 [RateCDR] => 1 ) [2025-01-07 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:20:06' and `end` < '2025-01-07 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:20:22] Production.INFO: count ==3742 [2025-01-07 11:20:24] Production.ERROR: pbx CDR StartTime 2025-01-07 08:20:06 - End Time 2025-01-07 11:20:06 [2025-01-07 11:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194553', 'tblTempUsageDetail_20' ) start [2025-01-07 11:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194553', 'tblTempUsageDetail_20' ) end [2025-01-07 11:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194553', 'tblTempVendorCDR_20' ) start [2025-01-07 11:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194553', 'tblTempVendorCDR_20' ) end [2025-01-07 11:20:24] Production.INFO: ProcessCDR(1,14194553,1,1,2) [2025-01-07 11:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194553', 'tblTempUsageDetail_20' ) start [2025-01-07 11:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194553', 'tblTempUsageDetail_20' ) end [2025-01-07 11:20:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:20:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:20:28] Production.INFO: ==3006== Releasing lock... [2025-01-07 11:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:20:28] Production.INFO: 56 MB #Memory Used# [2025-01-07 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:21:05 [end_date_ymd] => 2025-01-07 11:21:05 [RateCDR] => 1 ) [2025-01-07 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:21:05' and `end` < '2025-01-07 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:21:23] Production.INFO: count ==3845 [2025-01-07 11:21:24] Production.ERROR: pbx CDR StartTime 2025-01-07 08:21:05 - End Time 2025-01-07 11:21:05 [2025-01-07 11:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194559', 'tblTempUsageDetail_20' ) start [2025-01-07 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194559', 'tblTempUsageDetail_20' ) end [2025-01-07 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194559', 'tblTempVendorCDR_20' ) start [2025-01-07 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194559', 'tblTempVendorCDR_20' ) end [2025-01-07 11:21:24] Production.INFO: ProcessCDR(1,14194559,1,1,2) [2025-01-07 11:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194559', 'tblTempUsageDetail_20' ) start [2025-01-07 11:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194559', 'tblTempUsageDetail_20' ) end [2025-01-07 11:21:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:21:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:21:29] Production.INFO: ==3083== Releasing lock... [2025-01-07 11:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:21:29] Production.INFO: 56.75 MB #Memory Used# [2025-01-07 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:22:06 [end_date_ymd] => 2025-01-07 11:22:06 [RateCDR] => 1 ) [2025-01-07 11:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:22:06' and `end` < '2025-01-07 11:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:22:22] Production.INFO: count ==3837 [2025-01-07 11:22:24] Production.ERROR: pbx CDR StartTime 2025-01-07 08:22:06 - End Time 2025-01-07 11:22:06 [2025-01-07 11:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194564', 'tblTempUsageDetail_20' ) start [2025-01-07 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194564', 'tblTempUsageDetail_20' ) end [2025-01-07 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194564', 'tblTempVendorCDR_20' ) start [2025-01-07 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194564', 'tblTempVendorCDR_20' ) end [2025-01-07 11:22:24] Production.INFO: ProcessCDR(1,14194564,1,1,2) [2025-01-07 11:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194564', 'tblTempUsageDetail_20' ) start [2025-01-07 11:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194564', 'tblTempUsageDetail_20' ) end [2025-01-07 11:22:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:22:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:22:29] Production.INFO: ==3154== Releasing lock... [2025-01-07 11:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:22:29] Production.INFO: 57 MB #Memory Used# [2025-01-07 11:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:23:04 [end_date_ymd] => 2025-01-07 11:23:04 [RateCDR] => 1 ) [2025-01-07 11:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:23:04' and `end` < '2025-01-07 11:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:23:20] Production.INFO: count ==3838 [2025-01-07 11:23:22] Production.ERROR: pbx CDR StartTime 2025-01-07 08:23:04 - End Time 2025-01-07 11:23:04 [2025-01-07 11:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194569', 'tblTempUsageDetail_20' ) start [2025-01-07 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194569', 'tblTempUsageDetail_20' ) end [2025-01-07 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194569', 'tblTempVendorCDR_20' ) start [2025-01-07 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194569', 'tblTempVendorCDR_20' ) end [2025-01-07 11:23:22] Production.INFO: ProcessCDR(1,14194569,1,1,2) [2025-01-07 11:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194569', 'tblTempUsageDetail_20' ) start [2025-01-07 11:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194569', 'tblTempUsageDetail_20' ) end [2025-01-07 11:23:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:23:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:23:27] Production.INFO: ==3224== Releasing lock... [2025-01-07 11:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:23:27] Production.INFO: 57 MB #Memory Used# [2025-01-07 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:24:05 [end_date_ymd] => 2025-01-07 11:24:05 [RateCDR] => 1 ) [2025-01-07 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:24:05' and `end` < '2025-01-07 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:24:26] Production.INFO: count ==3862 [2025-01-07 11:24:28] Production.ERROR: pbx CDR StartTime 2025-01-07 08:24:05 - End Time 2025-01-07 11:24:05 [2025-01-07 11:24:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194574', 'tblTempUsageDetail_20' ) start [2025-01-07 11:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194574', 'tblTempUsageDetail_20' ) end [2025-01-07 11:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194574', 'tblTempVendorCDR_20' ) start [2025-01-07 11:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194574', 'tblTempVendorCDR_20' ) end [2025-01-07 11:24:28] Production.INFO: ProcessCDR(1,14194574,1,1,2) [2025-01-07 11:24:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:24:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:24:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:24:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194574', 'tblTempUsageDetail_20' ) start [2025-01-07 11:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194574', 'tblTempUsageDetail_20' ) end [2025-01-07 11:24:32] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:24:32] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:24:32] Production.INFO: ==3295== Releasing lock... [2025-01-07 11:24:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:24:32] Production.INFO: 57.25 MB #Memory Used# [2025-01-07 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:25:05 [end_date_ymd] => 2025-01-07 11:25:05 [RateCDR] => 1 ) [2025-01-07 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:25:05' and `end` < '2025-01-07 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:25:20] Production.INFO: count ==3907 [2025-01-07 11:25:22] Production.ERROR: pbx CDR StartTime 2025-01-07 08:25:05 - End Time 2025-01-07 11:25:05 [2025-01-07 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194579', 'tblTempUsageDetail_20' ) start [2025-01-07 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194579', 'tblTempUsageDetail_20' ) end [2025-01-07 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194579', 'tblTempVendorCDR_20' ) start [2025-01-07 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194579', 'tblTempVendorCDR_20' ) end [2025-01-07 11:25:22] Production.INFO: ProcessCDR(1,14194579,1,1,2) [2025-01-07 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194579', 'tblTempUsageDetail_20' ) start [2025-01-07 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194579', 'tblTempUsageDetail_20' ) end [2025-01-07 11:25:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:25:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:25:27] Production.INFO: ==3365== Releasing lock... [2025-01-07 11:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:25:27] Production.INFO: 57.5 MB #Memory Used# [2025-01-07 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:26:05 [end_date_ymd] => 2025-01-07 11:26:05 [RateCDR] => 1 ) [2025-01-07 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:26:05' and `end` < '2025-01-07 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:26:21] Production.INFO: count ==3926 [2025-01-07 11:26:22] Production.ERROR: pbx CDR StartTime 2025-01-07 08:26:05 - End Time 2025-01-07 11:26:05 [2025-01-07 11:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194584', 'tblTempUsageDetail_20' ) start [2025-01-07 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194584', 'tblTempUsageDetail_20' ) end [2025-01-07 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194584', 'tblTempVendorCDR_20' ) start [2025-01-07 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194584', 'tblTempVendorCDR_20' ) end [2025-01-07 11:26:22] Production.INFO: ProcessCDR(1,14194584,1,1,2) [2025-01-07 11:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194584', 'tblTempUsageDetail_20' ) start [2025-01-07 11:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194584', 'tblTempUsageDetail_20' ) end [2025-01-07 11:26:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:26:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:26:27] Production.INFO: ==3436== Releasing lock... [2025-01-07 11:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:26:27] Production.INFO: 57.25 MB #Memory Used# [2025-01-07 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:27:05 [end_date_ymd] => 2025-01-07 11:27:05 [RateCDR] => 1 ) [2025-01-07 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:27:05' and `end` < '2025-01-07 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:27:21] Production.INFO: count ==3938 [2025-01-07 11:27:22] Production.ERROR: pbx CDR StartTime 2025-01-07 08:27:05 - End Time 2025-01-07 11:27:05 [2025-01-07 11:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194589', 'tblTempUsageDetail_20' ) start [2025-01-07 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194589', 'tblTempUsageDetail_20' ) end [2025-01-07 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194589', 'tblTempVendorCDR_20' ) start [2025-01-07 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194589', 'tblTempVendorCDR_20' ) end [2025-01-07 11:27:22] Production.INFO: ProcessCDR(1,14194589,1,1,2) [2025-01-07 11:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194589', 'tblTempUsageDetail_20' ) start [2025-01-07 11:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194589', 'tblTempUsageDetail_20' ) end [2025-01-07 11:27:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:27:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:27:27] Production.INFO: ==3506== Releasing lock... [2025-01-07 11:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:27:27] Production.INFO: 57.5 MB #Memory Used# [2025-01-07 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:28:05 [end_date_ymd] => 2025-01-07 11:28:05 [RateCDR] => 1 ) [2025-01-07 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:28:05' and `end` < '2025-01-07 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:28:26] Production.INFO: count ==3944 [2025-01-07 11:28:27] Production.ERROR: pbx CDR StartTime 2025-01-07 08:28:05 - End Time 2025-01-07 11:28:05 [2025-01-07 11:28:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194594', 'tblTempUsageDetail_20' ) start [2025-01-07 11:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194594', 'tblTempUsageDetail_20' ) end [2025-01-07 11:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194594', 'tblTempVendorCDR_20' ) start [2025-01-07 11:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194594', 'tblTempVendorCDR_20' ) end [2025-01-07 11:28:27] Production.INFO: ProcessCDR(1,14194594,1,1,2) [2025-01-07 11:28:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:28:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:28:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:28:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194594', 'tblTempUsageDetail_20' ) start [2025-01-07 11:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194594', 'tblTempUsageDetail_20' ) end [2025-01-07 11:28:32] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:28:32] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:28:32] Production.INFO: ==3578== Releasing lock... [2025-01-07 11:28:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:28:32] Production.INFO: 57.5 MB #Memory Used# [2025-01-07 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:29:05 [end_date_ymd] => 2025-01-07 11:29:05 [RateCDR] => 1 ) [2025-01-07 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:29:05' and `end` < '2025-01-07 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:29:22] Production.INFO: count ==3948 [2025-01-07 11:29:24] Production.ERROR: pbx CDR StartTime 2025-01-07 08:29:05 - End Time 2025-01-07 11:29:05 [2025-01-07 11:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194599', 'tblTempUsageDetail_20' ) start [2025-01-07 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194599', 'tblTempUsageDetail_20' ) end [2025-01-07 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194599', 'tblTempVendorCDR_20' ) start [2025-01-07 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194599', 'tblTempVendorCDR_20' ) end [2025-01-07 11:29:24] Production.INFO: ProcessCDR(1,14194599,1,1,2) [2025-01-07 11:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194599', 'tblTempUsageDetail_20' ) start [2025-01-07 11:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194599', 'tblTempUsageDetail_20' ) end [2025-01-07 11:29:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:29:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:29:28] Production.INFO: ==3654== Releasing lock... [2025-01-07 11:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:29:28] Production.INFO: 57.5 MB #Memory Used# [2025-01-07 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:30:06 [end_date_ymd] => 2025-01-07 11:30:06 [RateCDR] => 1 ) [2025-01-07 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:30:06' and `end` < '2025-01-07 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:30:25] Production.INFO: count ==3969 [2025-01-07 11:30:27] Production.ERROR: pbx CDR StartTime 2025-01-07 08:30:06 - End Time 2025-01-07 11:30:06 [2025-01-07 11:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194605', 'tblTempUsageDetail_20' ) start [2025-01-07 11:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194605', 'tblTempUsageDetail_20' ) end [2025-01-07 11:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194605', 'tblTempVendorCDR_20' ) start [2025-01-07 11:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194605', 'tblTempVendorCDR_20' ) end [2025-01-07 11:30:27] Production.INFO: ProcessCDR(1,14194605,1,1,2) [2025-01-07 11:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194605', 'tblTempUsageDetail_20' ) start [2025-01-07 11:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194605', 'tblTempUsageDetail_20' ) end [2025-01-07 11:30:32] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:30:32] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:30:32] Production.INFO: ==3730== Releasing lock... [2025-01-07 11:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:30:32] Production.INFO: 57.75 MB #Memory Used# [2025-01-07 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:31:05 [end_date_ymd] => 2025-01-07 11:31:05 [RateCDR] => 1 ) [2025-01-07 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:31:05' and `end` < '2025-01-07 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:31:30] Production.INFO: count ==4084 [2025-01-07 11:31:32] Production.ERROR: pbx CDR StartTime 2025-01-07 08:31:05 - End Time 2025-01-07 11:31:05 [2025-01-07 11:31:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194610', 'tblTempUsageDetail_20' ) start [2025-01-07 11:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194610', 'tblTempUsageDetail_20' ) end [2025-01-07 11:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194610', 'tblTempVendorCDR_20' ) start [2025-01-07 11:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194610', 'tblTempVendorCDR_20' ) end [2025-01-07 11:31:32] Production.INFO: ProcessCDR(1,14194610,1,1,2) [2025-01-07 11:31:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:31:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:31:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:31:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194610', 'tblTempUsageDetail_20' ) start [2025-01-07 11:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194610', 'tblTempUsageDetail_20' ) end [2025-01-07 11:31:37] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:31:37] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:31:37] Production.INFO: ==3802== Releasing lock... [2025-01-07 11:31:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:31:37] Production.INFO: 58.5 MB #Memory Used# [2025-01-07 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:32:05 [end_date_ymd] => 2025-01-07 11:32:05 [RateCDR] => 1 ) [2025-01-07 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:32:05' and `end` < '2025-01-07 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:32:24] Production.INFO: count ==4093 [2025-01-07 11:32:25] Production.ERROR: pbx CDR StartTime 2025-01-07 08:32:05 - End Time 2025-01-07 11:32:05 [2025-01-07 11:32:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194615', 'tblTempUsageDetail_20' ) start [2025-01-07 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194615', 'tblTempUsageDetail_20' ) end [2025-01-07 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194615', 'tblTempVendorCDR_20' ) start [2025-01-07 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194615', 'tblTempVendorCDR_20' ) end [2025-01-07 11:32:26] Production.INFO: ProcessCDR(1,14194615,1,1,2) [2025-01-07 11:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:32:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:32:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194615', 'tblTempUsageDetail_20' ) start [2025-01-07 11:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194615', 'tblTempUsageDetail_20' ) end [2025-01-07 11:32:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:32:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:32:30] Production.INFO: ==3872== Releasing lock... [2025-01-07 11:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:32:30] Production.INFO: 58.5 MB #Memory Used# [2025-01-07 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:33:05 [end_date_ymd] => 2025-01-07 11:33:05 [RateCDR] => 1 ) [2025-01-07 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:33:05' and `end` < '2025-01-07 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:33:23] Production.INFO: count ==4061 [2025-01-07 11:33:24] Production.ERROR: pbx CDR StartTime 2025-01-07 08:33:05 - End Time 2025-01-07 11:33:05 [2025-01-07 11:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194620', 'tblTempUsageDetail_20' ) start [2025-01-07 11:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194620', 'tblTempUsageDetail_20' ) end [2025-01-07 11:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194620', 'tblTempVendorCDR_20' ) start [2025-01-07 11:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194620', 'tblTempVendorCDR_20' ) end [2025-01-07 11:33:24] Production.INFO: ProcessCDR(1,14194620,1,1,2) [2025-01-07 11:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194620', 'tblTempUsageDetail_20' ) start [2025-01-07 11:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194620', 'tblTempUsageDetail_20' ) end [2025-01-07 11:33:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:33:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:33:29] Production.INFO: ==3944== Releasing lock... [2025-01-07 11:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:33:29] Production.INFO: 58.25 MB #Memory Used# [2025-01-07 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:34:05 [end_date_ymd] => 2025-01-07 11:34:05 [RateCDR] => 1 ) [2025-01-07 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:34:05' and `end` < '2025-01-07 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:34:27] Production.INFO: count ==4073 [2025-01-07 11:34:29] Production.ERROR: pbx CDR StartTime 2025-01-07 08:34:05 - End Time 2025-01-07 11:34:05 [2025-01-07 11:34:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194625', 'tblTempUsageDetail_20' ) start [2025-01-07 11:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194625', 'tblTempUsageDetail_20' ) end [2025-01-07 11:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194625', 'tblTempVendorCDR_20' ) start [2025-01-07 11:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194625', 'tblTempVendorCDR_20' ) end [2025-01-07 11:34:29] Production.INFO: ProcessCDR(1,14194625,1,1,2) [2025-01-07 11:34:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:34:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:34:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:34:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194625', 'tblTempUsageDetail_20' ) start [2025-01-07 11:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194625', 'tblTempUsageDetail_20' ) end [2025-01-07 11:34:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:34:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:34:34] Production.INFO: ==4057== Releasing lock... [2025-01-07 11:34:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:34:34] Production.INFO: 58.5 MB #Memory Used# [2025-01-07 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:35:05 [end_date_ymd] => 2025-01-07 11:35:05 [RateCDR] => 1 ) [2025-01-07 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:35:05' and `end` < '2025-01-07 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:35:22] Production.INFO: count ==4068 [2025-01-07 11:35:23] Production.ERROR: pbx CDR StartTime 2025-01-07 08:35:05 - End Time 2025-01-07 11:35:05 [2025-01-07 11:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194630', 'tblTempUsageDetail_20' ) start [2025-01-07 11:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194630', 'tblTempUsageDetail_20' ) end [2025-01-07 11:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194630', 'tblTempVendorCDR_20' ) start [2025-01-07 11:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194630', 'tblTempVendorCDR_20' ) end [2025-01-07 11:35:24] Production.INFO: ProcessCDR(1,14194630,1,1,2) [2025-01-07 11:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194630', 'tblTempUsageDetail_20' ) start [2025-01-07 11:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194630', 'tblTempUsageDetail_20' ) end [2025-01-07 11:35:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:35:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:35:28] Production.INFO: ==4135== Releasing lock... [2025-01-07 11:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:35:28] Production.INFO: 58.5 MB #Memory Used# [2025-01-07 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:36:05 [end_date_ymd] => 2025-01-07 11:36:05 [RateCDR] => 1 ) [2025-01-07 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:36:05' and `end` < '2025-01-07 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:36:31] Production.INFO: count ==4100 [2025-01-07 11:36:33] Production.ERROR: pbx CDR StartTime 2025-01-07 08:36:05 - End Time 2025-01-07 11:36:05 [2025-01-07 11:36:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194635', 'tblTempUsageDetail_20' ) start [2025-01-07 11:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194635', 'tblTempUsageDetail_20' ) end [2025-01-07 11:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194635', 'tblTempVendorCDR_20' ) start [2025-01-07 11:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194635', 'tblTempVendorCDR_20' ) end [2025-01-07 11:36:33] Production.INFO: ProcessCDR(1,14194635,1,1,2) [2025-01-07 11:36:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:36:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:36:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:36:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:36:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194635', 'tblTempUsageDetail_20' ) start [2025-01-07 11:36:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194635', 'tblTempUsageDetail_20' ) end [2025-01-07 11:36:38] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:36:38] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:36:38] Production.INFO: ==4211== Releasing lock... [2025-01-07 11:36:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:36:38] Production.INFO: 58.75 MB #Memory Used# [2025-01-07 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:37:05 [end_date_ymd] => 2025-01-07 11:37:05 [RateCDR] => 1 ) [2025-01-07 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:37:05' and `end` < '2025-01-07 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:37:25] Production.INFO: count ==4116 [2025-01-07 11:37:27] Production.ERROR: pbx CDR StartTime 2025-01-07 08:37:05 - End Time 2025-01-07 11:37:05 [2025-01-07 11:37:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194640', 'tblTempUsageDetail_20' ) start [2025-01-07 11:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194640', 'tblTempUsageDetail_20' ) end [2025-01-07 11:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194640', 'tblTempVendorCDR_20' ) start [2025-01-07 11:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194640', 'tblTempVendorCDR_20' ) end [2025-01-07 11:37:27] Production.INFO: ProcessCDR(1,14194640,1,1,2) [2025-01-07 11:37:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:37:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:37:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194640', 'tblTempUsageDetail_20' ) start [2025-01-07 11:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194640', 'tblTempUsageDetail_20' ) end [2025-01-07 11:37:32] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:37:32] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:37:32] Production.INFO: ==4282== Releasing lock... [2025-01-07 11:37:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:37:32] Production.INFO: 58.75 MB #Memory Used# [2025-01-07 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:38:05 [end_date_ymd] => 2025-01-07 11:38:05 [RateCDR] => 1 ) [2025-01-07 11:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:38:05' and `end` < '2025-01-07 11:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:38:39] Production.INFO: count ==4136 [2025-01-07 11:38:40] Production.ERROR: pbx CDR StartTime 2025-01-07 08:38:05 - End Time 2025-01-07 11:38:05 [2025-01-07 11:38:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:38:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194645', 'tblTempUsageDetail_20' ) start [2025-01-07 11:38:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194645', 'tblTempUsageDetail_20' ) end [2025-01-07 11:38:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194645', 'tblTempVendorCDR_20' ) start [2025-01-07 11:38:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194645', 'tblTempVendorCDR_20' ) end [2025-01-07 11:38:40] Production.INFO: ProcessCDR(1,14194645,1,1,2) [2025-01-07 11:38:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:38:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:38:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:38:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:38:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194645', 'tblTempUsageDetail_20' ) start [2025-01-07 11:38:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194645', 'tblTempUsageDetail_20' ) end [2025-01-07 11:38:45] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:38:45] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:38:45] Production.INFO: ==4365== Releasing lock... [2025-01-07 11:38:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:38:45] Production.INFO: 59 MB #Memory Used# [2025-01-07 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:39:05 [end_date_ymd] => 2025-01-07 11:39:05 [RateCDR] => 1 ) [2025-01-07 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:39:05' and `end` < '2025-01-07 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:39:35] Production.INFO: count ==4129 [2025-01-07 11:39:36] Production.ERROR: pbx CDR StartTime 2025-01-07 08:39:05 - End Time 2025-01-07 11:39:05 [2025-01-07 11:39:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:39:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194650', 'tblTempUsageDetail_20' ) start [2025-01-07 11:39:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194650', 'tblTempUsageDetail_20' ) end [2025-01-07 11:39:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194650', 'tblTempVendorCDR_20' ) start [2025-01-07 11:39:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194650', 'tblTempVendorCDR_20' ) end [2025-01-07 11:39:36] Production.INFO: ProcessCDR(1,14194650,1,1,2) [2025-01-07 11:39:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:39:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:39:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:39:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:39:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194650', 'tblTempUsageDetail_20' ) start [2025-01-07 11:39:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194650', 'tblTempUsageDetail_20' ) end [2025-01-07 11:39:41] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:39:41] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:39:41] Production.INFO: ==4456== Releasing lock... [2025-01-07 11:39:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:39:41] Production.INFO: 59 MB #Memory Used# [2025-01-07 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:40:05 [end_date_ymd] => 2025-01-07 11:40:05 [RateCDR] => 1 ) [2025-01-07 11:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:40:05' and `end` < '2025-01-07 11:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:40:27] Production.INFO: count ==4129 [2025-01-07 11:40:29] Production.ERROR: pbx CDR StartTime 2025-01-07 08:40:05 - End Time 2025-01-07 11:40:05 [2025-01-07 11:40:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194656', 'tblTempUsageDetail_20' ) start [2025-01-07 11:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194656', 'tblTempUsageDetail_20' ) end [2025-01-07 11:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194656', 'tblTempVendorCDR_20' ) start [2025-01-07 11:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194656', 'tblTempVendorCDR_20' ) end [2025-01-07 11:40:29] Production.INFO: ProcessCDR(1,14194656,1,1,2) [2025-01-07 11:40:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:40:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:40:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194656', 'tblTempUsageDetail_20' ) start [2025-01-07 11:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194656', 'tblTempUsageDetail_20' ) end [2025-01-07 11:40:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:40:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:40:34] Production.INFO: ==4544== Releasing lock... [2025-01-07 11:40:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:40:34] Production.INFO: 59 MB #Memory Used# [2025-01-07 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:41:05 [end_date_ymd] => 2025-01-07 11:41:05 [RateCDR] => 1 ) [2025-01-07 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:41:05' and `end` < '2025-01-07 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:41:25] Production.INFO: count ==4178 [2025-01-07 11:41:27] Production.ERROR: pbx CDR StartTime 2025-01-07 08:41:05 - End Time 2025-01-07 11:41:05 [2025-01-07 11:41:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194661', 'tblTempUsageDetail_20' ) start [2025-01-07 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194661', 'tblTempUsageDetail_20' ) end [2025-01-07 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194661', 'tblTempVendorCDR_20' ) start [2025-01-07 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194661', 'tblTempVendorCDR_20' ) end [2025-01-07 11:41:27] Production.INFO: ProcessCDR(1,14194661,1,1,2) [2025-01-07 11:41:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194661', 'tblTempUsageDetail_20' ) start [2025-01-07 11:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194661', 'tblTempUsageDetail_20' ) end [2025-01-07 11:41:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:41:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:41:31] Production.INFO: ==4649== Releasing lock... [2025-01-07 11:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:41:31] Production.INFO: 59.25 MB #Memory Used# [2025-01-07 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:42:05 [end_date_ymd] => 2025-01-07 11:42:05 [RateCDR] => 1 ) [2025-01-07 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:42:05' and `end` < '2025-01-07 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:42:25] Production.INFO: count ==4212 [2025-01-07 11:42:27] Production.ERROR: pbx CDR StartTime 2025-01-07 08:42:05 - End Time 2025-01-07 11:42:05 [2025-01-07 11:42:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194666', 'tblTempUsageDetail_20' ) start [2025-01-07 11:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194666', 'tblTempUsageDetail_20' ) end [2025-01-07 11:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194666', 'tblTempVendorCDR_20' ) start [2025-01-07 11:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194666', 'tblTempVendorCDR_20' ) end [2025-01-07 11:42:27] Production.INFO: ProcessCDR(1,14194666,1,1,2) [2025-01-07 11:42:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:42:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194666', 'tblTempUsageDetail_20' ) start [2025-01-07 11:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194666', 'tblTempUsageDetail_20' ) end [2025-01-07 11:42:32] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:42:32] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:42:32] Production.INFO: ==4747== Releasing lock... [2025-01-07 11:42:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:42:32] Production.INFO: 59.5 MB #Memory Used# [2025-01-07 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:43:05 [end_date_ymd] => 2025-01-07 11:43:05 [RateCDR] => 1 ) [2025-01-07 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:43:05' and `end` < '2025-01-07 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:43:19] Production.INFO: count ==4231 [2025-01-07 11:43:20] Production.ERROR: pbx CDR StartTime 2025-01-07 08:43:05 - End Time 2025-01-07 11:43:05 [2025-01-07 11:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194671', 'tblTempUsageDetail_20' ) start [2025-01-07 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194671', 'tblTempUsageDetail_20' ) end [2025-01-07 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194671', 'tblTempVendorCDR_20' ) start [2025-01-07 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194671', 'tblTempVendorCDR_20' ) end [2025-01-07 11:43:21] Production.INFO: ProcessCDR(1,14194671,1,1,2) [2025-01-07 11:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194671', 'tblTempUsageDetail_20' ) start [2025-01-07 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194671', 'tblTempUsageDetail_20' ) end [2025-01-07 11:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:43:25] Production.INFO: ==4838== Releasing lock... [2025-01-07 11:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:43:25] Production.INFO: 59.75 MB #Memory Used# [2025-01-07 11:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:44:06 [end_date_ymd] => 2025-01-07 11:44:06 [RateCDR] => 1 ) [2025-01-07 11:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:44:06' and `end` < '2025-01-07 11:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:44:24] Production.INFO: count ==4241 [2025-01-07 11:44:26] Production.ERROR: pbx CDR StartTime 2025-01-07 08:44:06 - End Time 2025-01-07 11:44:06 [2025-01-07 11:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194676', 'tblTempUsageDetail_20' ) start [2025-01-07 11:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194676', 'tblTempUsageDetail_20' ) end [2025-01-07 11:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194676', 'tblTempVendorCDR_20' ) start [2025-01-07 11:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194676', 'tblTempVendorCDR_20' ) end [2025-01-07 11:44:26] Production.INFO: ProcessCDR(1,14194676,1,1,2) [2025-01-07 11:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194676', 'tblTempUsageDetail_20' ) start [2025-01-07 11:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194676', 'tblTempUsageDetail_20' ) end [2025-01-07 11:44:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:44:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:44:31] Production.INFO: ==4933== Releasing lock... [2025-01-07 11:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:44:31] Production.INFO: 59.75 MB #Memory Used# [2025-01-07 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:45:05 [end_date_ymd] => 2025-01-07 11:45:05 [RateCDR] => 1 ) [2025-01-07 11:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:45:05' and `end` < '2025-01-07 11:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:45:18] Production.INFO: count ==4241 [2025-01-07 11:45:20] Production.ERROR: pbx CDR StartTime 2025-01-07 08:45:05 - End Time 2025-01-07 11:45:05 [2025-01-07 11:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194681', 'tblTempUsageDetail_20' ) start [2025-01-07 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194681', 'tblTempUsageDetail_20' ) end [2025-01-07 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194681', 'tblTempVendorCDR_20' ) start [2025-01-07 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194681', 'tblTempVendorCDR_20' ) end [2025-01-07 11:45:20] Production.INFO: ProcessCDR(1,14194681,1,1,2) [2025-01-07 11:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194681', 'tblTempUsageDetail_20' ) start [2025-01-07 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194681', 'tblTempUsageDetail_20' ) end [2025-01-07 11:45:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:45:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:45:25] Production.INFO: ==5022== Releasing lock... [2025-01-07 11:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:45:25] Production.INFO: 59.75 MB #Memory Used# [2025-01-07 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:46:05 [end_date_ymd] => 2025-01-07 11:46:05 [RateCDR] => 1 ) [2025-01-07 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:46:05' and `end` < '2025-01-07 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:46:24] Production.INFO: count ==4266 [2025-01-07 11:46:26] Production.ERROR: pbx CDR StartTime 2025-01-07 08:46:05 - End Time 2025-01-07 11:46:05 [2025-01-07 11:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194686', 'tblTempUsageDetail_20' ) start [2025-01-07 11:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194686', 'tblTempUsageDetail_20' ) end [2025-01-07 11:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194686', 'tblTempVendorCDR_20' ) start [2025-01-07 11:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194686', 'tblTempVendorCDR_20' ) end [2025-01-07 11:46:26] Production.INFO: ProcessCDR(1,14194686,1,1,2) [2025-01-07 11:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194686', 'tblTempUsageDetail_20' ) start [2025-01-07 11:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194686', 'tblTempUsageDetail_20' ) end [2025-01-07 11:46:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:46:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:46:31] Production.INFO: ==5118== Releasing lock... [2025-01-07 11:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:46:31] Production.INFO: 60 MB #Memory Used# [2025-01-07 11:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:47:04 [end_date_ymd] => 2025-01-07 11:47:04 [RateCDR] => 1 ) [2025-01-07 11:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:47:04' and `end` < '2025-01-07 11:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:47:26] Production.INFO: count ==4268 [2025-01-07 11:47:28] Production.ERROR: pbx CDR StartTime 2025-01-07 08:47:04 - End Time 2025-01-07 11:47:04 [2025-01-07 11:47:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194691', 'tblTempUsageDetail_20' ) start [2025-01-07 11:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194691', 'tblTempUsageDetail_20' ) end [2025-01-07 11:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194691', 'tblTempVendorCDR_20' ) start [2025-01-07 11:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194691', 'tblTempVendorCDR_20' ) end [2025-01-07 11:47:28] Production.INFO: ProcessCDR(1,14194691,1,1,2) [2025-01-07 11:47:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:47:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:47:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:47:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194691', 'tblTempUsageDetail_20' ) start [2025-01-07 11:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194691', 'tblTempUsageDetail_20' ) end [2025-01-07 11:47:32] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:47:32] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:47:33] Production.INFO: ==5209== Releasing lock... [2025-01-07 11:47:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:47:33] Production.INFO: 60 MB #Memory Used# [2025-01-07 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:48:06 [end_date_ymd] => 2025-01-07 11:48:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 08:48:06' and `end` < '2025-01-07 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-01-07 11:48:29] Production.INFO: count ==4280 [2025-01-07 11:48:31] Production.ERROR: pbx CDR StartTime 2025-01-07 08:48:06 - End Time 2025-01-07 11:48:06 [2025-01-07 11:48:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194696', 'tblTempUsageDetail_20' ) start [2025-01-07 11:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194696', 'tblTempUsageDetail_20' ) end [2025-01-07 11:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194696', 'tblTempVendorCDR_20' ) start [2025-01-07 11:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194696', 'tblTempVendorCDR_20' ) end [2025-01-07 11:48:31] Production.INFO: ProcessCDR(1,14194696,1,1,2) [2025-01-07 11:48:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:48:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:48:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:48:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194696', 'tblTempUsageDetail_20' ) start [2025-01-07 11:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194696', 'tblTempUsageDetail_20' ) end [2025-01-07 11:48:35] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:48:35] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:48:35] Production.INFO: ==5299== Releasing lock... [2025-01-07 11:48:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:48:35] Production.INFO: 60 MB #Memory Used# [2025-01-07 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:49:05 [end_date_ymd] => 2025-01-07 11:49:05 [RateCDR] => 1 ) [2025-01-07 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:49:05' and `end` < '2025-01-07 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:49:38] Production.INFO: count ==4307 [2025-01-07 11:49:40] Production.ERROR: pbx CDR StartTime 2025-01-07 08:49:05 - End Time 2025-01-07 11:49:05 [2025-01-07 11:49:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:49:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194701', 'tblTempUsageDetail_20' ) start [2025-01-07 11:49:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194701', 'tblTempUsageDetail_20' ) end [2025-01-07 11:49:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194701', 'tblTempVendorCDR_20' ) start [2025-01-07 11:49:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194701', 'tblTempVendorCDR_20' ) end [2025-01-07 11:49:40] Production.INFO: ProcessCDR(1,14194701,1,1,2) [2025-01-07 11:49:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:49:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:49:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:49:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:49:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194701', 'tblTempUsageDetail_20' ) start [2025-01-07 11:49:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194701', 'tblTempUsageDetail_20' ) end [2025-01-07 11:49:44] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:49:45] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:49:45] Production.INFO: ==5435== Releasing lock... [2025-01-07 11:49:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:49:45] Production.INFO: 60.25 MB #Memory Used# [2025-01-07 11:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:50:05 [end_date_ymd] => 2025-01-07 11:50:05 [RateCDR] => 1 ) [2025-01-07 11:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:50:05' and `end` < '2025-01-07 11:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:50:34] Production.INFO: count ==4312 [2025-01-07 11:50:36] Production.ERROR: pbx CDR StartTime 2025-01-07 08:50:05 - End Time 2025-01-07 11:50:05 [2025-01-07 11:50:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194704', 'tblTempUsageDetail_20' ) start [2025-01-07 11:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194704', 'tblTempUsageDetail_20' ) end [2025-01-07 11:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194704', 'tblTempVendorCDR_20' ) start [2025-01-07 11:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194704', 'tblTempVendorCDR_20' ) end [2025-01-07 11:50:36] Production.INFO: ProcessCDR(1,14194704,1,1,2) [2025-01-07 11:50:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:50:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:50:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:50:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:50:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194704', 'tblTempUsageDetail_20' ) start [2025-01-07 11:50:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194704', 'tblTempUsageDetail_20' ) end [2025-01-07 11:50:41] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:50:41] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:50:41] Production.INFO: ==5527== Releasing lock... [2025-01-07 11:50:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:50:41] Production.INFO: 60.25 MB #Memory Used# [2025-01-07 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:51:05 [end_date_ymd] => 2025-01-07 11:51:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 08:51:05' and `end` < '2025-01-07 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-01-07 11:51:30] Production.INFO: count ==4399 [2025-01-07 11:51:32] Production.ERROR: pbx CDR StartTime 2025-01-07 08:51:05 - End Time 2025-01-07 11:51:05 [2025-01-07 11:51:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194712', 'tblTempUsageDetail_20' ) start [2025-01-07 11:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194712', 'tblTempUsageDetail_20' ) end [2025-01-07 11:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194712', 'tblTempVendorCDR_20' ) start [2025-01-07 11:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194712', 'tblTempVendorCDR_20' ) end [2025-01-07 11:51:32] Production.INFO: ProcessCDR(1,14194712,1,1,2) [2025-01-07 11:51:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:51:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:51:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:51:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:51:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194712', 'tblTempUsageDetail_20' ) start [2025-01-07 11:51:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194712', 'tblTempUsageDetail_20' ) end [2025-01-07 11:51:37] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:51:37] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:51:37] Production.INFO: ==5619== Releasing lock... [2025-01-07 11:51:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:51:37] Production.INFO: 61 MB #Memory Used# [2025-01-07 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:52:05 [end_date_ymd] => 2025-01-07 11:52:05 [RateCDR] => 1 ) [2025-01-07 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:52:05' and `end` < '2025-01-07 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:52:26] Production.INFO: count ==4403 [2025-01-07 11:52:27] Production.ERROR: pbx CDR StartTime 2025-01-07 08:52:05 - End Time 2025-01-07 11:52:05 [2025-01-07 11:52:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194717', 'tblTempUsageDetail_20' ) start [2025-01-07 11:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194717', 'tblTempUsageDetail_20' ) end [2025-01-07 11:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194717', 'tblTempVendorCDR_20' ) start [2025-01-07 11:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194717', 'tblTempVendorCDR_20' ) end [2025-01-07 11:52:27] Production.INFO: ProcessCDR(1,14194717,1,1,2) [2025-01-07 11:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:52:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:52:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:52:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194717', 'tblTempUsageDetail_20' ) start [2025-01-07 11:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194717', 'tblTempUsageDetail_20' ) end [2025-01-07 11:52:32] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:52:32] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:52:32] Production.INFO: ==5716== Releasing lock... [2025-01-07 11:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:52:32] Production.INFO: 61 MB #Memory Used# [2025-01-07 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:53:05 [end_date_ymd] => 2025-01-07 11:53:05 [RateCDR] => 1 ) [2025-01-07 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:53:05' and `end` < '2025-01-07 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:53:25] Production.INFO: count ==4417 [2025-01-07 11:53:26] Production.ERROR: pbx CDR StartTime 2025-01-07 08:53:05 - End Time 2025-01-07 11:53:05 [2025-01-07 11:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194722', 'tblTempUsageDetail_20' ) start [2025-01-07 11:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194722', 'tblTempUsageDetail_20' ) end [2025-01-07 11:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194722', 'tblTempVendorCDR_20' ) start [2025-01-07 11:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194722', 'tblTempVendorCDR_20' ) end [2025-01-07 11:53:27] Production.INFO: ProcessCDR(1,14194722,1,1,2) [2025-01-07 11:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:53:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194722', 'tblTempUsageDetail_20' ) start [2025-01-07 11:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194722', 'tblTempUsageDetail_20' ) end [2025-01-07 11:53:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:53:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:53:31] Production.INFO: ==5809== Releasing lock... [2025-01-07 11:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:53:31] Production.INFO: 61 MB #Memory Used# [2025-01-07 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:54:05 [end_date_ymd] => 2025-01-07 11:54:05 [RateCDR] => 1 ) [2025-01-07 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:54:05' and `end` < '2025-01-07 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:54:24] Production.INFO: count ==4437 [2025-01-07 11:54:26] Production.ERROR: pbx CDR StartTime 2025-01-07 08:54:05 - End Time 2025-01-07 11:54:05 [2025-01-07 11:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194727', 'tblTempUsageDetail_20' ) start [2025-01-07 11:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194727', 'tblTempUsageDetail_20' ) end [2025-01-07 11:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194727', 'tblTempVendorCDR_20' ) start [2025-01-07 11:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194727', 'tblTempVendorCDR_20' ) end [2025-01-07 11:54:26] Production.INFO: ProcessCDR(1,14194727,1,1,2) [2025-01-07 11:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:54:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:54:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194727', 'tblTempUsageDetail_20' ) start [2025-01-07 11:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194727', 'tblTempUsageDetail_20' ) end [2025-01-07 11:54:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:54:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:54:31] Production.INFO: ==5902== Releasing lock... [2025-01-07 11:54:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:54:31] Production.INFO: 61.25 MB #Memory Used# [2025-01-07 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:55:05 [end_date_ymd] => 2025-01-07 11:55:05 [RateCDR] => 1 ) [2025-01-07 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:55:05' and `end` < '2025-01-07 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:55:21] Production.INFO: count ==4443 [2025-01-07 11:55:23] Production.ERROR: pbx CDR StartTime 2025-01-07 08:55:05 - End Time 2025-01-07 11:55:05 [2025-01-07 11:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194732', 'tblTempUsageDetail_20' ) start [2025-01-07 11:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194732', 'tblTempUsageDetail_20' ) end [2025-01-07 11:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194732', 'tblTempVendorCDR_20' ) start [2025-01-07 11:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194732', 'tblTempVendorCDR_20' ) end [2025-01-07 11:55:23] Production.INFO: ProcessCDR(1,14194732,1,1,2) [2025-01-07 11:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194732', 'tblTempUsageDetail_20' ) start [2025-01-07 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194732', 'tblTempUsageDetail_20' ) end [2025-01-07 11:55:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:55:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:55:27] Production.INFO: ==5987== Releasing lock... [2025-01-07 11:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:55:27] Production.INFO: 61.25 MB #Memory Used# [2025-01-07 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:56:05 [end_date_ymd] => 2025-01-07 11:56:05 [RateCDR] => 1 ) [2025-01-07 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:56:05' and `end` < '2025-01-07 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:56:24] Production.INFO: count ==4456 [2025-01-07 11:56:26] Production.ERROR: pbx CDR StartTime 2025-01-07 08:56:05 - End Time 2025-01-07 11:56:05 [2025-01-07 11:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194737', 'tblTempUsageDetail_20' ) start [2025-01-07 11:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194737', 'tblTempUsageDetail_20' ) end [2025-01-07 11:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194737', 'tblTempVendorCDR_20' ) start [2025-01-07 11:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194737', 'tblTempVendorCDR_20' ) end [2025-01-07 11:56:26] Production.INFO: ProcessCDR(1,14194737,1,1,2) [2025-01-07 11:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194737', 'tblTempUsageDetail_20' ) start [2025-01-07 11:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194737', 'tblTempUsageDetail_20' ) end [2025-01-07 11:56:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:56:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:56:30] Production.INFO: ==6075== Releasing lock... [2025-01-07 11:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:56:30] Production.INFO: 61.25 MB #Memory Used# [2025-01-07 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:57:05 [end_date_ymd] => 2025-01-07 11:57:05 [RateCDR] => 1 ) [2025-01-07 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:57:05' and `end` < '2025-01-07 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:57:24] Production.INFO: count ==4476 [2025-01-07 11:57:26] Production.ERROR: pbx CDR StartTime 2025-01-07 08:57:05 - End Time 2025-01-07 11:57:05 [2025-01-07 11:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194742', 'tblTempUsageDetail_20' ) start [2025-01-07 11:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194742', 'tblTempUsageDetail_20' ) end [2025-01-07 11:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194742', 'tblTempVendorCDR_20' ) start [2025-01-07 11:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194742', 'tblTempVendorCDR_20' ) end [2025-01-07 11:57:26] Production.INFO: ProcessCDR(1,14194742,1,1,2) [2025-01-07 11:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194742', 'tblTempUsageDetail_20' ) start [2025-01-07 11:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194742', 'tblTempUsageDetail_20' ) end [2025-01-07 11:57:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:57:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:57:30] Production.INFO: ==6164== Releasing lock... [2025-01-07 11:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:57:30] Production.INFO: 61.5 MB #Memory Used# [2025-01-07 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:58:05 [end_date_ymd] => 2025-01-07 11:58:05 [RateCDR] => 1 ) [2025-01-07 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:58:05' and `end` < '2025-01-07 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:58:23] Production.INFO: count ==4493 [2025-01-07 11:58:24] Production.ERROR: pbx CDR StartTime 2025-01-07 08:58:05 - End Time 2025-01-07 11:58:05 [2025-01-07 11:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194747', 'tblTempUsageDetail_20' ) start [2025-01-07 11:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194747', 'tblTempUsageDetail_20' ) end [2025-01-07 11:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194747', 'tblTempVendorCDR_20' ) start [2025-01-07 11:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194747', 'tblTempVendorCDR_20' ) end [2025-01-07 11:58:25] Production.INFO: ProcessCDR(1,14194747,1,1,2) [2025-01-07 11:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194747', 'tblTempUsageDetail_20' ) start [2025-01-07 11:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194747', 'tblTempUsageDetail_20' ) end [2025-01-07 11:58:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:58:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:58:29] Production.INFO: ==6250== Releasing lock... [2025-01-07 11:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:58:29] Production.INFO: 61.5 MB #Memory Used# [2025-01-07 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 08:59:05 [end_date_ymd] => 2025-01-07 11:59:05 [RateCDR] => 1 ) [2025-01-07 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 08:59:05' and `end` < '2025-01-07 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 11:59:33] Production.INFO: count ==4494 [2025-01-07 11:59:35] Production.ERROR: pbx CDR StartTime 2025-01-07 08:59:05 - End Time 2025-01-07 11:59:05 [2025-01-07 11:59:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 11:59:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194752', 'tblTempUsageDetail_20' ) start [2025-01-07 11:59:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194752', 'tblTempUsageDetail_20' ) end [2025-01-07 11:59:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194752', 'tblTempVendorCDR_20' ) start [2025-01-07 11:59:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194752', 'tblTempVendorCDR_20' ) end [2025-01-07 11:59:35] Production.INFO: ProcessCDR(1,14194752,1,1,2) [2025-01-07 11:59:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:59:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 11:59:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:59:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 11:59:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194752', 'tblTempUsageDetail_20' ) start [2025-01-07 11:59:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194752', 'tblTempUsageDetail_20' ) end [2025-01-07 11:59:39] Production.ERROR: pbx prc_insertCDR start [2025-01-07 11:59:39] Production.ERROR: pbx prc_insertCDR end [2025-01-07 11:59:40] Production.INFO: ==6326== Releasing lock... [2025-01-07 11:59:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 11:59:40] Production.INFO: 61.75 MB #Memory Used# [2025-01-07 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:00:06 [end_date_ymd] => 2025-01-07 12:00:06 [RateCDR] => 1 ) [2025-01-07 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:00:06' and `end` < '2025-01-07 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:00:31] Production.INFO: count ==4494 [2025-01-07 12:00:33] Production.ERROR: pbx CDR StartTime 2025-01-07 09:00:06 - End Time 2025-01-07 12:00:06 [2025-01-07 12:00:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194758', 'tblTempUsageDetail_20' ) start [2025-01-07 12:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194758', 'tblTempUsageDetail_20' ) end [2025-01-07 12:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194758', 'tblTempVendorCDR_20' ) start [2025-01-07 12:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194758', 'tblTempVendorCDR_20' ) end [2025-01-07 12:00:33] Production.INFO: ProcessCDR(1,14194758,1,1,2) [2025-01-07 12:00:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:00:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:00:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194758', 'tblTempUsageDetail_20' ) start [2025-01-07 12:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194758', 'tblTempUsageDetail_20' ) end [2025-01-07 12:00:37] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:00:38] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:00:38] Production.INFO: ==6406== Releasing lock... [2025-01-07 12:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:00:38] Production.INFO: 61.75 MB #Memory Used# [2025-01-07 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:01:05 [end_date_ymd] => 2025-01-07 12:01:05 [RateCDR] => 1 ) [2025-01-07 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:01:05' and `end` < '2025-01-07 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:01:29] Production.INFO: count ==4551 [2025-01-07 12:01:31] Production.ERROR: pbx CDR StartTime 2025-01-07 09:01:05 - End Time 2025-01-07 12:01:05 [2025-01-07 12:01:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194763', 'tblTempUsageDetail_20' ) start [2025-01-07 12:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194763', 'tblTempUsageDetail_20' ) end [2025-01-07 12:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194763', 'tblTempVendorCDR_20' ) start [2025-01-07 12:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194763', 'tblTempVendorCDR_20' ) end [2025-01-07 12:01:31] Production.INFO: ProcessCDR(1,14194763,1,1,2) [2025-01-07 12:01:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:01:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:01:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:01:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194763', 'tblTempUsageDetail_20' ) start [2025-01-07 12:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194763', 'tblTempUsageDetail_20' ) end [2025-01-07 12:01:36] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:01:36] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:01:36] Production.INFO: ==6502== Releasing lock... [2025-01-07 12:01:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:01:36] Production.INFO: 62 MB #Memory Used# [2025-01-07 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:02:05 [end_date_ymd] => 2025-01-07 12:02:05 [RateCDR] => 1 ) [2025-01-07 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:02:05' and `end` < '2025-01-07 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:02:34] Production.INFO: count ==4570 [2025-01-07 12:02:35] Production.ERROR: pbx CDR StartTime 2025-01-07 09:02:05 - End Time 2025-01-07 12:02:05 [2025-01-07 12:02:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194768', 'tblTempUsageDetail_20' ) start [2025-01-07 12:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194768', 'tblTempUsageDetail_20' ) end [2025-01-07 12:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194768', 'tblTempVendorCDR_20' ) start [2025-01-07 12:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194768', 'tblTempVendorCDR_20' ) end [2025-01-07 12:02:35] Production.INFO: ProcessCDR(1,14194768,1,1,2) [2025-01-07 12:02:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:02:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:02:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:02:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:02:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194768', 'tblTempUsageDetail_20' ) start [2025-01-07 12:02:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194768', 'tblTempUsageDetail_20' ) end [2025-01-07 12:02:40] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:02:40] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:02:40] Production.INFO: ==6577== Releasing lock... [2025-01-07 12:02:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:02:40] Production.INFO: 62.25 MB #Memory Used# [2025-01-07 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:03:05 [end_date_ymd] => 2025-01-07 12:03:05 [RateCDR] => 1 ) [2025-01-07 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:03:05' and `end` < '2025-01-07 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:03:23] Production.INFO: count ==4552 [2025-01-07 12:03:25] Production.ERROR: pbx CDR StartTime 2025-01-07 09:03:05 - End Time 2025-01-07 12:03:05 [2025-01-07 12:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194773', 'tblTempUsageDetail_20' ) start [2025-01-07 12:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194773', 'tblTempUsageDetail_20' ) end [2025-01-07 12:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194773', 'tblTempVendorCDR_20' ) start [2025-01-07 12:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194773', 'tblTempVendorCDR_20' ) end [2025-01-07 12:03:25] Production.INFO: ProcessCDR(1,14194773,1,1,2) [2025-01-07 12:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194773', 'tblTempUsageDetail_20' ) start [2025-01-07 12:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194773', 'tblTempUsageDetail_20' ) end [2025-01-07 12:03:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:03:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:03:29] Production.INFO: ==6664== Releasing lock... [2025-01-07 12:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:03:29] Production.INFO: 62 MB #Memory Used# [2025-01-07 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:04:05 [end_date_ymd] => 2025-01-07 12:04:05 [RateCDR] => 1 ) [2025-01-07 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:04:05' and `end` < '2025-01-07 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:04:19] Production.INFO: count ==4555 [2025-01-07 12:04:20] Production.ERROR: pbx CDR StartTime 2025-01-07 09:04:05 - End Time 2025-01-07 12:04:05 [2025-01-07 12:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194778', 'tblTempUsageDetail_20' ) start [2025-01-07 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194778', 'tblTempUsageDetail_20' ) end [2025-01-07 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194778', 'tblTempVendorCDR_20' ) start [2025-01-07 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194778', 'tblTempVendorCDR_20' ) end [2025-01-07 12:04:20] Production.INFO: ProcessCDR(1,14194778,1,1,2) [2025-01-07 12:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194778', 'tblTempUsageDetail_20' ) start [2025-01-07 12:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194778', 'tblTempUsageDetail_20' ) end [2025-01-07 12:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:04:23] Production.INFO: ==6746== Releasing lock... [2025-01-07 12:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:04:23] Production.INFO: 62 MB #Memory Used# [2025-01-07 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:05:05 [end_date_ymd] => 2025-01-07 12:05:05 [RateCDR] => 1 ) [2025-01-07 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:05:05' and `end` < '2025-01-07 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:05:19] Production.INFO: count ==4560 [2025-01-07 12:05:21] Production.ERROR: pbx CDR StartTime 2025-01-07 09:05:05 - End Time 2025-01-07 12:05:05 [2025-01-07 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194783', 'tblTempUsageDetail_20' ) start [2025-01-07 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194783', 'tblTempUsageDetail_20' ) end [2025-01-07 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194783', 'tblTempVendorCDR_20' ) start [2025-01-07 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194783', 'tblTempVendorCDR_20' ) end [2025-01-07 12:05:21] Production.INFO: ProcessCDR(1,14194783,1,1,2) [2025-01-07 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194783', 'tblTempUsageDetail_20' ) start [2025-01-07 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194783', 'tblTempUsageDetail_20' ) end [2025-01-07 12:05:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:05:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:05:26] Production.INFO: ==6861== Releasing lock... [2025-01-07 12:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:05:26] Production.INFO: 62 MB #Memory Used# [2025-01-07 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:06:05 [end_date_ymd] => 2025-01-07 12:06:05 [RateCDR] => 1 ) [2025-01-07 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:06:05' and `end` < '2025-01-07 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:06:20] Production.INFO: count ==4559 [2025-01-07 12:06:21] Production.ERROR: pbx CDR StartTime 2025-01-07 09:06:05 - End Time 2025-01-07 12:06:05 [2025-01-07 12:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194788', 'tblTempUsageDetail_20' ) start [2025-01-07 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194788', 'tblTempUsageDetail_20' ) end [2025-01-07 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194788', 'tblTempVendorCDR_20' ) start [2025-01-07 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194788', 'tblTempVendorCDR_20' ) end [2025-01-07 12:06:21] Production.INFO: ProcessCDR(1,14194788,1,1,2) [2025-01-07 12:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194788', 'tblTempUsageDetail_20' ) start [2025-01-07 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194788', 'tblTempUsageDetail_20' ) end [2025-01-07 12:06:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:06:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:06:26] Production.INFO: ==6940== Releasing lock... [2025-01-07 12:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:06:26] Production.INFO: 62 MB #Memory Used# [2025-01-07 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:07:06 [end_date_ymd] => 2025-01-07 12:07:06 [RateCDR] => 1 ) [2025-01-07 12:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:07:06' and `end` < '2025-01-07 12:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:07:24] Production.INFO: count ==4552 [2025-01-07 12:07:26] Production.ERROR: pbx CDR StartTime 2025-01-07 09:07:06 - End Time 2025-01-07 12:07:06 [2025-01-07 12:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194793', 'tblTempUsageDetail_20' ) start [2025-01-07 12:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194793', 'tblTempUsageDetail_20' ) end [2025-01-07 12:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194793', 'tblTempVendorCDR_20' ) start [2025-01-07 12:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194793', 'tblTempVendorCDR_20' ) end [2025-01-07 12:07:26] Production.INFO: ProcessCDR(1,14194793,1,1,2) [2025-01-07 12:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194793', 'tblTempUsageDetail_20' ) start [2025-01-07 12:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194793', 'tblTempUsageDetail_20' ) end [2025-01-07 12:07:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:07:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:07:31] Production.INFO: ==7021== Releasing lock... [2025-01-07 12:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:07:31] Production.INFO: 62 MB #Memory Used# [2025-01-07 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:08:05 [end_date_ymd] => 2025-01-07 12:08:05 [RateCDR] => 1 ) [2025-01-07 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:08:05' and `end` < '2025-01-07 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:08:28] Production.INFO: count ==4555 [2025-01-07 12:08:29] Production.ERROR: pbx CDR StartTime 2025-01-07 09:08:05 - End Time 2025-01-07 12:08:05 [2025-01-07 12:08:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194798', 'tblTempUsageDetail_20' ) start [2025-01-07 12:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194798', 'tblTempUsageDetail_20' ) end [2025-01-07 12:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194798', 'tblTempVendorCDR_20' ) start [2025-01-07 12:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194798', 'tblTempVendorCDR_20' ) end [2025-01-07 12:08:29] Production.INFO: ProcessCDR(1,14194798,1,1,2) [2025-01-07 12:08:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:08:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:08:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:08:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:08:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194798', 'tblTempUsageDetail_20' ) start [2025-01-07 12:08:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194798', 'tblTempUsageDetail_20' ) end [2025-01-07 12:08:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:08:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:08:34] Production.INFO: ==7095== Releasing lock... [2025-01-07 12:08:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:08:34] Production.INFO: 62 MB #Memory Used# [2025-01-07 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:09:05 [end_date_ymd] => 2025-01-07 12:09:05 [RateCDR] => 1 ) [2025-01-07 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:09:05' and `end` < '2025-01-07 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:09:34] Production.INFO: count ==4572 [2025-01-07 12:09:35] Production.ERROR: pbx CDR StartTime 2025-01-07 09:09:05 - End Time 2025-01-07 12:09:05 [2025-01-07 12:09:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:09:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194803', 'tblTempUsageDetail_20' ) start [2025-01-07 12:09:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194803', 'tblTempUsageDetail_20' ) end [2025-01-07 12:09:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194803', 'tblTempVendorCDR_20' ) start [2025-01-07 12:09:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194803', 'tblTempVendorCDR_20' ) end [2025-01-07 12:09:36] Production.INFO: ProcessCDR(1,14194803,1,1,2) [2025-01-07 12:09:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:09:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:09:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:09:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:09:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194803', 'tblTempUsageDetail_20' ) start [2025-01-07 12:09:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194803', 'tblTempUsageDetail_20' ) end [2025-01-07 12:09:40] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:09:40] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:09:40] Production.INFO: ==7170== Releasing lock... [2025-01-07 12:09:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:09:40] Production.INFO: 62.25 MB #Memory Used# [2025-01-07 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:10:06 [end_date_ymd] => 2025-01-07 12:10:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 09:10:06' and `end` < '2025-01-07 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-01-07 12:10:34] Production.INFO: count ==4569 [2025-01-07 12:10:35] Production.ERROR: pbx CDR StartTime 2025-01-07 09:10:06 - End Time 2025-01-07 12:10:06 [2025-01-07 12:10:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:10:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194809', 'tblTempUsageDetail_20' ) start [2025-01-07 12:10:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194809', 'tblTempUsageDetail_20' ) end [2025-01-07 12:10:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194809', 'tblTempVendorCDR_20' ) start [2025-01-07 12:10:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194809', 'tblTempVendorCDR_20' ) end [2025-01-07 12:10:36] Production.INFO: ProcessCDR(1,14194809,1,1,2) [2025-01-07 12:10:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:10:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:10:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:10:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:10:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194809', 'tblTempUsageDetail_20' ) start [2025-01-07 12:10:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194809', 'tblTempUsageDetail_20' ) end [2025-01-07 12:10:40] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:10:40] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:10:40] Production.INFO: ==7250== Releasing lock... [2025-01-07 12:10:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:10:40] Production.INFO: 62.25 MB #Memory Used# [2025-01-07 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:11:05 [end_date_ymd] => 2025-01-07 12:11:05 [RateCDR] => 1 ) [2025-01-07 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:11:05' and `end` < '2025-01-07 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:11:27] Production.INFO: count ==4610 [2025-01-07 12:11:29] Production.ERROR: pbx CDR StartTime 2025-01-07 09:11:05 - End Time 2025-01-07 12:11:05 [2025-01-07 12:11:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194814', 'tblTempUsageDetail_20' ) start [2025-01-07 12:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194814', 'tblTempUsageDetail_20' ) end [2025-01-07 12:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194814', 'tblTempVendorCDR_20' ) start [2025-01-07 12:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194814', 'tblTempVendorCDR_20' ) end [2025-01-07 12:11:29] Production.INFO: ProcessCDR(1,14194814,1,1,2) [2025-01-07 12:11:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:11:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:11:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:11:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194814', 'tblTempUsageDetail_20' ) start [2025-01-07 12:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194814', 'tblTempUsageDetail_20' ) end [2025-01-07 12:11:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:11:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:11:34] Production.INFO: ==7349== Releasing lock... [2025-01-07 12:11:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:11:34] Production.INFO: 62.5 MB #Memory Used# [2025-01-07 12:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:12:04 [end_date_ymd] => 2025-01-07 12:12:04 [RateCDR] => 1 ) [2025-01-07 12:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:12:04' and `end` < '2025-01-07 12:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:12:22] Production.INFO: count ==4641 [2025-01-07 12:12:24] Production.ERROR: pbx CDR StartTime 2025-01-07 09:12:04 - End Time 2025-01-07 12:12:04 [2025-01-07 12:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194819', 'tblTempUsageDetail_20' ) start [2025-01-07 12:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194819', 'tblTempUsageDetail_20' ) end [2025-01-07 12:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194819', 'tblTempVendorCDR_20' ) start [2025-01-07 12:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194819', 'tblTempVendorCDR_20' ) end [2025-01-07 12:12:24] Production.INFO: ProcessCDR(1,14194819,1,1,2) [2025-01-07 12:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194819', 'tblTempUsageDetail_20' ) start [2025-01-07 12:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194819', 'tblTempUsageDetail_20' ) end [2025-01-07 12:12:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:12:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:12:28] Production.INFO: ==7437== Releasing lock... [2025-01-07 12:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:12:28] Production.INFO: 62.75 MB #Memory Used# [2025-01-07 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:13:05 [end_date_ymd] => 2025-01-07 12:13:05 [RateCDR] => 1 ) [2025-01-07 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:13:05' and `end` < '2025-01-07 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:13:28] Production.INFO: count ==4642 [2025-01-07 12:13:30] Production.ERROR: pbx CDR StartTime 2025-01-07 09:13:05 - End Time 2025-01-07 12:13:05 [2025-01-07 12:13:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194824', 'tblTempUsageDetail_20' ) start [2025-01-07 12:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194824', 'tblTempUsageDetail_20' ) end [2025-01-07 12:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194824', 'tblTempVendorCDR_20' ) start [2025-01-07 12:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194824', 'tblTempVendorCDR_20' ) end [2025-01-07 12:13:30] Production.INFO: ProcessCDR(1,14194824,1,1,2) [2025-01-07 12:13:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:13:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:13:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:13:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:13:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194824', 'tblTempUsageDetail_20' ) start [2025-01-07 12:13:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194824', 'tblTempUsageDetail_20' ) end [2025-01-07 12:13:35] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:13:35] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:13:35] Production.INFO: ==7527== Releasing lock... [2025-01-07 12:13:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:13:35] Production.INFO: 62.75 MB #Memory Used# [2025-01-07 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:14:05 [end_date_ymd] => 2025-01-07 12:14:05 [RateCDR] => 1 ) [2025-01-07 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:14:05' and `end` < '2025-01-07 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:14:28] Production.INFO: count ==4646 [2025-01-07 12:14:30] Production.ERROR: pbx CDR StartTime 2025-01-07 09:14:05 - End Time 2025-01-07 12:14:05 [2025-01-07 12:14:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194829', 'tblTempUsageDetail_20' ) start [2025-01-07 12:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194829', 'tblTempUsageDetail_20' ) end [2025-01-07 12:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194829', 'tblTempVendorCDR_20' ) start [2025-01-07 12:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194829', 'tblTempVendorCDR_20' ) end [2025-01-07 12:14:30] Production.INFO: ProcessCDR(1,14194829,1,1,2) [2025-01-07 12:14:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:14:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:14:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:14:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:14:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194829', 'tblTempUsageDetail_20' ) start [2025-01-07 12:14:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194829', 'tblTempUsageDetail_20' ) end [2025-01-07 12:14:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:14:35] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:14:35] Production.INFO: ==7614== Releasing lock... [2025-01-07 12:14:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:14:35] Production.INFO: 62.75 MB #Memory Used# [2025-01-07 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:15:05 [end_date_ymd] => 2025-01-07 12:15:05 [RateCDR] => 1 ) [2025-01-07 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:15:05' and `end` < '2025-01-07 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:15:29] Production.INFO: count ==4654 [2025-01-07 12:15:31] Production.ERROR: pbx CDR StartTime 2025-01-07 09:15:05 - End Time 2025-01-07 12:15:05 [2025-01-07 12:15:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194834', 'tblTempUsageDetail_20' ) start [2025-01-07 12:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194834', 'tblTempUsageDetail_20' ) end [2025-01-07 12:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194834', 'tblTempVendorCDR_20' ) start [2025-01-07 12:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194834', 'tblTempVendorCDR_20' ) end [2025-01-07 12:15:31] Production.INFO: ProcessCDR(1,14194834,1,1,2) [2025-01-07 12:15:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:15:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:15:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:15:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194834', 'tblTempUsageDetail_20' ) start [2025-01-07 12:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194834', 'tblTempUsageDetail_20' ) end [2025-01-07 12:15:36] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:15:36] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:15:36] Production.INFO: ==7708== Releasing lock... [2025-01-07 12:15:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:15:36] Production.INFO: 62.75 MB #Memory Used# [2025-01-07 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:16:05 [end_date_ymd] => 2025-01-07 12:16:05 [RateCDR] => 1 ) [2025-01-07 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:16:05' and `end` < '2025-01-07 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:16:22] Production.INFO: count ==4651 [2025-01-07 12:16:24] Production.ERROR: pbx CDR StartTime 2025-01-07 09:16:05 - End Time 2025-01-07 12:16:05 [2025-01-07 12:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194839', 'tblTempUsageDetail_20' ) start [2025-01-07 12:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194839', 'tblTempUsageDetail_20' ) end [2025-01-07 12:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194839', 'tblTempVendorCDR_20' ) start [2025-01-07 12:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194839', 'tblTempVendorCDR_20' ) end [2025-01-07 12:16:24] Production.INFO: ProcessCDR(1,14194839,1,1,2) [2025-01-07 12:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194839', 'tblTempUsageDetail_20' ) start [2025-01-07 12:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194839', 'tblTempUsageDetail_20' ) end [2025-01-07 12:16:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:16:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:16:29] Production.INFO: ==7780== Releasing lock... [2025-01-07 12:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:16:29] Production.INFO: 62.75 MB #Memory Used# [2025-01-07 12:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:17:04 [end_date_ymd] => 2025-01-07 12:17:04 [RateCDR] => 1 ) [2025-01-07 12:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:17:04' and `end` < '2025-01-07 12:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:17:21] Production.INFO: count ==4652 [2025-01-07 12:17:22] Production.ERROR: pbx CDR StartTime 2025-01-07 09:17:04 - End Time 2025-01-07 12:17:04 [2025-01-07 12:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194844', 'tblTempUsageDetail_20' ) start [2025-01-07 12:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194844', 'tblTempUsageDetail_20' ) end [2025-01-07 12:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194844', 'tblTempVendorCDR_20' ) start [2025-01-07 12:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194844', 'tblTempVendorCDR_20' ) end [2025-01-07 12:17:23] Production.INFO: ProcessCDR(1,14194844,1,1,2) [2025-01-07 12:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194844', 'tblTempUsageDetail_20' ) start [2025-01-07 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194844', 'tblTempUsageDetail_20' ) end [2025-01-07 12:17:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:17:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:17:27] Production.INFO: ==7852== Releasing lock... [2025-01-07 12:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:17:27] Production.INFO: 62.75 MB #Memory Used# [2025-01-07 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:18:05 [end_date_ymd] => 2025-01-07 12:18:05 [RateCDR] => 1 ) [2025-01-07 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:18:05' and `end` < '2025-01-07 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:18:19] Production.INFO: count ==4643 [2025-01-07 12:18:21] Production.ERROR: pbx CDR StartTime 2025-01-07 09:18:05 - End Time 2025-01-07 12:18:05 [2025-01-07 12:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194849', 'tblTempUsageDetail_20' ) start [2025-01-07 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194849', 'tblTempUsageDetail_20' ) end [2025-01-07 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194849', 'tblTempVendorCDR_20' ) start [2025-01-07 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194849', 'tblTempVendorCDR_20' ) end [2025-01-07 12:18:21] Production.INFO: ProcessCDR(1,14194849,1,1,2) [2025-01-07 12:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194849', 'tblTempUsageDetail_20' ) start [2025-01-07 12:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194849', 'tblTempUsageDetail_20' ) end [2025-01-07 12:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:18:25] Production.INFO: ==7937== Releasing lock... [2025-01-07 12:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:18:25] Production.INFO: 62.75 MB #Memory Used# [2025-01-07 12:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:19:04 [end_date_ymd] => 2025-01-07 12:19:04 [RateCDR] => 1 ) [2025-01-07 12:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:19:04' and `end` < '2025-01-07 12:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:19:35] Production.INFO: count ==4648 [2025-01-07 12:19:37] Production.ERROR: pbx CDR StartTime 2025-01-07 09:19:04 - End Time 2025-01-07 12:19:04 [2025-01-07 12:19:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:19:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194854', 'tblTempUsageDetail_20' ) start [2025-01-07 12:19:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194854', 'tblTempUsageDetail_20' ) end [2025-01-07 12:19:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194854', 'tblTempVendorCDR_20' ) start [2025-01-07 12:19:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194854', 'tblTempVendorCDR_20' ) end [2025-01-07 12:19:37] Production.INFO: ProcessCDR(1,14194854,1,1,2) [2025-01-07 12:19:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:19:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:19:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:19:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:19:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194854', 'tblTempUsageDetail_20' ) start [2025-01-07 12:19:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194854', 'tblTempUsageDetail_20' ) end [2025-01-07 12:19:41] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:19:41] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:19:41] Production.INFO: ==8011== Releasing lock... [2025-01-07 12:19:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:19:41] Production.INFO: 62.75 MB #Memory Used# [2025-01-07 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:20:06 [end_date_ymd] => 2025-01-07 12:20:06 [RateCDR] => 1 ) [2025-01-07 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:20:06' and `end` < '2025-01-07 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:20:27] Production.INFO: count ==4638 [2025-01-07 12:20:28] Production.ERROR: pbx CDR StartTime 2025-01-07 09:20:06 - End Time 2025-01-07 12:20:06 [2025-01-07 12:20:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194860', 'tblTempUsageDetail_20' ) start [2025-01-07 12:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194860', 'tblTempUsageDetail_20' ) end [2025-01-07 12:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194860', 'tblTempVendorCDR_20' ) start [2025-01-07 12:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194860', 'tblTempVendorCDR_20' ) end [2025-01-07 12:20:29] Production.INFO: ProcessCDR(1,14194860,1,1,2) [2025-01-07 12:20:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:20:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:20:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:20:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194860', 'tblTempUsageDetail_20' ) start [2025-01-07 12:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194860', 'tblTempUsageDetail_20' ) end [2025-01-07 12:20:33] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:20:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:20:33] Production.INFO: ==8088== Releasing lock... [2025-01-07 12:20:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:20:33] Production.INFO: 62.75 MB #Memory Used# [2025-01-07 12:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:21:04 [end_date_ymd] => 2025-01-07 12:21:04 [RateCDR] => 1 ) [2025-01-07 12:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:21:04' and `end` < '2025-01-07 12:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:21:25] Production.INFO: count ==4723 [2025-01-07 12:21:27] Production.ERROR: pbx CDR StartTime 2025-01-07 09:21:04 - End Time 2025-01-07 12:21:04 [2025-01-07 12:21:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194865', 'tblTempUsageDetail_20' ) start [2025-01-07 12:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194865', 'tblTempUsageDetail_20' ) end [2025-01-07 12:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194865', 'tblTempVendorCDR_20' ) start [2025-01-07 12:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194865', 'tblTempVendorCDR_20' ) end [2025-01-07 12:21:27] Production.INFO: ProcessCDR(1,14194865,1,1,2) [2025-01-07 12:21:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:21:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:21:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194865', 'tblTempUsageDetail_20' ) start [2025-01-07 12:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194865', 'tblTempUsageDetail_20' ) end [2025-01-07 12:21:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:21:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:21:31] Production.INFO: ==8203== Releasing lock... [2025-01-07 12:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:21:31] Production.INFO: 63.25 MB #Memory Used# [2025-01-07 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:22:05 [end_date_ymd] => 2025-01-07 12:22:05 [RateCDR] => 1 ) [2025-01-07 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:22:05' and `end` < '2025-01-07 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:22:33] Production.INFO: count ==4765 [2025-01-07 12:22:34] Production.ERROR: pbx CDR StartTime 2025-01-07 09:22:05 - End Time 2025-01-07 12:22:05 [2025-01-07 12:22:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:22:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194870', 'tblTempUsageDetail_20' ) start [2025-01-07 12:22:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194870', 'tblTempUsageDetail_20' ) end [2025-01-07 12:22:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194870', 'tblTempVendorCDR_20' ) start [2025-01-07 12:22:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194870', 'tblTempVendorCDR_20' ) end [2025-01-07 12:22:35] Production.INFO: ProcessCDR(1,14194870,1,1,2) [2025-01-07 12:22:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:22:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:22:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:22:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:22:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194870', 'tblTempUsageDetail_20' ) start [2025-01-07 12:22:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194870', 'tblTempUsageDetail_20' ) end [2025-01-07 12:22:39] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:22:39] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:22:39] Production.INFO: ==8280== Releasing lock... [2025-01-07 12:22:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:22:39] Production.INFO: 63.75 MB #Memory Used# [2025-01-07 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:23:05 [end_date_ymd] => 2025-01-07 12:23:05 [RateCDR] => 1 ) [2025-01-07 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:23:05' and `end` < '2025-01-07 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:23:37] Production.INFO: count ==4789 [2025-01-07 12:23:39] Production.ERROR: pbx CDR StartTime 2025-01-07 09:23:05 - End Time 2025-01-07 12:23:05 [2025-01-07 12:23:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:23:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194875', 'tblTempUsageDetail_20' ) start [2025-01-07 12:23:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194875', 'tblTempUsageDetail_20' ) end [2025-01-07 12:23:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194875', 'tblTempVendorCDR_20' ) start [2025-01-07 12:23:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194875', 'tblTempVendorCDR_20' ) end [2025-01-07 12:23:39] Production.INFO: ProcessCDR(1,14194875,1,1,2) [2025-01-07 12:23:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:23:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:23:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:23:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:23:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194875', 'tblTempUsageDetail_20' ) start [2025-01-07 12:23:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194875', 'tblTempUsageDetail_20' ) end [2025-01-07 12:23:43] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:23:43] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:23:43] Production.INFO: ==8353== Releasing lock... [2025-01-07 12:23:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:23:43] Production.INFO: 63.75 MB #Memory Used# [2025-01-07 12:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:24:04 [end_date_ymd] => 2025-01-07 12:24:04 [RateCDR] => 1 ) [2025-01-07 12:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:24:04' and `end` < '2025-01-07 12:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:24:27] Production.INFO: count ==4814 [2025-01-07 12:24:28] Production.ERROR: pbx CDR StartTime 2025-01-07 09:24:04 - End Time 2025-01-07 12:24:04 [2025-01-07 12:24:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194880', 'tblTempUsageDetail_20' ) start [2025-01-07 12:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194880', 'tblTempUsageDetail_20' ) end [2025-01-07 12:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194880', 'tblTempVendorCDR_20' ) start [2025-01-07 12:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194880', 'tblTempVendorCDR_20' ) end [2025-01-07 12:24:29] Production.INFO: ProcessCDR(1,14194880,1,1,2) [2025-01-07 12:24:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:24:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:24:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:24:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194880', 'tblTempUsageDetail_20' ) start [2025-01-07 12:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194880', 'tblTempUsageDetail_20' ) end [2025-01-07 12:24:33] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:24:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:24:33] Production.INFO: ==8427== Releasing lock... [2025-01-07 12:24:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:24:33] Production.INFO: 64 MB #Memory Used# [2025-01-07 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:25:05 [end_date_ymd] => 2025-01-07 12:25:05 [RateCDR] => 1 ) [2025-01-07 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:25:05' and `end` < '2025-01-07 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:25:28] Production.INFO: count ==4825 [2025-01-07 12:25:30] Production.ERROR: pbx CDR StartTime 2025-01-07 09:25:05 - End Time 2025-01-07 12:25:05 [2025-01-07 12:25:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194885', 'tblTempUsageDetail_20' ) start [2025-01-07 12:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194885', 'tblTempUsageDetail_20' ) end [2025-01-07 12:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194885', 'tblTempVendorCDR_20' ) start [2025-01-07 12:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194885', 'tblTempVendorCDR_20' ) end [2025-01-07 12:25:30] Production.INFO: ProcessCDR(1,14194885,1,1,2) [2025-01-07 12:25:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:25:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:25:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194885', 'tblTempUsageDetail_20' ) start [2025-01-07 12:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194885', 'tblTempUsageDetail_20' ) end [2025-01-07 12:25:35] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:25:35] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:25:35] Production.INFO: ==8506== Releasing lock... [2025-01-07 12:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:25:35] Production.INFO: 64 MB #Memory Used# [2025-01-07 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:26:05 [end_date_ymd] => 2025-01-07 12:26:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 09:26:05' and `end` < '2025-01-07 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-01-07 12:26:26] Production.INFO: count ==4822 [2025-01-07 12:26:28] Production.ERROR: pbx CDR StartTime 2025-01-07 09:26:05 - End Time 2025-01-07 12:26:05 [2025-01-07 12:26:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194890', 'tblTempUsageDetail_20' ) start [2025-01-07 12:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194890', 'tblTempUsageDetail_20' ) end [2025-01-07 12:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194890', 'tblTempVendorCDR_20' ) start [2025-01-07 12:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194890', 'tblTempVendorCDR_20' ) end [2025-01-07 12:26:28] Production.INFO: ProcessCDR(1,14194890,1,1,2) [2025-01-07 12:26:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:26:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:26:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:26:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194890', 'tblTempUsageDetail_20' ) start [2025-01-07 12:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194890', 'tblTempUsageDetail_20' ) end [2025-01-07 12:26:32] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:26:32] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:26:32] Production.INFO: ==8579== Releasing lock... [2025-01-07 12:26:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:26:32] Production.INFO: 64 MB #Memory Used# [2025-01-07 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:27:05 [end_date_ymd] => 2025-01-07 12:27:05 [RateCDR] => 1 ) [2025-01-07 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:27:05' and `end` < '2025-01-07 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:27:24] Production.INFO: count ==4817 [2025-01-07 12:27:25] Production.ERROR: pbx CDR StartTime 2025-01-07 09:27:05 - End Time 2025-01-07 12:27:05 [2025-01-07 12:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194895', 'tblTempUsageDetail_20' ) start [2025-01-07 12:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194895', 'tblTempUsageDetail_20' ) end [2025-01-07 12:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194895', 'tblTempVendorCDR_20' ) start [2025-01-07 12:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194895', 'tblTempVendorCDR_20' ) end [2025-01-07 12:27:26] Production.INFO: ProcessCDR(1,14194895,1,1,2) [2025-01-07 12:27:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:27:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:27:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194895', 'tblTempUsageDetail_20' ) start [2025-01-07 12:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194895', 'tblTempUsageDetail_20' ) end [2025-01-07 12:27:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:27:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:27:30] Production.INFO: ==8654== Releasing lock... [2025-01-07 12:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:27:30] Production.INFO: 64 MB #Memory Used# [2025-01-07 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:28:05 [end_date_ymd] => 2025-01-07 12:28:05 [RateCDR] => 1 ) [2025-01-07 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:28:05' and `end` < '2025-01-07 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:28:22] Production.INFO: count ==4803 [2025-01-07 12:28:24] Production.ERROR: pbx CDR StartTime 2025-01-07 09:28:05 - End Time 2025-01-07 12:28:05 [2025-01-07 12:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194900', 'tblTempUsageDetail_20' ) start [2025-01-07 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194900', 'tblTempUsageDetail_20' ) end [2025-01-07 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194900', 'tblTempVendorCDR_20' ) start [2025-01-07 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194900', 'tblTempVendorCDR_20' ) end [2025-01-07 12:28:24] Production.INFO: ProcessCDR(1,14194900,1,1,2) [2025-01-07 12:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194900', 'tblTempUsageDetail_20' ) start [2025-01-07 12:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194900', 'tblTempUsageDetail_20' ) end [2025-01-07 12:28:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:28:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:28:29] Production.INFO: ==8727== Releasing lock... [2025-01-07 12:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:28:29] Production.INFO: 64 MB #Memory Used# [2025-01-07 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:29:05 [end_date_ymd] => 2025-01-07 12:29:05 [RateCDR] => 1 ) [2025-01-07 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:29:05' and `end` < '2025-01-07 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:29:29] Production.INFO: count ==4805 [2025-01-07 12:29:31] Production.ERROR: pbx CDR StartTime 2025-01-07 09:29:05 - End Time 2025-01-07 12:29:05 [2025-01-07 12:29:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194905', 'tblTempUsageDetail_20' ) start [2025-01-07 12:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194905', 'tblTempUsageDetail_20' ) end [2025-01-07 12:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194905', 'tblTempVendorCDR_20' ) start [2025-01-07 12:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194905', 'tblTempVendorCDR_20' ) end [2025-01-07 12:29:31] Production.INFO: ProcessCDR(1,14194905,1,1,2) [2025-01-07 12:29:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:29:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:29:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:29:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194905', 'tblTempUsageDetail_20' ) start [2025-01-07 12:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194905', 'tblTempUsageDetail_20' ) end [2025-01-07 12:29:35] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:29:35] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:29:35] Production.INFO: ==8798== Releasing lock... [2025-01-07 12:29:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:29:35] Production.INFO: 64 MB #Memory Used# [2025-01-07 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:30:06 [end_date_ymd] => 2025-01-07 12:30:06 [RateCDR] => 1 ) [2025-01-07 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:30:06' and `end` < '2025-01-07 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:30:31] Production.INFO: count ==4833 [2025-01-07 12:30:33] Production.ERROR: pbx CDR StartTime 2025-01-07 09:30:06 - End Time 2025-01-07 12:30:06 [2025-01-07 12:30:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194911', 'tblTempUsageDetail_20' ) start [2025-01-07 12:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194911', 'tblTempUsageDetail_20' ) end [2025-01-07 12:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194911', 'tblTempVendorCDR_20' ) start [2025-01-07 12:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194911', 'tblTempVendorCDR_20' ) end [2025-01-07 12:30:33] Production.INFO: ProcessCDR(1,14194911,1,1,2) [2025-01-07 12:30:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:30:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:30:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:30:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:30:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194911', 'tblTempUsageDetail_20' ) start [2025-01-07 12:30:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194911', 'tblTempUsageDetail_20' ) end [2025-01-07 12:30:38] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:30:38] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:30:38] Production.INFO: ==8876== Releasing lock... [2025-01-07 12:30:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:30:38] Production.INFO: 64.25 MB #Memory Used# [2025-01-07 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:31:05 [end_date_ymd] => 2025-01-07 12:31:05 [RateCDR] => 1 ) [2025-01-07 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:31:05' and `end` < '2025-01-07 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:31:38] Production.INFO: count ==4809 [2025-01-07 12:31:40] Production.ERROR: pbx CDR StartTime 2025-01-07 09:31:05 - End Time 2025-01-07 12:31:05 [2025-01-07 12:31:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:31:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194916', 'tblTempUsageDetail_20' ) start [2025-01-07 12:31:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194916', 'tblTempUsageDetail_20' ) end [2025-01-07 12:31:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194916', 'tblTempVendorCDR_20' ) start [2025-01-07 12:31:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194916', 'tblTempVendorCDR_20' ) end [2025-01-07 12:31:40] Production.INFO: ProcessCDR(1,14194916,1,1,2) [2025-01-07 12:31:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:31:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:31:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:31:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:31:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194916', 'tblTempUsageDetail_20' ) start [2025-01-07 12:31:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194916', 'tblTempUsageDetail_20' ) end [2025-01-07 12:31:45] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:31:45] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:31:45] Production.INFO: ==8949== Releasing lock... [2025-01-07 12:31:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:31:45] Production.INFO: 64 MB #Memory Used# [2025-01-07 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:32:05 [end_date_ymd] => 2025-01-07 12:32:05 [RateCDR] => 1 ) [2025-01-07 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:32:05' and `end` < '2025-01-07 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:32:38] Production.INFO: count ==4827 [2025-01-07 12:32:40] Production.ERROR: pbx CDR StartTime 2025-01-07 09:32:05 - End Time 2025-01-07 12:32:05 [2025-01-07 12:32:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:32:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194921', 'tblTempUsageDetail_20' ) start [2025-01-07 12:32:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194921', 'tblTempUsageDetail_20' ) end [2025-01-07 12:32:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194921', 'tblTempVendorCDR_20' ) start [2025-01-07 12:32:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194921', 'tblTempVendorCDR_20' ) end [2025-01-07 12:32:40] Production.INFO: ProcessCDR(1,14194921,1,1,2) [2025-01-07 12:32:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:32:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:32:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:32:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:32:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194921', 'tblTempUsageDetail_20' ) start [2025-01-07 12:32:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194921', 'tblTempUsageDetail_20' ) end [2025-01-07 12:32:44] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:32:44] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:32:44] Production.INFO: ==9020== Releasing lock... [2025-01-07 12:32:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:32:44] Production.INFO: 64.25 MB #Memory Used# [2025-01-07 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:33:05 [end_date_ymd] => 2025-01-07 12:33:05 [RateCDR] => 1 ) [2025-01-07 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:33:05' and `end` < '2025-01-07 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:33:29] Production.INFO: count ==4825 [2025-01-07 12:33:31] Production.ERROR: pbx CDR StartTime 2025-01-07 09:33:05 - End Time 2025-01-07 12:33:05 [2025-01-07 12:33:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194926', 'tblTempUsageDetail_20' ) start [2025-01-07 12:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194926', 'tblTempUsageDetail_20' ) end [2025-01-07 12:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194926', 'tblTempVendorCDR_20' ) start [2025-01-07 12:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194926', 'tblTempVendorCDR_20' ) end [2025-01-07 12:33:31] Production.INFO: ProcessCDR(1,14194926,1,1,2) [2025-01-07 12:33:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:33:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:33:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:33:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:33:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194926', 'tblTempUsageDetail_20' ) start [2025-01-07 12:33:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194926', 'tblTempUsageDetail_20' ) end [2025-01-07 12:33:36] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:33:36] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:33:36] Production.INFO: ==9091== Releasing lock... [2025-01-07 12:33:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:33:36] Production.INFO: 64 MB #Memory Used# [2025-01-07 12:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:34:04 [end_date_ymd] => 2025-01-07 12:34:04 [RateCDR] => 1 ) [2025-01-07 12:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:34:04' and `end` < '2025-01-07 12:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:34:31] Production.INFO: count ==4817 [2025-01-07 12:34:33] Production.ERROR: pbx CDR StartTime 2025-01-07 09:34:04 - End Time 2025-01-07 12:34:04 [2025-01-07 12:34:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:34:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194931', 'tblTempUsageDetail_20' ) start [2025-01-07 12:34:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194931', 'tblTempUsageDetail_20' ) end [2025-01-07 12:34:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194931', 'tblTempVendorCDR_20' ) start [2025-01-07 12:34:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194931', 'tblTempVendorCDR_20' ) end [2025-01-07 12:34:33] Production.INFO: ProcessCDR(1,14194931,1,1,2) [2025-01-07 12:34:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:34:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:34:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:34:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:34:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194931', 'tblTempUsageDetail_20' ) start [2025-01-07 12:34:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194931', 'tblTempUsageDetail_20' ) end [2025-01-07 12:34:38] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:34:38] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:34:38] Production.INFO: ==9162== Releasing lock... [2025-01-07 12:34:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:34:38] Production.INFO: 64 MB #Memory Used# [2025-01-07 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:35:05 [end_date_ymd] => 2025-01-07 12:35:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 09:35:05' and `end` < '2025-01-07 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-01-07 12:35:27] Production.INFO: count ==4824 [2025-01-07 12:35:29] Production.ERROR: pbx CDR StartTime 2025-01-07 09:35:05 - End Time 2025-01-07 12:35:05 [2025-01-07 12:35:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194936', 'tblTempUsageDetail_20' ) start [2025-01-07 12:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194936', 'tblTempUsageDetail_20' ) end [2025-01-07 12:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194936', 'tblTempVendorCDR_20' ) start [2025-01-07 12:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194936', 'tblTempVendorCDR_20' ) end [2025-01-07 12:35:29] Production.INFO: ProcessCDR(1,14194936,1,1,2) [2025-01-07 12:35:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:35:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:35:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:35:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194936', 'tblTempUsageDetail_20' ) start [2025-01-07 12:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194936', 'tblTempUsageDetail_20' ) end [2025-01-07 12:35:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:35:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:35:34] Production.INFO: ==9233== Releasing lock... [2025-01-07 12:35:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:35:34] Production.INFO: 64 MB #Memory Used# [2025-01-07 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:36:05 [end_date_ymd] => 2025-01-07 12:36:05 [RateCDR] => 1 ) [2025-01-07 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:36:05' and `end` < '2025-01-07 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:36:22] Production.INFO: count ==4855 [2025-01-07 12:36:24] Production.ERROR: pbx CDR StartTime 2025-01-07 09:36:05 - End Time 2025-01-07 12:36:05 [2025-01-07 12:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194941', 'tblTempUsageDetail_20' ) start [2025-01-07 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194941', 'tblTempUsageDetail_20' ) end [2025-01-07 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194941', 'tblTempVendorCDR_20' ) start [2025-01-07 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194941', 'tblTempVendorCDR_20' ) end [2025-01-07 12:36:24] Production.INFO: ProcessCDR(1,14194941,1,1,2) [2025-01-07 12:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194941', 'tblTempUsageDetail_20' ) start [2025-01-07 12:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194941', 'tblTempUsageDetail_20' ) end [2025-01-07 12:36:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:36:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:36:28] Production.INFO: ==9343== Releasing lock... [2025-01-07 12:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:36:28] Production.INFO: 64.25 MB #Memory Used# [2025-01-07 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:37:05 [end_date_ymd] => 2025-01-07 12:37:05 [RateCDR] => 1 ) [2025-01-07 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:37:05' and `end` < '2025-01-07 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:37:30] Production.INFO: count ==4872 [2025-01-07 12:37:32] Production.ERROR: pbx CDR StartTime 2025-01-07 09:37:05 - End Time 2025-01-07 12:37:05 [2025-01-07 12:37:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:37:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194946', 'tblTempUsageDetail_20' ) start [2025-01-07 12:37:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194946', 'tblTempUsageDetail_20' ) end [2025-01-07 12:37:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194946', 'tblTempVendorCDR_20' ) start [2025-01-07 12:37:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194946', 'tblTempVendorCDR_20' ) end [2025-01-07 12:37:32] Production.INFO: ProcessCDR(1,14194946,1,1,2) [2025-01-07 12:37:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:37:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:37:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:37:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:37:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194946', 'tblTempUsageDetail_20' ) start [2025-01-07 12:37:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194946', 'tblTempUsageDetail_20' ) end [2025-01-07 12:37:36] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:37:36] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:37:36] Production.INFO: ==9415== Releasing lock... [2025-01-07 12:37:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:37:36] Production.INFO: 64.5 MB #Memory Used# [2025-01-07 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:38:05 [end_date_ymd] => 2025-01-07 12:38:05 [RateCDR] => 1 ) [2025-01-07 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:38:05' and `end` < '2025-01-07 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:38:19] Production.INFO: count ==4864 [2025-01-07 12:38:21] Production.ERROR: pbx CDR StartTime 2025-01-07 09:38:05 - End Time 2025-01-07 12:38:05 [2025-01-07 12:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194951', 'tblTempUsageDetail_20' ) start [2025-01-07 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194951', 'tblTempUsageDetail_20' ) end [2025-01-07 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194951', 'tblTempVendorCDR_20' ) start [2025-01-07 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194951', 'tblTempVendorCDR_20' ) end [2025-01-07 12:38:21] Production.INFO: ProcessCDR(1,14194951,1,1,2) [2025-01-07 12:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194951', 'tblTempUsageDetail_20' ) start [2025-01-07 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194951', 'tblTempUsageDetail_20' ) end [2025-01-07 12:38:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:38:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:38:26] Production.INFO: ==9484== Releasing lock... [2025-01-07 12:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:38:26] Production.INFO: 64.5 MB #Memory Used# [2025-01-07 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:39:05 [end_date_ymd] => 2025-01-07 12:39:05 [RateCDR] => 1 ) [2025-01-07 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:39:05' and `end` < '2025-01-07 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:39:24] Production.INFO: count ==4859 [2025-01-07 12:39:26] Production.ERROR: pbx CDR StartTime 2025-01-07 09:39:05 - End Time 2025-01-07 12:39:05 [2025-01-07 12:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194956', 'tblTempUsageDetail_20' ) start [2025-01-07 12:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194956', 'tblTempUsageDetail_20' ) end [2025-01-07 12:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194956', 'tblTempVendorCDR_20' ) start [2025-01-07 12:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194956', 'tblTempVendorCDR_20' ) end [2025-01-07 12:39:26] Production.INFO: ProcessCDR(1,14194956,1,1,2) [2025-01-07 12:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194956', 'tblTempUsageDetail_20' ) start [2025-01-07 12:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194956', 'tblTempUsageDetail_20' ) end [2025-01-07 12:39:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:39:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:39:30] Production.INFO: ==9556== Releasing lock... [2025-01-07 12:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:39:30] Production.INFO: 64.25 MB #Memory Used# [2025-01-07 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:40:05 [end_date_ymd] => 2025-01-07 12:40:05 [RateCDR] => 1 ) [2025-01-07 12:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:40:05' and `end` < '2025-01-07 12:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:40:23] Production.INFO: count ==4869 [2025-01-07 12:40:25] Production.ERROR: pbx CDR StartTime 2025-01-07 09:40:05 - End Time 2025-01-07 12:40:05 [2025-01-07 12:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194961', 'tblTempUsageDetail_20' ) start [2025-01-07 12:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194961', 'tblTempUsageDetail_20' ) end [2025-01-07 12:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194961', 'tblTempVendorCDR_20' ) start [2025-01-07 12:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194961', 'tblTempVendorCDR_20' ) end [2025-01-07 12:40:25] Production.INFO: ProcessCDR(1,14194961,1,1,2) [2025-01-07 12:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194961', 'tblTempUsageDetail_20' ) start [2025-01-07 12:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194961', 'tblTempUsageDetail_20' ) end [2025-01-07 12:40:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:40:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:40:31] Production.INFO: ==9628== Releasing lock... [2025-01-07 12:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:40:31] Production.INFO: 64.5 MB #Memory Used# [2025-01-07 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:41:05 [end_date_ymd] => 2025-01-07 12:41:05 [RateCDR] => 1 ) [2025-01-07 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:41:05' and `end` < '2025-01-07 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:41:25] Production.INFO: count ==4875 [2025-01-07 12:41:27] Production.ERROR: pbx CDR StartTime 2025-01-07 09:41:05 - End Time 2025-01-07 12:41:05 [2025-01-07 12:41:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194967', 'tblTempUsageDetail_20' ) start [2025-01-07 12:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194967', 'tblTempUsageDetail_20' ) end [2025-01-07 12:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194967', 'tblTempVendorCDR_20' ) start [2025-01-07 12:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194967', 'tblTempVendorCDR_20' ) end [2025-01-07 12:41:27] Production.INFO: ProcessCDR(1,14194967,1,1,2) [2025-01-07 12:41:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194967', 'tblTempUsageDetail_20' ) start [2025-01-07 12:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194967', 'tblTempUsageDetail_20' ) end [2025-01-07 12:41:32] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:41:32] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:41:32] Production.INFO: ==9711== Releasing lock... [2025-01-07 12:41:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:41:32] Production.INFO: 64.5 MB #Memory Used# [2025-01-07 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:42:05 [end_date_ymd] => 2025-01-07 12:42:05 [RateCDR] => 1 ) [2025-01-07 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:42:05' and `end` < '2025-01-07 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:42:23] Production.INFO: count ==4875 [2025-01-07 12:42:25] Production.ERROR: pbx CDR StartTime 2025-01-07 09:42:05 - End Time 2025-01-07 12:42:05 [2025-01-07 12:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194972', 'tblTempUsageDetail_20' ) start [2025-01-07 12:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194972', 'tblTempUsageDetail_20' ) end [2025-01-07 12:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194972', 'tblTempVendorCDR_20' ) start [2025-01-07 12:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194972', 'tblTempVendorCDR_20' ) end [2025-01-07 12:42:25] Production.INFO: ProcessCDR(1,14194972,1,1,2) [2025-01-07 12:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194972', 'tblTempUsageDetail_20' ) start [2025-01-07 12:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194972', 'tblTempUsageDetail_20' ) end [2025-01-07 12:42:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:42:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:42:30] Production.INFO: ==9794== Releasing lock... [2025-01-07 12:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:42:30] Production.INFO: 64.5 MB #Memory Used# [2025-01-07 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:43:05 [end_date_ymd] => 2025-01-07 12:43:05 [RateCDR] => 1 ) [2025-01-07 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:43:05' and `end` < '2025-01-07 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:43:25] Production.INFO: count ==4878 [2025-01-07 12:43:27] Production.ERROR: pbx CDR StartTime 2025-01-07 09:43:05 - End Time 2025-01-07 12:43:05 [2025-01-07 12:43:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194977', 'tblTempUsageDetail_20' ) start [2025-01-07 12:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194977', 'tblTempUsageDetail_20' ) end [2025-01-07 12:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194977', 'tblTempVendorCDR_20' ) start [2025-01-07 12:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194977', 'tblTempVendorCDR_20' ) end [2025-01-07 12:43:27] Production.INFO: ProcessCDR(1,14194977,1,1,2) [2025-01-07 12:43:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:43:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194977', 'tblTempUsageDetail_20' ) start [2025-01-07 12:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194977', 'tblTempUsageDetail_20' ) end [2025-01-07 12:43:32] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:43:32] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:43:32] Production.INFO: ==9874== Releasing lock... [2025-01-07 12:43:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:43:32] Production.INFO: 64.5 MB #Memory Used# [2025-01-07 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:44:05 [end_date_ymd] => 2025-01-07 12:44:05 [RateCDR] => 1 ) [2025-01-07 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:44:05' and `end` < '2025-01-07 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:44:19] Production.INFO: count ==4879 [2025-01-07 12:44:21] Production.ERROR: pbx CDR StartTime 2025-01-07 09:44:05 - End Time 2025-01-07 12:44:05 [2025-01-07 12:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194982', 'tblTempUsageDetail_20' ) start [2025-01-07 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194982', 'tblTempUsageDetail_20' ) end [2025-01-07 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194982', 'tblTempVendorCDR_20' ) start [2025-01-07 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194982', 'tblTempVendorCDR_20' ) end [2025-01-07 12:44:21] Production.INFO: ProcessCDR(1,14194982,1,1,2) [2025-01-07 12:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194982', 'tblTempUsageDetail_20' ) start [2025-01-07 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194982', 'tblTempUsageDetail_20' ) end [2025-01-07 12:44:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:44:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:44:26] Production.INFO: ==9957== Releasing lock... [2025-01-07 12:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:44:26] Production.INFO: 64.5 MB #Memory Used# [2025-01-07 12:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:45:04 [end_date_ymd] => 2025-01-07 12:45:04 [RateCDR] => 1 ) [2025-01-07 12:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:45:04' and `end` < '2025-01-07 12:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:45:21] Production.INFO: count ==4862 [2025-01-07 12:45:23] Production.ERROR: pbx CDR StartTime 2025-01-07 09:45:04 - End Time 2025-01-07 12:45:04 [2025-01-07 12:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194987', 'tblTempUsageDetail_20' ) start [2025-01-07 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194987', 'tblTempUsageDetail_20' ) end [2025-01-07 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194987', 'tblTempVendorCDR_20' ) start [2025-01-07 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194987', 'tblTempVendorCDR_20' ) end [2025-01-07 12:45:23] Production.INFO: ProcessCDR(1,14194987,1,1,2) [2025-01-07 12:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194987', 'tblTempUsageDetail_20' ) start [2025-01-07 12:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194987', 'tblTempUsageDetail_20' ) end [2025-01-07 12:45:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:45:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:45:28] Production.INFO: ==10037== Releasing lock... [2025-01-07 12:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:45:28] Production.INFO: 64.5 MB #Memory Used# [2025-01-07 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:46:05 [end_date_ymd] => 2025-01-07 12:46:05 [RateCDR] => 1 ) [2025-01-07 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:46:05' and `end` < '2025-01-07 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:46:24] Production.INFO: count ==4897 [2025-01-07 12:46:26] Production.ERROR: pbx CDR StartTime 2025-01-07 09:46:05 - End Time 2025-01-07 12:46:05 [2025-01-07 12:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194992', 'tblTempUsageDetail_20' ) start [2025-01-07 12:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194992', 'tblTempUsageDetail_20' ) end [2025-01-07 12:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194992', 'tblTempVendorCDR_20' ) start [2025-01-07 12:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194992', 'tblTempVendorCDR_20' ) end [2025-01-07 12:46:26] Production.INFO: ProcessCDR(1,14194992,1,1,2) [2025-01-07 12:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194992', 'tblTempUsageDetail_20' ) start [2025-01-07 12:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194992', 'tblTempUsageDetail_20' ) end [2025-01-07 12:46:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:46:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:46:31] Production.INFO: ==10117== Releasing lock... [2025-01-07 12:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:46:31] Production.INFO: 64.75 MB #Memory Used# [2025-01-07 12:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:47:04 [end_date_ymd] => 2025-01-07 12:47:04 [RateCDR] => 1 ) [2025-01-07 12:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:47:04' and `end` < '2025-01-07 12:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:47:19] Production.INFO: count ==4900 [2025-01-07 12:47:21] Production.ERROR: pbx CDR StartTime 2025-01-07 09:47:04 - End Time 2025-01-07 12:47:04 [2025-01-07 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194997', 'tblTempUsageDetail_20' ) start [2025-01-07 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14194997', 'tblTempUsageDetail_20' ) end [2025-01-07 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194997', 'tblTempVendorCDR_20' ) start [2025-01-07 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14194997', 'tblTempVendorCDR_20' ) end [2025-01-07 12:47:21] Production.INFO: ProcessCDR(1,14194997,1,1,2) [2025-01-07 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14194997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14194997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14194997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14194997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194997', 'tblTempUsageDetail_20' ) start [2025-01-07 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14194997', 'tblTempUsageDetail_20' ) end [2025-01-07 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:47:26] Production.INFO: ==10195== Releasing lock... [2025-01-07 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:47:26] Production.INFO: 64.75 MB #Memory Used# [2025-01-07 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:48:05 [end_date_ymd] => 2025-01-07 12:48:05 [RateCDR] => 1 ) [2025-01-07 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:48:05' and `end` < '2025-01-07 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:48:20] Production.INFO: count ==4904 [2025-01-07 12:48:22] Production.ERROR: pbx CDR StartTime 2025-01-07 09:48:05 - End Time 2025-01-07 12:48:05 [2025-01-07 12:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195002', 'tblTempUsageDetail_20' ) start [2025-01-07 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195002', 'tblTempUsageDetail_20' ) end [2025-01-07 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195002', 'tblTempVendorCDR_20' ) start [2025-01-07 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195002', 'tblTempVendorCDR_20' ) end [2025-01-07 12:48:22] Production.INFO: ProcessCDR(1,14195002,1,1,2) [2025-01-07 12:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195002', 'tblTempUsageDetail_20' ) start [2025-01-07 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195002', 'tblTempUsageDetail_20' ) end [2025-01-07 12:48:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:48:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:48:26] Production.INFO: ==10275== Releasing lock... [2025-01-07 12:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:48:26] Production.INFO: 64.75 MB #Memory Used# [2025-01-07 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:49:05 [end_date_ymd] => 2025-01-07 12:49:05 [RateCDR] => 1 ) [2025-01-07 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:49:05' and `end` < '2025-01-07 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:49:19] Production.INFO: count ==4918 [2025-01-07 12:49:21] Production.ERROR: pbx CDR StartTime 2025-01-07 09:49:05 - End Time 2025-01-07 12:49:05 [2025-01-07 12:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195007', 'tblTempUsageDetail_20' ) start [2025-01-07 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195007', 'tblTempUsageDetail_20' ) end [2025-01-07 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195007', 'tblTempVendorCDR_20' ) start [2025-01-07 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195007', 'tblTempVendorCDR_20' ) end [2025-01-07 12:49:21] Production.INFO: ProcessCDR(1,14195007,1,1,2) [2025-01-07 12:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195007', 'tblTempUsageDetail_20' ) start [2025-01-07 12:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195007', 'tblTempUsageDetail_20' ) end [2025-01-07 12:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:49:25] Production.INFO: ==10358== Releasing lock... [2025-01-07 12:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:49:25] Production.INFO: 64.75 MB #Memory Used# [2025-01-07 12:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:50:05 [end_date_ymd] => 2025-01-07 12:50:05 [RateCDR] => 1 ) [2025-01-07 12:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:50:05' and `end` < '2025-01-07 12:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:50:19] Production.INFO: count ==4907 [2025-01-07 12:50:21] Production.ERROR: pbx CDR StartTime 2025-01-07 09:50:05 - End Time 2025-01-07 12:50:05 [2025-01-07 12:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195012', 'tblTempUsageDetail_20' ) start [2025-01-07 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195012', 'tblTempUsageDetail_20' ) end [2025-01-07 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195012', 'tblTempVendorCDR_20' ) start [2025-01-07 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195012', 'tblTempVendorCDR_20' ) end [2025-01-07 12:50:21] Production.INFO: ProcessCDR(1,14195012,1,1,2) [2025-01-07 12:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195012', 'tblTempUsageDetail_20' ) start [2025-01-07 12:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195012', 'tblTempUsageDetail_20' ) end [2025-01-07 12:50:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:50:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:50:26] Production.INFO: ==10441== Releasing lock... [2025-01-07 12:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:50:26] Production.INFO: 64.75 MB #Memory Used# [2025-01-07 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:51:05 [end_date_ymd] => 2025-01-07 12:51:05 [RateCDR] => 1 ) [2025-01-07 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:51:05' and `end` < '2025-01-07 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:51:23] Production.INFO: count ==4906 [2025-01-07 12:51:25] Production.ERROR: pbx CDR StartTime 2025-01-07 09:51:05 - End Time 2025-01-07 12:51:05 [2025-01-07 12:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195018', 'tblTempUsageDetail_20' ) start [2025-01-07 12:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195018', 'tblTempUsageDetail_20' ) end [2025-01-07 12:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195018', 'tblTempVendorCDR_20' ) start [2025-01-07 12:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195018', 'tblTempVendorCDR_20' ) end [2025-01-07 12:51:25] Production.INFO: ProcessCDR(1,14195018,1,1,2) [2025-01-07 12:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195018', 'tblTempUsageDetail_20' ) start [2025-01-07 12:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195018', 'tblTempUsageDetail_20' ) end [2025-01-07 12:51:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:51:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:51:30] Production.INFO: ==10523== Releasing lock... [2025-01-07 12:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:51:30] Production.INFO: 64.75 MB #Memory Used# [2025-01-07 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:52:05 [end_date_ymd] => 2025-01-07 12:52:05 [RateCDR] => 1 ) [2025-01-07 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:52:05' and `end` < '2025-01-07 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:52:25] Production.INFO: count ==4920 [2025-01-07 12:52:27] Production.ERROR: pbx CDR StartTime 2025-01-07 09:52:05 - End Time 2025-01-07 12:52:05 [2025-01-07 12:52:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195023', 'tblTempUsageDetail_20' ) start [2025-01-07 12:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195023', 'tblTempUsageDetail_20' ) end [2025-01-07 12:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195023', 'tblTempVendorCDR_20' ) start [2025-01-07 12:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195023', 'tblTempVendorCDR_20' ) end [2025-01-07 12:52:27] Production.INFO: ProcessCDR(1,14195023,1,1,2) [2025-01-07 12:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:52:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:52:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:52:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195023', 'tblTempUsageDetail_20' ) start [2025-01-07 12:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195023', 'tblTempUsageDetail_20' ) end [2025-01-07 12:52:32] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:52:32] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:52:32] Production.INFO: ==10632== Releasing lock... [2025-01-07 12:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:52:32] Production.INFO: 64.75 MB #Memory Used# [2025-01-07 12:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:53:04 [end_date_ymd] => 2025-01-07 12:53:04 [RateCDR] => 1 ) [2025-01-07 12:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:53:04' and `end` < '2025-01-07 12:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:53:23] Production.INFO: count ==4927 [2025-01-07 12:53:25] Production.ERROR: pbx CDR StartTime 2025-01-07 09:53:04 - End Time 2025-01-07 12:53:04 [2025-01-07 12:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195028', 'tblTempUsageDetail_20' ) start [2025-01-07 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195028', 'tblTempUsageDetail_20' ) end [2025-01-07 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195028', 'tblTempVendorCDR_20' ) start [2025-01-07 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195028', 'tblTempVendorCDR_20' ) end [2025-01-07 12:53:25] Production.INFO: ProcessCDR(1,14195028,1,1,2) [2025-01-07 12:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195028', 'tblTempUsageDetail_20' ) start [2025-01-07 12:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195028', 'tblTempUsageDetail_20' ) end [2025-01-07 12:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:53:30] Production.INFO: ==10702== Releasing lock... [2025-01-07 12:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:53:30] Production.INFO: 65 MB #Memory Used# [2025-01-07 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:54:05 [end_date_ymd] => 2025-01-07 12:54:05 [RateCDR] => 1 ) [2025-01-07 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:54:05' and `end` < '2025-01-07 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:54:34] Production.INFO: count ==4930 [2025-01-07 12:54:36] Production.ERROR: pbx CDR StartTime 2025-01-07 09:54:05 - End Time 2025-01-07 12:54:05 [2025-01-07 12:54:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:54:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195033', 'tblTempUsageDetail_20' ) start [2025-01-07 12:54:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195033', 'tblTempUsageDetail_20' ) end [2025-01-07 12:54:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195033', 'tblTempVendorCDR_20' ) start [2025-01-07 12:54:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195033', 'tblTempVendorCDR_20' ) end [2025-01-07 12:54:37] Production.INFO: ProcessCDR(1,14195033,1,1,2) [2025-01-07 12:54:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:54:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:54:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:54:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:54:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195033', 'tblTempUsageDetail_20' ) start [2025-01-07 12:54:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195033', 'tblTempUsageDetail_20' ) end [2025-01-07 12:54:42] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:54:42] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:54:42] Production.INFO: ==10776== Releasing lock... [2025-01-07 12:54:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:54:42] Production.INFO: 65 MB #Memory Used# [2025-01-07 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:55:05 [end_date_ymd] => 2025-01-07 12:55:05 [RateCDR] => 1 ) [2025-01-07 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:55:05' and `end` < '2025-01-07 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:55:31] Production.INFO: count ==4923 [2025-01-07 12:55:33] Production.ERROR: pbx CDR StartTime 2025-01-07 09:55:05 - End Time 2025-01-07 12:55:05 [2025-01-07 12:55:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195038', 'tblTempUsageDetail_20' ) start [2025-01-07 12:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195038', 'tblTempUsageDetail_20' ) end [2025-01-07 12:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195038', 'tblTempVendorCDR_20' ) start [2025-01-07 12:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195038', 'tblTempVendorCDR_20' ) end [2025-01-07 12:55:33] Production.INFO: ProcessCDR(1,14195038,1,1,2) [2025-01-07 12:55:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:55:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:55:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:55:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195038', 'tblTempUsageDetail_20' ) start [2025-01-07 12:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195038', 'tblTempUsageDetail_20' ) end [2025-01-07 12:55:38] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:55:38] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:55:38] Production.INFO: ==10845== Releasing lock... [2025-01-07 12:55:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:55:38] Production.INFO: 64.75 MB #Memory Used# [2025-01-07 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:56:06 [end_date_ymd] => 2025-01-07 12:56:06 [RateCDR] => 1 ) [2025-01-07 12:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:56:06' and `end` < '2025-01-07 12:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:56:27] Production.INFO: count ==4926 [2025-01-07 12:56:29] Production.ERROR: pbx CDR StartTime 2025-01-07 09:56:06 - End Time 2025-01-07 12:56:06 [2025-01-07 12:56:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195043', 'tblTempUsageDetail_20' ) start [2025-01-07 12:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195043', 'tblTempUsageDetail_20' ) end [2025-01-07 12:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195043', 'tblTempVendorCDR_20' ) start [2025-01-07 12:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195043', 'tblTempVendorCDR_20' ) end [2025-01-07 12:56:29] Production.INFO: ProcessCDR(1,14195043,1,1,2) [2025-01-07 12:56:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:56:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:56:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:56:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195043', 'tblTempUsageDetail_20' ) start [2025-01-07 12:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195043', 'tblTempUsageDetail_20' ) end [2025-01-07 12:56:33] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:56:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:56:33] Production.INFO: ==10914== Releasing lock... [2025-01-07 12:56:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:56:33] Production.INFO: 65 MB #Memory Used# [2025-01-07 12:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:57:04 [end_date_ymd] => 2025-01-07 12:57:04 [RateCDR] => 1 ) [2025-01-07 12:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:57:04' and `end` < '2025-01-07 12:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:57:21] Production.INFO: count ==4921 [2025-01-07 12:57:23] Production.ERROR: pbx CDR StartTime 2025-01-07 09:57:04 - End Time 2025-01-07 12:57:04 [2025-01-07 12:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195048', 'tblTempUsageDetail_20' ) start [2025-01-07 12:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195048', 'tblTempUsageDetail_20' ) end [2025-01-07 12:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195048', 'tblTempVendorCDR_20' ) start [2025-01-07 12:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195048', 'tblTempVendorCDR_20' ) end [2025-01-07 12:57:23] Production.INFO: ProcessCDR(1,14195048,1,1,2) [2025-01-07 12:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195048', 'tblTempUsageDetail_20' ) start [2025-01-07 12:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195048', 'tblTempUsageDetail_20' ) end [2025-01-07 12:57:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:57:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:57:28] Production.INFO: ==10984== Releasing lock... [2025-01-07 12:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:57:28] Production.INFO: 64.75 MB #Memory Used# [2025-01-07 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:58:05 [end_date_ymd] => 2025-01-07 12:58:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 09:58:05' and `end` < '2025-01-07 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-01-07 12:58:39] Production.INFO: count ==4928 [2025-01-07 12:58:40] Production.ERROR: pbx CDR StartTime 2025-01-07 09:58:05 - End Time 2025-01-07 12:58:05 [2025-01-07 12:58:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:58:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195053', 'tblTempUsageDetail_20' ) start [2025-01-07 12:58:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195053', 'tblTempUsageDetail_20' ) end [2025-01-07 12:58:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195053', 'tblTempVendorCDR_20' ) start [2025-01-07 12:58:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195053', 'tblTempVendorCDR_20' ) end [2025-01-07 12:58:41] Production.INFO: ProcessCDR(1,14195053,1,1,2) [2025-01-07 12:58:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:58:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:58:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:58:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:58:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195053', 'tblTempUsageDetail_20' ) start [2025-01-07 12:58:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195053', 'tblTempUsageDetail_20' ) end [2025-01-07 12:58:45] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:58:45] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:58:45] Production.INFO: ==11058== Releasing lock... [2025-01-07 12:58:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:58:45] Production.INFO: 65 MB #Memory Used# [2025-01-07 12:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 09:59:04 [end_date_ymd] => 2025-01-07 12:59:04 [RateCDR] => 1 ) [2025-01-07 12:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 09:59:04' and `end` < '2025-01-07 12:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 12:59:36] Production.INFO: count ==4921 [2025-01-07 12:59:38] Production.ERROR: pbx CDR StartTime 2025-01-07 09:59:04 - End Time 2025-01-07 12:59:04 [2025-01-07 12:59:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 12:59:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195058', 'tblTempUsageDetail_20' ) start [2025-01-07 12:59:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195058', 'tblTempUsageDetail_20' ) end [2025-01-07 12:59:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195058', 'tblTempVendorCDR_20' ) start [2025-01-07 12:59:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195058', 'tblTempVendorCDR_20' ) end [2025-01-07 12:59:38] Production.INFO: ProcessCDR(1,14195058,1,1,2) [2025-01-07 12:59:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:59:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 12:59:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:59:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 12:59:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195058', 'tblTempUsageDetail_20' ) start [2025-01-07 12:59:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195058', 'tblTempUsageDetail_20' ) end [2025-01-07 12:59:43] Production.ERROR: pbx prc_insertCDR start [2025-01-07 12:59:43] Production.ERROR: pbx prc_insertCDR end [2025-01-07 12:59:43] Production.INFO: ==11127== Releasing lock... [2025-01-07 12:59:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 12:59:43] Production.INFO: 64.75 MB #Memory Used# [2025-01-07 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:00:06 [end_date_ymd] => 2025-01-07 13:00:06 [RateCDR] => 1 ) [2025-01-07 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:00:06' and `end` < '2025-01-07 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:00:32] Production.INFO: count ==4909 [2025-01-07 13:00:34] Production.ERROR: pbx CDR StartTime 2025-01-07 10:00:06 - End Time 2025-01-07 13:00:06 [2025-01-07 13:00:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195064', 'tblTempUsageDetail_20' ) start [2025-01-07 13:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195064', 'tblTempUsageDetail_20' ) end [2025-01-07 13:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195064', 'tblTempVendorCDR_20' ) start [2025-01-07 13:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195064', 'tblTempVendorCDR_20' ) end [2025-01-07 13:00:34] Production.INFO: ProcessCDR(1,14195064,1,1,2) [2025-01-07 13:00:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:00:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:00:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:00:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:00:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195064', 'tblTempUsageDetail_20' ) start [2025-01-07 13:00:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195064', 'tblTempUsageDetail_20' ) end [2025-01-07 13:00:39] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:00:39] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:00:39] Production.INFO: ==11201== Releasing lock... [2025-01-07 13:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:00:39] Production.INFO: 64.75 MB #Memory Used# [2025-01-07 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:01:05 [end_date_ymd] => 2025-01-07 13:01:05 [RateCDR] => 1 ) [2025-01-07 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:01:05' and `end` < '2025-01-07 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:01:22] Production.INFO: count ==4949 [2025-01-07 13:01:24] Production.ERROR: pbx CDR StartTime 2025-01-07 10:01:05 - End Time 2025-01-07 13:01:05 [2025-01-07 13:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195068', 'tblTempUsageDetail_20' ) start [2025-01-07 13:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195068', 'tblTempUsageDetail_20' ) end [2025-01-07 13:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195068', 'tblTempVendorCDR_20' ) start [2025-01-07 13:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195068', 'tblTempVendorCDR_20' ) end [2025-01-07 13:01:24] Production.INFO: ProcessCDR(1,14195068,1,1,2) [2025-01-07 13:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195068', 'tblTempUsageDetail_20' ) start [2025-01-07 13:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195068', 'tblTempUsageDetail_20' ) end [2025-01-07 13:01:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:01:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:01:29] Production.INFO: ==11288== Releasing lock... [2025-01-07 13:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:01:29] Production.INFO: 65 MB #Memory Used# [2025-01-07 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:02:05 [end_date_ymd] => 2025-01-07 13:02:05 [RateCDR] => 1 ) [2025-01-07 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:02:05' and `end` < '2025-01-07 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:02:30] Production.INFO: count ==4956 [2025-01-07 13:02:32] Production.ERROR: pbx CDR StartTime 2025-01-07 10:02:05 - End Time 2025-01-07 13:02:05 [2025-01-07 13:02:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195074', 'tblTempUsageDetail_20' ) start [2025-01-07 13:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195074', 'tblTempUsageDetail_20' ) end [2025-01-07 13:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195074', 'tblTempVendorCDR_20' ) start [2025-01-07 13:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195074', 'tblTempVendorCDR_20' ) end [2025-01-07 13:02:32] Production.INFO: ProcessCDR(1,14195074,1,1,2) [2025-01-07 13:02:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:02:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:02:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:02:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195074', 'tblTempUsageDetail_20' ) start [2025-01-07 13:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195074', 'tblTempUsageDetail_20' ) end [2025-01-07 13:02:37] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:02:37] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:02:37] Production.INFO: ==11359== Releasing lock... [2025-01-07 13:02:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:02:37] Production.INFO: 65 MB #Memory Used# [2025-01-07 13:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:03:04 [end_date_ymd] => 2025-01-07 13:03:04 [RateCDR] => 1 ) [2025-01-07 13:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:03:04' and `end` < '2025-01-07 13:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:03:23] Production.INFO: count ==4941 [2025-01-07 13:03:25] Production.ERROR: pbx CDR StartTime 2025-01-07 10:03:04 - End Time 2025-01-07 13:03:04 [2025-01-07 13:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195079', 'tblTempUsageDetail_20' ) start [2025-01-07 13:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195079', 'tblTempUsageDetail_20' ) end [2025-01-07 13:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195079', 'tblTempVendorCDR_20' ) start [2025-01-07 13:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195079', 'tblTempVendorCDR_20' ) end [2025-01-07 13:03:25] Production.INFO: ProcessCDR(1,14195079,1,1,2) [2025-01-07 13:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195079', 'tblTempUsageDetail_20' ) start [2025-01-07 13:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195079', 'tblTempUsageDetail_20' ) end [2025-01-07 13:03:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:03:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:03:30] Production.INFO: ==11429== Releasing lock... [2025-01-07 13:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:03:30] Production.INFO: 65 MB #Memory Used# [2025-01-07 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:04:05 [end_date_ymd] => 2025-01-07 13:04:05 [RateCDR] => 1 ) [2025-01-07 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:04:05' and `end` < '2025-01-07 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:04:26] Production.INFO: count ==4911 [2025-01-07 13:04:28] Production.ERROR: pbx CDR StartTime 2025-01-07 10:04:05 - End Time 2025-01-07 13:04:05 [2025-01-07 13:04:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195084', 'tblTempUsageDetail_20' ) start [2025-01-07 13:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195084', 'tblTempUsageDetail_20' ) end [2025-01-07 13:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195084', 'tblTempVendorCDR_20' ) start [2025-01-07 13:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195084', 'tblTempVendorCDR_20' ) end [2025-01-07 13:04:28] Production.INFO: ProcessCDR(1,14195084,1,1,2) [2025-01-07 13:04:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195084', 'tblTempUsageDetail_20' ) start [2025-01-07 13:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195084', 'tblTempUsageDetail_20' ) end [2025-01-07 13:04:32] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:04:32] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:04:33] Production.INFO: ==11501== Releasing lock... [2025-01-07 13:04:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:04:33] Production.INFO: 64.75 MB #Memory Used# [2025-01-07 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:05:06 [end_date_ymd] => 2025-01-07 13:05:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 10:05:06' and `end` < '2025-01-07 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-01-07 13:05:23] Production.INFO: count ==4896 [2025-01-07 13:05:25] Production.ERROR: pbx CDR StartTime 2025-01-07 10:05:06 - End Time 2025-01-07 13:05:06 [2025-01-07 13:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195089', 'tblTempUsageDetail_20' ) start [2025-01-07 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195089', 'tblTempUsageDetail_20' ) end [2025-01-07 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195089', 'tblTempVendorCDR_20' ) start [2025-01-07 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195089', 'tblTempVendorCDR_20' ) end [2025-01-07 13:05:25] Production.INFO: ProcessCDR(1,14195089,1,1,2) [2025-01-07 13:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195089', 'tblTempUsageDetail_20' ) start [2025-01-07 13:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195089', 'tblTempUsageDetail_20' ) end [2025-01-07 13:05:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:05:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:05:28] Production.INFO: ==11575== Releasing lock... [2025-01-07 13:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:05:28] Production.INFO: 64.75 MB #Memory Used# [2025-01-07 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:06:05 [end_date_ymd] => 2025-01-07 13:06:05 [RateCDR] => 1 ) [2025-01-07 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:06:05' and `end` < '2025-01-07 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:06:19] Production.INFO: count ==4883 [2025-01-07 13:06:21] Production.ERROR: pbx CDR StartTime 2025-01-07 10:06:05 - End Time 2025-01-07 13:06:05 [2025-01-07 13:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195094', 'tblTempUsageDetail_20' ) start [2025-01-07 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195094', 'tblTempUsageDetail_20' ) end [2025-01-07 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195094', 'tblTempVendorCDR_20' ) start [2025-01-07 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195094', 'tblTempVendorCDR_20' ) end [2025-01-07 13:06:21] Production.INFO: ProcessCDR(1,14195094,1,1,2) [2025-01-07 13:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195094', 'tblTempUsageDetail_20' ) start [2025-01-07 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195094', 'tblTempUsageDetail_20' ) end [2025-01-07 13:06:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:06:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:06:26] Production.INFO: ==11645== Releasing lock... [2025-01-07 13:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:06:26] Production.INFO: 64.5 MB #Memory Used# [2025-01-07 13:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:07:04 [end_date_ymd] => 2025-01-07 13:07:04 [RateCDR] => 1 ) [2025-01-07 13:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:07:04' and `end` < '2025-01-07 13:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:07:19] Production.INFO: count ==4891 [2025-01-07 13:07:21] Production.ERROR: pbx CDR StartTime 2025-01-07 10:07:04 - End Time 2025-01-07 13:07:04 [2025-01-07 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195099', 'tblTempUsageDetail_20' ) start [2025-01-07 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195099', 'tblTempUsageDetail_20' ) end [2025-01-07 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195099', 'tblTempVendorCDR_20' ) start [2025-01-07 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195099', 'tblTempVendorCDR_20' ) end [2025-01-07 13:07:21] Production.INFO: ProcessCDR(1,14195099,1,1,2) [2025-01-07 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195099', 'tblTempUsageDetail_20' ) start [2025-01-07 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195099', 'tblTempUsageDetail_20' ) end [2025-01-07 13:07:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:07:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:07:26] Production.INFO: ==11754== Releasing lock... [2025-01-07 13:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:07:26] Production.INFO: 64.75 MB #Memory Used# [2025-01-07 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:08:05 [end_date_ymd] => 2025-01-07 13:08:05 [RateCDR] => 1 ) [2025-01-07 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:08:05' and `end` < '2025-01-07 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:08:20] Production.INFO: count ==4908 [2025-01-07 13:08:22] Production.ERROR: pbx CDR StartTime 2025-01-07 10:08:05 - End Time 2025-01-07 13:08:05 [2025-01-07 13:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195104', 'tblTempUsageDetail_20' ) start [2025-01-07 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195104', 'tblTempUsageDetail_20' ) end [2025-01-07 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195104', 'tblTempVendorCDR_20' ) start [2025-01-07 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195104', 'tblTempVendorCDR_20' ) end [2025-01-07 13:08:22] Production.INFO: ProcessCDR(1,14195104,1,1,2) [2025-01-07 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195104', 'tblTempUsageDetail_20' ) start [2025-01-07 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195104', 'tblTempUsageDetail_20' ) end [2025-01-07 13:08:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:08:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:08:26] Production.INFO: ==11824== Releasing lock... [2025-01-07 13:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:08:26] Production.INFO: 64.75 MB #Memory Used# [2025-01-07 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:09:05 [end_date_ymd] => 2025-01-07 13:09:05 [RateCDR] => 1 ) [2025-01-07 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:09:05' and `end` < '2025-01-07 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:09:37] Production.INFO: count ==4919 [2025-01-07 13:09:39] Production.ERROR: pbx CDR StartTime 2025-01-07 10:09:05 - End Time 2025-01-07 13:09:05 [2025-01-07 13:09:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:09:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195109', 'tblTempUsageDetail_20' ) start [2025-01-07 13:09:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195109', 'tblTempUsageDetail_20' ) end [2025-01-07 13:09:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195109', 'tblTempVendorCDR_20' ) start [2025-01-07 13:09:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195109', 'tblTempVendorCDR_20' ) end [2025-01-07 13:09:39] Production.INFO: ProcessCDR(1,14195109,1,1,2) [2025-01-07 13:09:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:09:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:09:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:09:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:09:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195109', 'tblTempUsageDetail_20' ) start [2025-01-07 13:09:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195109', 'tblTempUsageDetail_20' ) end [2025-01-07 13:09:43] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:09:44] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:09:44] Production.INFO: ==11894== Releasing lock... [2025-01-07 13:09:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:09:44] Production.INFO: 64.75 MB #Memory Used# [2025-01-07 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:10:06 [end_date_ymd] => 2025-01-07 13:10:06 [RateCDR] => 1 ) [2025-01-07 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:10:06' and `end` < '2025-01-07 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:10:30] Production.INFO: count ==4943 [2025-01-07 13:10:32] Production.ERROR: pbx CDR StartTime 2025-01-07 10:10:06 - End Time 2025-01-07 13:10:06 [2025-01-07 13:10:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195115', 'tblTempUsageDetail_20' ) start [2025-01-07 13:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195115', 'tblTempUsageDetail_20' ) end [2025-01-07 13:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195115', 'tblTempVendorCDR_20' ) start [2025-01-07 13:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195115', 'tblTempVendorCDR_20' ) end [2025-01-07 13:10:32] Production.INFO: ProcessCDR(1,14195115,1,1,2) [2025-01-07 13:10:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:10:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:10:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:10:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:10:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195115', 'tblTempUsageDetail_20' ) start [2025-01-07 13:10:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195115', 'tblTempUsageDetail_20' ) end [2025-01-07 13:10:37] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:10:37] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:10:37] Production.INFO: ==11970== Releasing lock... [2025-01-07 13:10:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:10:37] Production.INFO: 65 MB #Memory Used# [2025-01-07 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:11:05 [end_date_ymd] => 2025-01-07 13:11:05 [RateCDR] => 1 ) [2025-01-07 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:11:05' and `end` < '2025-01-07 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:11:28] Production.INFO: count ==4967 [2025-01-07 13:11:29] Production.ERROR: pbx CDR StartTime 2025-01-07 10:11:05 - End Time 2025-01-07 13:11:05 [2025-01-07 13:11:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195120', 'tblTempUsageDetail_20' ) start [2025-01-07 13:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195120', 'tblTempUsageDetail_20' ) end [2025-01-07 13:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195120', 'tblTempVendorCDR_20' ) start [2025-01-07 13:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195120', 'tblTempVendorCDR_20' ) end [2025-01-07 13:11:30] Production.INFO: ProcessCDR(1,14195120,1,1,2) [2025-01-07 13:11:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:11:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:11:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:11:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195120', 'tblTempUsageDetail_20' ) start [2025-01-07 13:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195120', 'tblTempUsageDetail_20' ) end [2025-01-07 13:11:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:11:35] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:11:35] Production.INFO: ==12043== Releasing lock... [2025-01-07 13:11:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:11:35] Production.INFO: 65.25 MB #Memory Used# [2025-01-07 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:12:05 [end_date_ymd] => 2025-01-07 13:12:05 [RateCDR] => 1 ) [2025-01-07 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:12:05' and `end` < '2025-01-07 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:12:21] Production.INFO: count ==4947 [2025-01-07 13:12:23] Production.ERROR: pbx CDR StartTime 2025-01-07 10:12:05 - End Time 2025-01-07 13:12:05 [2025-01-07 13:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195125', 'tblTempUsageDetail_20' ) start [2025-01-07 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195125', 'tblTempUsageDetail_20' ) end [2025-01-07 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195125', 'tblTempVendorCDR_20' ) start [2025-01-07 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195125', 'tblTempVendorCDR_20' ) end [2025-01-07 13:12:23] Production.INFO: ProcessCDR(1,14195125,1,1,2) [2025-01-07 13:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195125', 'tblTempUsageDetail_20' ) start [2025-01-07 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195125', 'tblTempUsageDetail_20' ) end [2025-01-07 13:12:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:12:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:12:27] Production.INFO: ==12114== Releasing lock... [2025-01-07 13:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:12:27] Production.INFO: 65 MB #Memory Used# [2025-01-07 13:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:13:04 [end_date_ymd] => 2025-01-07 13:13:04 [RateCDR] => 1 ) [2025-01-07 13:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:13:04' and `end` < '2025-01-07 13:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:13:21] Production.INFO: count ==4947 [2025-01-07 13:13:22] Production.ERROR: pbx CDR StartTime 2025-01-07 10:13:04 - End Time 2025-01-07 13:13:04 [2025-01-07 13:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195130', 'tblTempUsageDetail_20' ) start [2025-01-07 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195130', 'tblTempUsageDetail_20' ) end [2025-01-07 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195130', 'tblTempVendorCDR_20' ) start [2025-01-07 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195130', 'tblTempVendorCDR_20' ) end [2025-01-07 13:13:23] Production.INFO: ProcessCDR(1,14195130,1,1,2) [2025-01-07 13:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195130', 'tblTempUsageDetail_20' ) start [2025-01-07 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195130', 'tblTempUsageDetail_20' ) end [2025-01-07 13:13:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:13:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:13:27] Production.INFO: ==12187== Releasing lock... [2025-01-07 13:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:13:27] Production.INFO: 65 MB #Memory Used# [2025-01-07 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:14:05 [end_date_ymd] => 2025-01-07 13:14:05 [RateCDR] => 1 ) [2025-01-07 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:14:05' and `end` < '2025-01-07 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:14:23] Production.INFO: count ==4950 [2025-01-07 13:14:25] Production.ERROR: pbx CDR StartTime 2025-01-07 10:14:05 - End Time 2025-01-07 13:14:05 [2025-01-07 13:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195135', 'tblTempUsageDetail_20' ) start [2025-01-07 13:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195135', 'tblTempUsageDetail_20' ) end [2025-01-07 13:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195135', 'tblTempVendorCDR_20' ) start [2025-01-07 13:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195135', 'tblTempVendorCDR_20' ) end [2025-01-07 13:14:25] Production.INFO: ProcessCDR(1,14195135,1,1,2) [2025-01-07 13:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195135', 'tblTempUsageDetail_20' ) start [2025-01-07 13:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195135', 'tblTempUsageDetail_20' ) end [2025-01-07 13:14:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:14:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:14:28] Production.INFO: ==12263== Releasing lock... [2025-01-07 13:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:14:28] Production.INFO: 65 MB #Memory Used# [2025-01-07 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:15:05 [end_date_ymd] => 2025-01-07 13:15:05 [RateCDR] => 1 ) [2025-01-07 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:15:05' and `end` < '2025-01-07 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:15:19] Production.INFO: count ==5001 [2025-01-07 13:15:21] Production.ERROR: pbx CDR StartTime 2025-01-07 10:15:05 - End Time 2025-01-07 13:15:05 [2025-01-07 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195140', 'tblTempUsageDetail_20' ) start [2025-01-07 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195140', 'tblTempUsageDetail_20' ) end [2025-01-07 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195140', 'tblTempVendorCDR_20' ) start [2025-01-07 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195140', 'tblTempVendorCDR_20' ) end [2025-01-07 13:15:21] Production.INFO: ProcessCDR(1,14195140,1,1,2) [2025-01-07 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195140', 'tblTempUsageDetail_20' ) start [2025-01-07 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195140', 'tblTempUsageDetail_20' ) end [2025-01-07 13:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:15:24] Production.INFO: ==12334== Releasing lock... [2025-01-07 13:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:15:24] Production.INFO: 65.5 MB #Memory Used# [2025-01-07 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:16:05 [end_date_ymd] => 2025-01-07 13:16:05 [RateCDR] => 1 ) [2025-01-07 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:16:05' and `end` < '2025-01-07 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:16:23] Production.INFO: count ==4985 [2025-01-07 13:16:25] Production.ERROR: pbx CDR StartTime 2025-01-07 10:16:05 - End Time 2025-01-07 13:16:05 [2025-01-07 13:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195145', 'tblTempUsageDetail_20' ) start [2025-01-07 13:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195145', 'tblTempUsageDetail_20' ) end [2025-01-07 13:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195145', 'tblTempVendorCDR_20' ) start [2025-01-07 13:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195145', 'tblTempVendorCDR_20' ) end [2025-01-07 13:16:25] Production.INFO: ProcessCDR(1,14195145,1,1,2) [2025-01-07 13:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195145', 'tblTempUsageDetail_20' ) start [2025-01-07 13:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195145', 'tblTempUsageDetail_20' ) end [2025-01-07 13:16:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:16:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:16:30] Production.INFO: ==12404== Releasing lock... [2025-01-07 13:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:16:30] Production.INFO: 65.25 MB #Memory Used# [2025-01-07 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:17:05 [end_date_ymd] => 2025-01-07 13:17:05 [RateCDR] => 1 ) [2025-01-07 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:17:05' and `end` < '2025-01-07 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:17:20] Production.INFO: count ==4977 [2025-01-07 13:17:22] Production.ERROR: pbx CDR StartTime 2025-01-07 10:17:05 - End Time 2025-01-07 13:17:05 [2025-01-07 13:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195150', 'tblTempUsageDetail_20' ) start [2025-01-07 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195150', 'tblTempUsageDetail_20' ) end [2025-01-07 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195150', 'tblTempVendorCDR_20' ) start [2025-01-07 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195150', 'tblTempVendorCDR_20' ) end [2025-01-07 13:17:22] Production.INFO: ProcessCDR(1,14195150,1,1,2) [2025-01-07 13:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195150', 'tblTempUsageDetail_20' ) start [2025-01-07 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195150', 'tblTempUsageDetail_20' ) end [2025-01-07 13:17:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:17:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:17:27] Production.INFO: ==12478== Releasing lock... [2025-01-07 13:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:17:27] Production.INFO: 65.25 MB #Memory Used# [2025-01-07 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:18:05 [end_date_ymd] => 2025-01-07 13:18:05 [RateCDR] => 1 ) [2025-01-07 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:18:05' and `end` < '2025-01-07 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:18:21] Production.INFO: count ==4968 [2025-01-07 13:18:23] Production.ERROR: pbx CDR StartTime 2025-01-07 10:18:05 - End Time 2025-01-07 13:18:05 [2025-01-07 13:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195155', 'tblTempUsageDetail_20' ) start [2025-01-07 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195155', 'tblTempUsageDetail_20' ) end [2025-01-07 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195155', 'tblTempVendorCDR_20' ) start [2025-01-07 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195155', 'tblTempVendorCDR_20' ) end [2025-01-07 13:18:23] Production.INFO: ProcessCDR(1,14195155,1,1,2) [2025-01-07 13:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195155', 'tblTempUsageDetail_20' ) start [2025-01-07 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195155', 'tblTempUsageDetail_20' ) end [2025-01-07 13:18:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:18:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:18:26] Production.INFO: ==12551== Releasing lock... [2025-01-07 13:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:18:26] Production.INFO: 65.25 MB #Memory Used# [2025-01-07 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:19:05 [end_date_ymd] => 2025-01-07 13:19:05 [RateCDR] => 1 ) [2025-01-07 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:19:05' and `end` < '2025-01-07 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:19:19] Production.INFO: count ==5003 [2025-01-07 13:19:21] Production.ERROR: pbx CDR StartTime 2025-01-07 10:19:05 - End Time 2025-01-07 13:19:05 [2025-01-07 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195160', 'tblTempUsageDetail_20' ) start [2025-01-07 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195160', 'tblTempUsageDetail_20' ) end [2025-01-07 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195160', 'tblTempVendorCDR_20' ) start [2025-01-07 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195160', 'tblTempVendorCDR_20' ) end [2025-01-07 13:19:21] Production.INFO: ProcessCDR(1,14195160,1,1,2) [2025-01-07 13:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195160', 'tblTempUsageDetail_20' ) start [2025-01-07 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195160', 'tblTempUsageDetail_20' ) end [2025-01-07 13:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:19:26] Production.INFO: ==12620== Releasing lock... [2025-01-07 13:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:19:26] Production.INFO: 65.5 MB #Memory Used# [2025-01-07 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:20:05 [end_date_ymd] => 2025-01-07 13:20:05 [RateCDR] => 1 ) [2025-01-07 13:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:20:05' and `end` < '2025-01-07 13:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:20:20] Production.INFO: count ==4998 [2025-01-07 13:20:22] Production.ERROR: pbx CDR StartTime 2025-01-07 10:20:05 - End Time 2025-01-07 13:20:05 [2025-01-07 13:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195165', 'tblTempUsageDetail_20' ) start [2025-01-07 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195165', 'tblTempUsageDetail_20' ) end [2025-01-07 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195165', 'tblTempVendorCDR_20' ) start [2025-01-07 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195165', 'tblTempVendorCDR_20' ) end [2025-01-07 13:20:22] Production.INFO: ProcessCDR(1,14195165,1,1,2) [2025-01-07 13:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195165', 'tblTempUsageDetail_20' ) start [2025-01-07 13:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195165', 'tblTempUsageDetail_20' ) end [2025-01-07 13:20:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:20:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:20:27] Production.INFO: ==12693== Releasing lock... [2025-01-07 13:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:20:27] Production.INFO: 65.5 MB #Memory Used# [2025-01-07 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:21:05 [end_date_ymd] => 2025-01-07 13:21:05 [RateCDR] => 1 ) [2025-01-07 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:21:05' and `end` < '2025-01-07 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:21:30] Production.INFO: count ==5032 [2025-01-07 13:21:32] Production.ERROR: pbx CDR StartTime 2025-01-07 10:21:05 - End Time 2025-01-07 13:21:05 [2025-01-07 13:21:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:21:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195171', 'tblTempUsageDetail_20' ) start [2025-01-07 13:21:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195171', 'tblTempUsageDetail_20' ) end [2025-01-07 13:21:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195171', 'tblTempVendorCDR_20' ) start [2025-01-07 13:21:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195171', 'tblTempVendorCDR_20' ) end [2025-01-07 13:21:32] Production.INFO: ProcessCDR(1,14195171,1,1,2) [2025-01-07 13:21:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:21:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:21:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:21:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:21:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195171', 'tblTempUsageDetail_20' ) start [2025-01-07 13:21:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195171', 'tblTempUsageDetail_20' ) end [2025-01-07 13:21:36] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:21:36] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:21:37] Production.INFO: ==12767== Releasing lock... [2025-01-07 13:21:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:21:37] Production.INFO: 65.75 MB #Memory Used# [2025-01-07 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:22:05 [end_date_ymd] => 2025-01-07 13:22:05 [RateCDR] => 1 ) [2025-01-07 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:22:05' and `end` < '2025-01-07 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:22:23] Production.INFO: count ==5033 [2025-01-07 13:22:25] Production.ERROR: pbx CDR StartTime 2025-01-07 10:22:05 - End Time 2025-01-07 13:22:05 [2025-01-07 13:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195176', 'tblTempUsageDetail_20' ) start [2025-01-07 13:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195176', 'tblTempUsageDetail_20' ) end [2025-01-07 13:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195176', 'tblTempVendorCDR_20' ) start [2025-01-07 13:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195176', 'tblTempVendorCDR_20' ) end [2025-01-07 13:22:25] Production.INFO: ProcessCDR(1,14195176,1,1,2) [2025-01-07 13:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195176', 'tblTempUsageDetail_20' ) start [2025-01-07 13:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195176', 'tblTempUsageDetail_20' ) end [2025-01-07 13:22:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:22:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:22:30] Production.INFO: ==12838== Releasing lock... [2025-01-07 13:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:22:30] Production.INFO: 65.75 MB #Memory Used# [2025-01-07 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:23:05 [end_date_ymd] => 2025-01-07 13:23:05 [RateCDR] => 1 ) [2025-01-07 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:23:05' and `end` < '2025-01-07 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:23:30] Production.INFO: count ==5048 [2025-01-07 13:23:32] Production.ERROR: pbx CDR StartTime 2025-01-07 10:23:05 - End Time 2025-01-07 13:23:05 [2025-01-07 13:23:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195181', 'tblTempUsageDetail_20' ) start [2025-01-07 13:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195181', 'tblTempUsageDetail_20' ) end [2025-01-07 13:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195181', 'tblTempVendorCDR_20' ) start [2025-01-07 13:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195181', 'tblTempVendorCDR_20' ) end [2025-01-07 13:23:32] Production.INFO: ProcessCDR(1,14195181,1,1,2) [2025-01-07 13:23:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:23:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:23:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:23:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:23:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195181', 'tblTempUsageDetail_20' ) start [2025-01-07 13:23:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195181', 'tblTempUsageDetail_20' ) end [2025-01-07 13:23:36] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:23:36] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:23:36] Production.INFO: ==12947== Releasing lock... [2025-01-07 13:23:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:23:36] Production.INFO: 65.75 MB #Memory Used# [2025-01-07 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:24:05 [end_date_ymd] => 2025-01-07 13:24:05 [RateCDR] => 1 ) [2025-01-07 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:24:05' and `end` < '2025-01-07 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:24:27] Production.INFO: count ==5050 [2025-01-07 13:24:29] Production.ERROR: pbx CDR StartTime 2025-01-07 10:24:05 - End Time 2025-01-07 13:24:05 [2025-01-07 13:24:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195186', 'tblTempUsageDetail_20' ) start [2025-01-07 13:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195186', 'tblTempUsageDetail_20' ) end [2025-01-07 13:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195186', 'tblTempVendorCDR_20' ) start [2025-01-07 13:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195186', 'tblTempVendorCDR_20' ) end [2025-01-07 13:24:29] Production.INFO: ProcessCDR(1,14195186,1,1,2) [2025-01-07 13:24:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:24:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:24:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:24:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:24:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195186', 'tblTempUsageDetail_20' ) start [2025-01-07 13:24:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195186', 'tblTempUsageDetail_20' ) end [2025-01-07 13:24:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:24:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:24:34] Production.INFO: ==13018== Releasing lock... [2025-01-07 13:24:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:24:34] Production.INFO: 65.75 MB #Memory Used# [2025-01-07 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:25:05 [end_date_ymd] => 2025-01-07 13:25:05 [RateCDR] => 1 ) [2025-01-07 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:25:05' and `end` < '2025-01-07 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:25:27] Production.INFO: count ==5086 [2025-01-07 13:25:29] Production.ERROR: pbx CDR StartTime 2025-01-07 10:25:05 - End Time 2025-01-07 13:25:05 [2025-01-07 13:25:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195191', 'tblTempUsageDetail_20' ) start [2025-01-07 13:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195191', 'tblTempUsageDetail_20' ) end [2025-01-07 13:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195191', 'tblTempVendorCDR_20' ) start [2025-01-07 13:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195191', 'tblTempVendorCDR_20' ) end [2025-01-07 13:25:29] Production.INFO: ProcessCDR(1,14195191,1,1,2) [2025-01-07 13:25:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195191', 'tblTempUsageDetail_20' ) start [2025-01-07 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195191', 'tblTempUsageDetail_20' ) end [2025-01-07 13:25:33] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:25:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:25:33] Production.INFO: ==13088== Releasing lock... [2025-01-07 13:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:25:33] Production.INFO: 66 MB #Memory Used# [2025-01-07 13:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:26:04 [end_date_ymd] => 2025-01-07 13:26:04 [RateCDR] => 1 ) [2025-01-07 13:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:26:04' and `end` < '2025-01-07 13:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:26:22] Production.INFO: count ==5086 [2025-01-07 13:26:24] Production.ERROR: pbx CDR StartTime 2025-01-07 10:26:04 - End Time 2025-01-07 13:26:04 [2025-01-07 13:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195196', 'tblTempUsageDetail_20' ) start [2025-01-07 13:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195196', 'tblTempUsageDetail_20' ) end [2025-01-07 13:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195196', 'tblTempVendorCDR_20' ) start [2025-01-07 13:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195196', 'tblTempVendorCDR_20' ) end [2025-01-07 13:26:24] Production.INFO: ProcessCDR(1,14195196,1,1,2) [2025-01-07 13:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195196', 'tblTempUsageDetail_20' ) start [2025-01-07 13:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195196', 'tblTempUsageDetail_20' ) end [2025-01-07 13:26:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:26:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:26:28] Production.INFO: ==13160== Releasing lock... [2025-01-07 13:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:26:28] Production.INFO: 66 MB #Memory Used# [2025-01-07 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:27:05 [end_date_ymd] => 2025-01-07 13:27:05 [RateCDR] => 1 ) [2025-01-07 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:27:05' and `end` < '2025-01-07 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:27:19] Production.INFO: count ==5077 [2025-01-07 13:27:21] Production.ERROR: pbx CDR StartTime 2025-01-07 10:27:05 - End Time 2025-01-07 13:27:05 [2025-01-07 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195201', 'tblTempUsageDetail_20' ) start [2025-01-07 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195201', 'tblTempUsageDetail_20' ) end [2025-01-07 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195201', 'tblTempVendorCDR_20' ) start [2025-01-07 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195201', 'tblTempVendorCDR_20' ) end [2025-01-07 13:27:21] Production.INFO: ProcessCDR(1,14195201,1,1,2) [2025-01-07 13:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195201', 'tblTempUsageDetail_20' ) start [2025-01-07 13:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195201', 'tblTempUsageDetail_20' ) end [2025-01-07 13:27:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:27:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:27:26] Production.INFO: ==13235== Releasing lock... [2025-01-07 13:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:27:26] Production.INFO: 66 MB #Memory Used# [2025-01-07 13:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:28:04 [end_date_ymd] => 2025-01-07 13:28:04 [RateCDR] => 1 ) [2025-01-07 13:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:28:04' and `end` < '2025-01-07 13:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:28:19] Production.INFO: count ==5086 [2025-01-07 13:28:21] Production.ERROR: pbx CDR StartTime 2025-01-07 10:28:04 - End Time 2025-01-07 13:28:04 [2025-01-07 13:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195206', 'tblTempUsageDetail_20' ) start [2025-01-07 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195206', 'tblTempUsageDetail_20' ) end [2025-01-07 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195206', 'tblTempVendorCDR_20' ) start [2025-01-07 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195206', 'tblTempVendorCDR_20' ) end [2025-01-07 13:28:21] Production.INFO: ProcessCDR(1,14195206,1,1,2) [2025-01-07 13:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195206', 'tblTempUsageDetail_20' ) start [2025-01-07 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195206', 'tblTempUsageDetail_20' ) end [2025-01-07 13:28:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:28:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:28:26] Production.INFO: ==13310== Releasing lock... [2025-01-07 13:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:28:26] Production.INFO: 66.25 MB #Memory Used# [2025-01-07 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:29:05 [end_date_ymd] => 2025-01-07 13:29:05 [RateCDR] => 1 ) [2025-01-07 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:29:05' and `end` < '2025-01-07 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:29:20] Production.INFO: count ==5100 [2025-01-07 13:29:22] Production.ERROR: pbx CDR StartTime 2025-01-07 10:29:05 - End Time 2025-01-07 13:29:05 [2025-01-07 13:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195211', 'tblTempUsageDetail_20' ) start [2025-01-07 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195211', 'tblTempUsageDetail_20' ) end [2025-01-07 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195211', 'tblTempVendorCDR_20' ) start [2025-01-07 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195211', 'tblTempVendorCDR_20' ) end [2025-01-07 13:29:22] Production.INFO: ProcessCDR(1,14195211,1,1,2) [2025-01-07 13:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195211', 'tblTempUsageDetail_20' ) start [2025-01-07 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195211', 'tblTempUsageDetail_20' ) end [2025-01-07 13:29:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:29:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:29:26] Production.INFO: ==13384== Releasing lock... [2025-01-07 13:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:29:26] Production.INFO: 66.25 MB #Memory Used# [2025-01-07 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:30:05 [end_date_ymd] => 2025-01-07 13:30:05 [RateCDR] => 1 ) [2025-01-07 13:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:30:05' and `end` < '2025-01-07 13:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:30:28] Production.INFO: count ==5064 [2025-01-07 13:30:30] Production.ERROR: pbx CDR StartTime 2025-01-07 10:30:05 - End Time 2025-01-07 13:30:05 [2025-01-07 13:30:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195217', 'tblTempUsageDetail_20' ) start [2025-01-07 13:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195217', 'tblTempUsageDetail_20' ) end [2025-01-07 13:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195217', 'tblTempVendorCDR_20' ) start [2025-01-07 13:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195217', 'tblTempVendorCDR_20' ) end [2025-01-07 13:30:30] Production.INFO: ProcessCDR(1,14195217,1,1,2) [2025-01-07 13:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:30:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:30:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:30:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195217', 'tblTempUsageDetail_20' ) start [2025-01-07 13:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195217', 'tblTempUsageDetail_20' ) end [2025-01-07 13:30:35] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:30:35] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:30:35] Production.INFO: ==13457== Releasing lock... [2025-01-07 13:30:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:30:35] Production.INFO: 66 MB #Memory Used# [2025-01-07 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:31:05 [end_date_ymd] => 2025-01-07 13:31:05 [RateCDR] => 1 ) [2025-01-07 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:31:05' and `end` < '2025-01-07 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:31:23] Production.INFO: count ==5061 [2025-01-07 13:31:25] Production.ERROR: pbx CDR StartTime 2025-01-07 10:31:05 - End Time 2025-01-07 13:31:05 [2025-01-07 13:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195222', 'tblTempUsageDetail_20' ) start [2025-01-07 13:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195222', 'tblTempUsageDetail_20' ) end [2025-01-07 13:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195222', 'tblTempVendorCDR_20' ) start [2025-01-07 13:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195222', 'tblTempVendorCDR_20' ) end [2025-01-07 13:31:26] Production.INFO: ProcessCDR(1,14195222,1,1,2) [2025-01-07 13:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195222', 'tblTempUsageDetail_20' ) start [2025-01-07 13:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195222', 'tblTempUsageDetail_20' ) end [2025-01-07 13:31:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:31:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:31:30] Production.INFO: ==13530== Releasing lock... [2025-01-07 13:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:31:30] Production.INFO: 66 MB #Memory Used# [2025-01-07 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:32:05 [end_date_ymd] => 2025-01-07 13:32:05 [RateCDR] => 1 ) [2025-01-07 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:32:05' and `end` < '2025-01-07 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:32:26] Production.INFO: count ==5099 [2025-01-07 13:32:28] Production.ERROR: pbx CDR StartTime 2025-01-07 10:32:05 - End Time 2025-01-07 13:32:05 [2025-01-07 13:32:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195227', 'tblTempUsageDetail_20' ) start [2025-01-07 13:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195227', 'tblTempUsageDetail_20' ) end [2025-01-07 13:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195227', 'tblTempVendorCDR_20' ) start [2025-01-07 13:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195227', 'tblTempVendorCDR_20' ) end [2025-01-07 13:32:28] Production.INFO: ProcessCDR(1,14195227,1,1,2) [2025-01-07 13:32:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:32:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195227', 'tblTempUsageDetail_20' ) start [2025-01-07 13:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195227', 'tblTempUsageDetail_20' ) end [2025-01-07 13:32:33] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:32:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:32:33] Production.INFO: ==13600== Releasing lock... [2025-01-07 13:32:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:32:33] Production.INFO: 66.25 MB #Memory Used# [2025-01-07 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:33:05 [end_date_ymd] => 2025-01-07 13:33:05 [RateCDR] => 1 ) [2025-01-07 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:33:05' and `end` < '2025-01-07 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:33:22] Production.INFO: count ==5112 [2025-01-07 13:33:24] Production.ERROR: pbx CDR StartTime 2025-01-07 10:33:05 - End Time 2025-01-07 13:33:05 [2025-01-07 13:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195232', 'tblTempUsageDetail_20' ) start [2025-01-07 13:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195232', 'tblTempUsageDetail_20' ) end [2025-01-07 13:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195232', 'tblTempVendorCDR_20' ) start [2025-01-07 13:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195232', 'tblTempVendorCDR_20' ) end [2025-01-07 13:33:25] Production.INFO: ProcessCDR(1,14195232,1,1,2) [2025-01-07 13:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195232', 'tblTempUsageDetail_20' ) start [2025-01-07 13:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195232', 'tblTempUsageDetail_20' ) end [2025-01-07 13:33:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:33:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:33:29] Production.INFO: ==13671== Releasing lock... [2025-01-07 13:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:33:29] Production.INFO: 66.25 MB #Memory Used# [2025-01-07 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:34:05 [end_date_ymd] => 2025-01-07 13:34:05 [RateCDR] => 1 ) [2025-01-07 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:34:05' and `end` < '2025-01-07 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:34:28] Production.INFO: count ==5089 [2025-01-07 13:34:30] Production.ERROR: pbx CDR StartTime 2025-01-07 10:34:05 - End Time 2025-01-07 13:34:05 [2025-01-07 13:34:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195237', 'tblTempUsageDetail_20' ) start [2025-01-07 13:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195237', 'tblTempUsageDetail_20' ) end [2025-01-07 13:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195237', 'tblTempVendorCDR_20' ) start [2025-01-07 13:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195237', 'tblTempVendorCDR_20' ) end [2025-01-07 13:34:30] Production.INFO: ProcessCDR(1,14195237,1,1,2) [2025-01-07 13:34:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:34:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:34:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:34:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:34:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195237', 'tblTempUsageDetail_20' ) start [2025-01-07 13:34:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195237', 'tblTempUsageDetail_20' ) end [2025-01-07 13:34:35] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:34:35] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:34:35] Production.INFO: ==13742== Releasing lock... [2025-01-07 13:34:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:34:35] Production.INFO: 66 MB #Memory Used# [2025-01-07 13:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:35:04 [end_date_ymd] => 2025-01-07 13:35:04 [RateCDR] => 1 ) [2025-01-07 13:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:35:04' and `end` < '2025-01-07 13:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:35:30] Production.INFO: count ==5101 [2025-01-07 13:35:32] Production.ERROR: pbx CDR StartTime 2025-01-07 10:35:04 - End Time 2025-01-07 13:35:04 [2025-01-07 13:35:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195242', 'tblTempUsageDetail_20' ) start [2025-01-07 13:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195242', 'tblTempUsageDetail_20' ) end [2025-01-07 13:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195242', 'tblTempVendorCDR_20' ) start [2025-01-07 13:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195242', 'tblTempVendorCDR_20' ) end [2025-01-07 13:35:32] Production.INFO: ProcessCDR(1,14195242,1,1,2) [2025-01-07 13:35:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:35:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:35:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:35:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195242', 'tblTempUsageDetail_20' ) start [2025-01-07 13:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195242', 'tblTempUsageDetail_20' ) end [2025-01-07 13:35:36] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:35:36] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:35:36] Production.INFO: ==13812== Releasing lock... [2025-01-07 13:35:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:35:36] Production.INFO: 66.25 MB #Memory Used# [2025-01-07 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:36:05 [end_date_ymd] => 2025-01-07 13:36:05 [RateCDR] => 1 ) [2025-01-07 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:36:05' and `end` < '2025-01-07 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:36:36] Production.INFO: count ==5093 [2025-01-07 13:36:38] Production.ERROR: pbx CDR StartTime 2025-01-07 10:36:05 - End Time 2025-01-07 13:36:05 [2025-01-07 13:36:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:36:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195247', 'tblTempUsageDetail_20' ) start [2025-01-07 13:36:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195247', 'tblTempUsageDetail_20' ) end [2025-01-07 13:36:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195247', 'tblTempVendorCDR_20' ) start [2025-01-07 13:36:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195247', 'tblTempVendorCDR_20' ) end [2025-01-07 13:36:38] Production.INFO: ProcessCDR(1,14195247,1,1,2) [2025-01-07 13:36:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:36:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:36:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:36:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:36:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195247', 'tblTempUsageDetail_20' ) start [2025-01-07 13:36:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195247', 'tblTempUsageDetail_20' ) end [2025-01-07 13:36:42] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:36:43] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:36:43] Production.INFO: ==13883== Releasing lock... [2025-01-07 13:36:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:36:43] Production.INFO: 66.25 MB #Memory Used# [2025-01-07 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:37:05 [end_date_ymd] => 2025-01-07 13:37:05 [RateCDR] => 1 ) [2025-01-07 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:37:05' and `end` < '2025-01-07 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:37:23] Production.INFO: count ==5099 [2025-01-07 13:37:25] Production.ERROR: pbx CDR StartTime 2025-01-07 10:37:05 - End Time 2025-01-07 13:37:05 [2025-01-07 13:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195252', 'tblTempUsageDetail_20' ) start [2025-01-07 13:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195252', 'tblTempUsageDetail_20' ) end [2025-01-07 13:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195252', 'tblTempVendorCDR_20' ) start [2025-01-07 13:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195252', 'tblTempVendorCDR_20' ) end [2025-01-07 13:37:25] Production.INFO: ProcessCDR(1,14195252,1,1,2) [2025-01-07 13:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:37:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195252', 'tblTempUsageDetail_20' ) start [2025-01-07 13:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195252', 'tblTempUsageDetail_20' ) end [2025-01-07 13:37:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:37:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:37:30] Production.INFO: ==13954== Releasing lock... [2025-01-07 13:37:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:37:30] Production.INFO: 66.25 MB #Memory Used# [2025-01-07 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:38:05 [end_date_ymd] => 2025-01-07 13:38:05 [RateCDR] => 1 ) [2025-01-07 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:38:05' and `end` < '2025-01-07 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:38:19] Production.INFO: count ==5087 [2025-01-07 13:38:20] Production.ERROR: pbx CDR StartTime 2025-01-07 10:38:05 - End Time 2025-01-07 13:38:05 [2025-01-07 13:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195257', 'tblTempUsageDetail_20' ) start [2025-01-07 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195257', 'tblTempUsageDetail_20' ) end [2025-01-07 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195257', 'tblTempVendorCDR_20' ) start [2025-01-07 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195257', 'tblTempVendorCDR_20' ) end [2025-01-07 13:38:21] Production.INFO: ProcessCDR(1,14195257,1,1,2) [2025-01-07 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195257', 'tblTempUsageDetail_20' ) start [2025-01-07 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195257', 'tblTempUsageDetail_20' ) end [2025-01-07 13:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:38:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:38:25] Production.INFO: ==14024== Releasing lock... [2025-01-07 13:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:38:25] Production.INFO: 66 MB #Memory Used# [2025-01-07 13:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:39:04 [end_date_ymd] => 2025-01-07 13:39:04 [RateCDR] => 1 ) [2025-01-07 13:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:39:04' and `end` < '2025-01-07 13:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:39:19] Production.INFO: count ==5085 [2025-01-07 13:39:21] Production.ERROR: pbx CDR StartTime 2025-01-07 10:39:04 - End Time 2025-01-07 13:39:04 [2025-01-07 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195262', 'tblTempUsageDetail_20' ) start [2025-01-07 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195262', 'tblTempUsageDetail_20' ) end [2025-01-07 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195262', 'tblTempVendorCDR_20' ) start [2025-01-07 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195262', 'tblTempVendorCDR_20' ) end [2025-01-07 13:39:21] Production.INFO: ProcessCDR(1,14195262,1,1,2) [2025-01-07 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195262', 'tblTempUsageDetail_20' ) start [2025-01-07 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195262', 'tblTempUsageDetail_20' ) end [2025-01-07 13:39:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:39:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:39:26] Production.INFO: ==14133== Releasing lock... [2025-01-07 13:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:39:26] Production.INFO: 66 MB #Memory Used# [2025-01-07 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:40:06 [end_date_ymd] => 2025-01-07 13:40:06 [RateCDR] => 1 ) [2025-01-07 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:40:06' and `end` < '2025-01-07 13:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:40:21] Production.INFO: count ==5089 [2025-01-07 13:40:23] Production.ERROR: pbx CDR StartTime 2025-01-07 10:40:06 - End Time 2025-01-07 13:40:06 [2025-01-07 13:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195268', 'tblTempUsageDetail_20' ) start [2025-01-07 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195268', 'tblTempUsageDetail_20' ) end [2025-01-07 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195268', 'tblTempVendorCDR_20' ) start [2025-01-07 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195268', 'tblTempVendorCDR_20' ) end [2025-01-07 13:40:23] Production.INFO: ProcessCDR(1,14195268,1,1,2) [2025-01-07 13:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195268', 'tblTempUsageDetail_20' ) start [2025-01-07 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195268', 'tblTempUsageDetail_20' ) end [2025-01-07 13:40:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:40:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:40:26] Production.INFO: ==14219== Releasing lock... [2025-01-07 13:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:40:26] Production.INFO: 66 MB #Memory Used# [2025-01-07 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:41:05 [end_date_ymd] => 2025-01-07 13:41:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 10:41:05' and `end` < '2025-01-07 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-01-07 13:41:21] Production.INFO: count ==5059 [2025-01-07 13:41:23] Production.ERROR: pbx CDR StartTime 2025-01-07 10:41:05 - End Time 2025-01-07 13:41:05 [2025-01-07 13:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195273', 'tblTempUsageDetail_20' ) start [2025-01-07 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195273', 'tblTempUsageDetail_20' ) end [2025-01-07 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195273', 'tblTempVendorCDR_20' ) start [2025-01-07 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195273', 'tblTempVendorCDR_20' ) end [2025-01-07 13:41:23] Production.INFO: ProcessCDR(1,14195273,1,1,2) [2025-01-07 13:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195273', 'tblTempUsageDetail_20' ) start [2025-01-07 13:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195273', 'tblTempUsageDetail_20' ) end [2025-01-07 13:41:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:41:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:41:28] Production.INFO: ==14342== Releasing lock... [2025-01-07 13:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:41:28] Production.INFO: 65.75 MB #Memory Used# [2025-01-07 13:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:42:04 [end_date_ymd] => 2025-01-07 13:42:04 [RateCDR] => 1 ) [2025-01-07 13:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:42:04' and `end` < '2025-01-07 13:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:42:18] Production.INFO: count ==5053 [2025-01-07 13:42:20] Production.ERROR: pbx CDR StartTime 2025-01-07 10:42:04 - End Time 2025-01-07 13:42:04 [2025-01-07 13:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195278', 'tblTempUsageDetail_20' ) start [2025-01-07 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195278', 'tblTempUsageDetail_20' ) end [2025-01-07 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195278', 'tblTempVendorCDR_20' ) start [2025-01-07 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195278', 'tblTempVendorCDR_20' ) end [2025-01-07 13:42:20] Production.INFO: ProcessCDR(1,14195278,1,1,2) [2025-01-07 13:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195278', 'tblTempUsageDetail_20' ) start [2025-01-07 13:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195278', 'tblTempUsageDetail_20' ) end [2025-01-07 13:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:42:25] Production.INFO: ==14436== Releasing lock... [2025-01-07 13:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:42:25] Production.INFO: 65.75 MB #Memory Used# [2025-01-07 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:43:05 [end_date_ymd] => 2025-01-07 13:43:05 [RateCDR] => 1 ) [2025-01-07 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:43:05' and `end` < '2025-01-07 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:43:19] Production.INFO: count ==5057 [2025-01-07 13:43:21] Production.ERROR: pbx CDR StartTime 2025-01-07 10:43:05 - End Time 2025-01-07 13:43:05 [2025-01-07 13:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195283', 'tblTempUsageDetail_20' ) start [2025-01-07 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195283', 'tblTempUsageDetail_20' ) end [2025-01-07 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195283', 'tblTempVendorCDR_20' ) start [2025-01-07 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195283', 'tblTempVendorCDR_20' ) end [2025-01-07 13:43:21] Production.INFO: ProcessCDR(1,14195283,1,1,2) [2025-01-07 13:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195283', 'tblTempUsageDetail_20' ) start [2025-01-07 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195283', 'tblTempUsageDetail_20' ) end [2025-01-07 13:43:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:43:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:43:26] Production.INFO: ==14507== Releasing lock... [2025-01-07 13:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:43:26] Production.INFO: 65.75 MB #Memory Used# [2025-01-07 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:44:05 [end_date_ymd] => 2025-01-07 13:44:05 [RateCDR] => 1 ) [2025-01-07 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:44:05' and `end` < '2025-01-07 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:44:19] Production.INFO: count ==5061 [2025-01-07 13:44:21] Production.ERROR: pbx CDR StartTime 2025-01-07 10:44:05 - End Time 2025-01-07 13:44:05 [2025-01-07 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195288', 'tblTempUsageDetail_20' ) start [2025-01-07 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195288', 'tblTempUsageDetail_20' ) end [2025-01-07 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195288', 'tblTempVendorCDR_20' ) start [2025-01-07 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195288', 'tblTempVendorCDR_20' ) end [2025-01-07 13:44:21] Production.INFO: ProcessCDR(1,14195288,1,1,2) [2025-01-07 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195288', 'tblTempUsageDetail_20' ) start [2025-01-07 13:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195288', 'tblTempUsageDetail_20' ) end [2025-01-07 13:44:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:44:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:44:25] Production.INFO: ==14577== Releasing lock... [2025-01-07 13:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:44:25] Production.INFO: 66 MB #Memory Used# [2025-01-07 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:45:05 [end_date_ymd] => 2025-01-07 13:45:05 [RateCDR] => 1 ) [2025-01-07 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:45:05' and `end` < '2025-01-07 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:45:19] Production.INFO: count ==5062 [2025-01-07 13:45:20] Production.ERROR: pbx CDR StartTime 2025-01-07 10:45:05 - End Time 2025-01-07 13:45:05 [2025-01-07 13:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195293', 'tblTempUsageDetail_20' ) start [2025-01-07 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195293', 'tblTempUsageDetail_20' ) end [2025-01-07 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195293', 'tblTempVendorCDR_20' ) start [2025-01-07 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195293', 'tblTempVendorCDR_20' ) end [2025-01-07 13:45:21] Production.INFO: ProcessCDR(1,14195293,1,1,2) [2025-01-07 13:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195293', 'tblTempUsageDetail_20' ) start [2025-01-07 13:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195293', 'tblTempUsageDetail_20' ) end [2025-01-07 13:45:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:45:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:45:25] Production.INFO: ==14649== Releasing lock... [2025-01-07 13:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:45:25] Production.INFO: 66.25 MB #Memory Used# [2025-01-07 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:46:05 [end_date_ymd] => 2025-01-07 13:46:05 [RateCDR] => 1 ) [2025-01-07 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:46:05' and `end` < '2025-01-07 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:46:21] Production.INFO: count ==5077 [2025-01-07 13:46:23] Production.ERROR: pbx CDR StartTime 2025-01-07 10:46:05 - End Time 2025-01-07 13:46:05 [2025-01-07 13:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195298', 'tblTempUsageDetail_20' ) start [2025-01-07 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195298', 'tblTempUsageDetail_20' ) end [2025-01-07 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195298', 'tblTempVendorCDR_20' ) start [2025-01-07 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195298', 'tblTempVendorCDR_20' ) end [2025-01-07 13:46:23] Production.INFO: ProcessCDR(1,14195298,1,1,2) [2025-01-07 13:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195298', 'tblTempUsageDetail_20' ) start [2025-01-07 13:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195298', 'tblTempUsageDetail_20' ) end [2025-01-07 13:46:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:46:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:46:28] Production.INFO: ==14719== Releasing lock... [2025-01-07 13:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:46:28] Production.INFO: 66 MB #Memory Used# [2025-01-07 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:47:05 [end_date_ymd] => 2025-01-07 13:47:05 [RateCDR] => 1 ) [2025-01-07 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:47:05' and `end` < '2025-01-07 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:47:21] Production.INFO: count ==5078 [2025-01-07 13:47:23] Production.ERROR: pbx CDR StartTime 2025-01-07 10:47:05 - End Time 2025-01-07 13:47:05 [2025-01-07 13:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195303', 'tblTempUsageDetail_20' ) start [2025-01-07 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195303', 'tblTempUsageDetail_20' ) end [2025-01-07 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195303', 'tblTempVendorCDR_20' ) start [2025-01-07 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195303', 'tblTempVendorCDR_20' ) end [2025-01-07 13:47:23] Production.INFO: ProcessCDR(1,14195303,1,1,2) [2025-01-07 13:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195303', 'tblTempUsageDetail_20' ) start [2025-01-07 13:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195303', 'tblTempUsageDetail_20' ) end [2025-01-07 13:47:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:47:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:47:28] Production.INFO: ==14811== Releasing lock... [2025-01-07 13:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:47:28] Production.INFO: 66 MB #Memory Used# [2025-01-07 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:48:06 [end_date_ymd] => 2025-01-07 13:48:06 [RateCDR] => 1 ) [2025-01-07 13:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:48:06' and `end` < '2025-01-07 13:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:48:24] Production.INFO: count ==5095 [2025-01-07 13:48:26] Production.ERROR: pbx CDR StartTime 2025-01-07 10:48:06 - End Time 2025-01-07 13:48:06 [2025-01-07 13:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195308', 'tblTempUsageDetail_20' ) start [2025-01-07 13:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195308', 'tblTempUsageDetail_20' ) end [2025-01-07 13:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195308', 'tblTempVendorCDR_20' ) start [2025-01-07 13:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195308', 'tblTempVendorCDR_20' ) end [2025-01-07 13:48:26] Production.INFO: ProcessCDR(1,14195308,1,1,2) [2025-01-07 13:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195308', 'tblTempUsageDetail_20' ) start [2025-01-07 13:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195308', 'tblTempUsageDetail_20' ) end [2025-01-07 13:48:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:48:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:48:31] Production.INFO: ==14882== Releasing lock... [2025-01-07 13:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:48:31] Production.INFO: 66.25 MB #Memory Used# [2025-01-07 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:49:04 [end_date_ymd] => 2025-01-07 13:49:04 [RateCDR] => 1 ) [2025-01-07 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:49:04' and `end` < '2025-01-07 13:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:49:23] Production.INFO: count ==5081 [2025-01-07 13:49:25] Production.ERROR: pbx CDR StartTime 2025-01-07 10:49:04 - End Time 2025-01-07 13:49:04 [2025-01-07 13:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195313', 'tblTempUsageDetail_20' ) start [2025-01-07 13:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195313', 'tblTempUsageDetail_20' ) end [2025-01-07 13:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195313', 'tblTempVendorCDR_20' ) start [2025-01-07 13:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195313', 'tblTempVendorCDR_20' ) end [2025-01-07 13:49:25] Production.INFO: ProcessCDR(1,14195313,1,1,2) [2025-01-07 13:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195313', 'tblTempUsageDetail_20' ) start [2025-01-07 13:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195313', 'tblTempUsageDetail_20' ) end [2025-01-07 13:49:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:49:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:49:30] Production.INFO: ==14952== Releasing lock... [2025-01-07 13:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:49:30] Production.INFO: 66 MB #Memory Used# [2025-01-07 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:50:06 [end_date_ymd] => 2025-01-07 13:50:06 [RateCDR] => 1 ) [2025-01-07 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:50:06' and `end` < '2025-01-07 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:50:20] Production.INFO: count ==5063 [2025-01-07 13:50:22] Production.ERROR: pbx CDR StartTime 2025-01-07 10:50:06 - End Time 2025-01-07 13:50:06 [2025-01-07 13:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195319', 'tblTempUsageDetail_20' ) start [2025-01-07 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195319', 'tblTempUsageDetail_20' ) end [2025-01-07 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195319', 'tblTempVendorCDR_20' ) start [2025-01-07 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195319', 'tblTempVendorCDR_20' ) end [2025-01-07 13:50:22] Production.INFO: ProcessCDR(1,14195319,1,1,2) [2025-01-07 13:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195319', 'tblTempUsageDetail_20' ) start [2025-01-07 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195319', 'tblTempUsageDetail_20' ) end [2025-01-07 13:50:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:50:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:50:27] Production.INFO: ==15027== Releasing lock... [2025-01-07 13:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:50:27] Production.INFO: 66 MB #Memory Used# [2025-01-07 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:51:05 [end_date_ymd] => 2025-01-07 13:51:05 [RateCDR] => 1 ) [2025-01-07 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:51:05' and `end` < '2025-01-07 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:51:20] Production.INFO: count ==5024 [2025-01-07 13:51:22] Production.ERROR: pbx CDR StartTime 2025-01-07 10:51:05 - End Time 2025-01-07 13:51:05 [2025-01-07 13:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195324', 'tblTempUsageDetail_20' ) start [2025-01-07 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195324', 'tblTempUsageDetail_20' ) end [2025-01-07 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195324', 'tblTempVendorCDR_20' ) start [2025-01-07 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195324', 'tblTempVendorCDR_20' ) end [2025-01-07 13:51:22] Production.INFO: ProcessCDR(1,14195324,1,1,2) [2025-01-07 13:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195324', 'tblTempUsageDetail_20' ) start [2025-01-07 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195324', 'tblTempUsageDetail_20' ) end [2025-01-07 13:51:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:51:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:51:27] Production.INFO: ==15100== Releasing lock... [2025-01-07 13:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:51:27] Production.INFO: 65.5 MB #Memory Used# [2025-01-07 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:52:05 [end_date_ymd] => 2025-01-07 13:52:05 [RateCDR] => 1 ) [2025-01-07 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:52:05' and `end` < '2025-01-07 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:52:21] Production.INFO: count ==5041 [2025-01-07 13:52:23] Production.ERROR: pbx CDR StartTime 2025-01-07 10:52:05 - End Time 2025-01-07 13:52:05 [2025-01-07 13:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195329', 'tblTempUsageDetail_20' ) start [2025-01-07 13:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195329', 'tblTempUsageDetail_20' ) end [2025-01-07 13:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195329', 'tblTempVendorCDR_20' ) start [2025-01-07 13:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195329', 'tblTempVendorCDR_20' ) end [2025-01-07 13:52:23] Production.INFO: ProcessCDR(1,14195329,1,1,2) [2025-01-07 13:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195329', 'tblTempUsageDetail_20' ) start [2025-01-07 13:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195329', 'tblTempUsageDetail_20' ) end [2025-01-07 13:52:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:52:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:52:28] Production.INFO: ==15173== Releasing lock... [2025-01-07 13:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:52:28] Production.INFO: 65.75 MB #Memory Used# [2025-01-07 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:53:05 [end_date_ymd] => 2025-01-07 13:53:05 [RateCDR] => 1 ) [2025-01-07 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:53:05' and `end` < '2025-01-07 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:53:24] Production.INFO: count ==5056 [2025-01-07 13:53:26] Production.ERROR: pbx CDR StartTime 2025-01-07 10:53:05 - End Time 2025-01-07 13:53:05 [2025-01-07 13:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195334', 'tblTempUsageDetail_20' ) start [2025-01-07 13:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195334', 'tblTempUsageDetail_20' ) end [2025-01-07 13:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195334', 'tblTempVendorCDR_20' ) start [2025-01-07 13:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195334', 'tblTempVendorCDR_20' ) end [2025-01-07 13:53:26] Production.INFO: ProcessCDR(1,14195334,1,1,2) [2025-01-07 13:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:53:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195334', 'tblTempUsageDetail_20' ) start [2025-01-07 13:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195334', 'tblTempUsageDetail_20' ) end [2025-01-07 13:53:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:53:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:53:31] Production.INFO: ==15245== Releasing lock... [2025-01-07 13:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:53:31] Production.INFO: 65.75 MB #Memory Used# [2025-01-07 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:54:05 [end_date_ymd] => 2025-01-07 13:54:05 [RateCDR] => 1 ) [2025-01-07 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:54:05' and `end` < '2025-01-07 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:54:24] Production.INFO: count ==5078 [2025-01-07 13:54:26] Production.ERROR: pbx CDR StartTime 2025-01-07 10:54:05 - End Time 2025-01-07 13:54:05 [2025-01-07 13:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195338', 'tblTempUsageDetail_20' ) start [2025-01-07 13:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195338', 'tblTempUsageDetail_20' ) end [2025-01-07 13:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195338', 'tblTempVendorCDR_20' ) start [2025-01-07 13:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195338', 'tblTempVendorCDR_20' ) end [2025-01-07 13:54:26] Production.INFO: ProcessCDR(1,14195338,1,1,2) [2025-01-07 13:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:54:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:54:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:54:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195338', 'tblTempUsageDetail_20' ) start [2025-01-07 13:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195338', 'tblTempUsageDetail_20' ) end [2025-01-07 13:54:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:54:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:54:31] Production.INFO: ==15361== Releasing lock... [2025-01-07 13:54:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:54:31] Production.INFO: 66 MB #Memory Used# [2025-01-07 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:55:05 [end_date_ymd] => 2025-01-07 13:55:05 [RateCDR] => 1 ) [2025-01-07 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:55:05' and `end` < '2025-01-07 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:55:32] Production.INFO: count ==5066 [2025-01-07 13:55:34] Production.ERROR: pbx CDR StartTime 2025-01-07 10:55:05 - End Time 2025-01-07 13:55:05 [2025-01-07 13:55:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195344', 'tblTempUsageDetail_20' ) start [2025-01-07 13:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195344', 'tblTempUsageDetail_20' ) end [2025-01-07 13:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195344', 'tblTempVendorCDR_20' ) start [2025-01-07 13:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195344', 'tblTempVendorCDR_20' ) end [2025-01-07 13:55:34] Production.INFO: ProcessCDR(1,14195344,1,1,2) [2025-01-07 13:55:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:55:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:55:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:55:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:55:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195344', 'tblTempUsageDetail_20' ) start [2025-01-07 13:55:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195344', 'tblTempUsageDetail_20' ) end [2025-01-07 13:55:39] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:55:39] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:55:39] Production.INFO: ==15437== Releasing lock... [2025-01-07 13:55:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:55:39] Production.INFO: 66 MB #Memory Used# [2025-01-07 13:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:56:04 [end_date_ymd] => 2025-01-07 13:56:04 [RateCDR] => 1 ) [2025-01-07 13:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:56:04' and `end` < '2025-01-07 13:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:56:23] Production.INFO: count ==5084 [2025-01-07 13:56:25] Production.ERROR: pbx CDR StartTime 2025-01-07 10:56:04 - End Time 2025-01-07 13:56:04 [2025-01-07 13:56:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195349', 'tblTempUsageDetail_20' ) start [2025-01-07 13:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195349', 'tblTempUsageDetail_20' ) end [2025-01-07 13:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195349', 'tblTempVendorCDR_20' ) start [2025-01-07 13:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195349', 'tblTempVendorCDR_20' ) end [2025-01-07 13:56:25] Production.INFO: ProcessCDR(1,14195349,1,1,2) [2025-01-07 13:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195349', 'tblTempUsageDetail_20' ) start [2025-01-07 13:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195349', 'tblTempUsageDetail_20' ) end [2025-01-07 13:56:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:56:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:56:30] Production.INFO: ==15513== Releasing lock... [2025-01-07 13:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:56:30] Production.INFO: 66 MB #Memory Used# [2025-01-07 13:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:57:06 [end_date_ymd] => 2025-01-07 13:57:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 10:57:06' and `end` < '2025-01-07 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-01-07 13:57:25] Production.INFO: count ==5048 [2025-01-07 13:57:26] Production.ERROR: pbx CDR StartTime 2025-01-07 10:57:06 - End Time 2025-01-07 13:57:06 [2025-01-07 13:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195354', 'tblTempUsageDetail_20' ) start [2025-01-07 13:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195354', 'tblTempUsageDetail_20' ) end [2025-01-07 13:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195354', 'tblTempVendorCDR_20' ) start [2025-01-07 13:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195354', 'tblTempVendorCDR_20' ) end [2025-01-07 13:57:27] Production.INFO: ProcessCDR(1,14195354,1,1,2) [2025-01-07 13:57:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:57:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:57:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:57:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195354', 'tblTempUsageDetail_20' ) start [2025-01-07 13:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195354', 'tblTempUsageDetail_20' ) end [2025-01-07 13:57:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:57:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:57:31] Production.INFO: ==15587== Releasing lock... [2025-01-07 13:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:57:31] Production.INFO: 65.75 MB #Memory Used# [2025-01-07 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:58:05 [end_date_ymd] => 2025-01-07 13:58:05 [RateCDR] => 1 ) [2025-01-07 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:58:05' and `end` < '2025-01-07 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:58:21] Production.INFO: count ==5001 [2025-01-07 13:58:22] Production.ERROR: pbx CDR StartTime 2025-01-07 10:58:05 - End Time 2025-01-07 13:58:05 [2025-01-07 13:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195359', 'tblTempUsageDetail_20' ) start [2025-01-07 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195359', 'tblTempUsageDetail_20' ) end [2025-01-07 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195359', 'tblTempVendorCDR_20' ) start [2025-01-07 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195359', 'tblTempVendorCDR_20' ) end [2025-01-07 13:58:23] Production.INFO: ProcessCDR(1,14195359,1,1,2) [2025-01-07 13:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195359', 'tblTempUsageDetail_20' ) start [2025-01-07 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195359', 'tblTempUsageDetail_20' ) end [2025-01-07 13:58:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:58:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:58:27] Production.INFO: ==15661== Releasing lock... [2025-01-07 13:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:58:27] Production.INFO: 65.5 MB #Memory Used# [2025-01-07 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 10:59:05 [end_date_ymd] => 2025-01-07 13:59:05 [RateCDR] => 1 ) [2025-01-07 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 10:59:05' and `end` < '2025-01-07 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 13:59:20] Production.INFO: count ==4999 [2025-01-07 13:59:22] Production.ERROR: pbx CDR StartTime 2025-01-07 10:59:05 - End Time 2025-01-07 13:59:05 [2025-01-07 13:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195364', 'tblTempUsageDetail_20' ) start [2025-01-07 13:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195364', 'tblTempUsageDetail_20' ) end [2025-01-07 13:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195364', 'tblTempVendorCDR_20' ) start [2025-01-07 13:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195364', 'tblTempVendorCDR_20' ) end [2025-01-07 13:59:23] Production.INFO: ProcessCDR(1,14195364,1,1,2) [2025-01-07 13:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 13:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195364', 'tblTempUsageDetail_20' ) start [2025-01-07 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195364', 'tblTempUsageDetail_20' ) end [2025-01-07 13:59:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 13:59:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 13:59:28] Production.INFO: ==15736== Releasing lock... [2025-01-07 13:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 13:59:28] Production.INFO: 65.5 MB #Memory Used# [2025-01-07 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:00:05 [end_date_ymd] => 2025-01-07 14:00:05 [RateCDR] => 1 ) [2025-01-07 14:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:00:05' and `end` < '2025-01-07 14:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:00:19] Production.INFO: count ==4987 [2025-01-07 14:00:21] Production.ERROR: pbx CDR StartTime 2025-01-07 11:00:05 - End Time 2025-01-07 14:00:05 [2025-01-07 14:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195370', 'tblTempUsageDetail_20' ) start [2025-01-07 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195370', 'tblTempUsageDetail_20' ) end [2025-01-07 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195370', 'tblTempVendorCDR_20' ) start [2025-01-07 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195370', 'tblTempVendorCDR_20' ) end [2025-01-07 14:00:21] Production.INFO: ProcessCDR(1,14195370,1,1,2) [2025-01-07 14:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195370', 'tblTempUsageDetail_20' ) start [2025-01-07 14:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195370', 'tblTempUsageDetail_20' ) end [2025-01-07 14:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:00:26] Production.INFO: ==15809== Releasing lock... [2025-01-07 14:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:00:26] Production.INFO: 65.25 MB #Memory Used# [2025-01-07 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:01:05 [end_date_ymd] => 2025-01-07 14:01:05 [RateCDR] => 1 ) [2025-01-07 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:01:05' and `end` < '2025-01-07 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:01:19] Production.INFO: count ==4986 [2025-01-07 14:01:21] Production.ERROR: pbx CDR StartTime 2025-01-07 11:01:05 - End Time 2025-01-07 14:01:05 [2025-01-07 14:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195375', 'tblTempUsageDetail_20' ) start [2025-01-07 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195375', 'tblTempUsageDetail_20' ) end [2025-01-07 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195375', 'tblTempVendorCDR_20' ) start [2025-01-07 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195375', 'tblTempVendorCDR_20' ) end [2025-01-07 14:01:21] Production.INFO: ProcessCDR(1,14195375,1,1,2) [2025-01-07 14:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195375', 'tblTempUsageDetail_20' ) start [2025-01-07 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195375', 'tblTempUsageDetail_20' ) end [2025-01-07 14:01:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:01:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:01:26] Production.INFO: ==15899== Releasing lock... [2025-01-07 14:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:01:26] Production.INFO: 65.25 MB #Memory Used# [2025-01-07 14:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:02:04 [end_date_ymd] => 2025-01-07 14:02:04 [RateCDR] => 1 ) [2025-01-07 14:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:02:04' and `end` < '2025-01-07 14:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:02:39] Production.INFO: count ==4988 [2025-01-07 14:02:41] Production.ERROR: pbx CDR StartTime 2025-01-07 11:02:04 - End Time 2025-01-07 14:02:04 [2025-01-07 14:02:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:02:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195380', 'tblTempUsageDetail_20' ) start [2025-01-07 14:02:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195380', 'tblTempUsageDetail_20' ) end [2025-01-07 14:02:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195380', 'tblTempVendorCDR_20' ) start [2025-01-07 14:02:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195380', 'tblTempVendorCDR_20' ) end [2025-01-07 14:02:41] Production.INFO: ProcessCDR(1,14195380,1,1,2) [2025-01-07 14:02:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:02:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:02:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:02:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:02:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195380', 'tblTempUsageDetail_20' ) start [2025-01-07 14:02:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195380', 'tblTempUsageDetail_20' ) end [2025-01-07 14:02:46] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:02:46] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:02:46] Production.INFO: ==15973== Releasing lock... [2025-01-07 14:02:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:02:46] Production.INFO: 65.25 MB #Memory Used# [2025-01-07 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:03:05 [end_date_ymd] => 2025-01-07 14:03:05 [RateCDR] => 1 ) [2025-01-07 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:03:05' and `end` < '2025-01-07 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:03:30] Production.INFO: count ==4997 [2025-01-07 14:03:32] Production.ERROR: pbx CDR StartTime 2025-01-07 11:03:05 - End Time 2025-01-07 14:03:05 [2025-01-07 14:03:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195385', 'tblTempUsageDetail_20' ) start [2025-01-07 14:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195385', 'tblTempUsageDetail_20' ) end [2025-01-07 14:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195385', 'tblTempVendorCDR_20' ) start [2025-01-07 14:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195385', 'tblTempVendorCDR_20' ) end [2025-01-07 14:03:32] Production.INFO: ProcessCDR(1,14195385,1,1,2) [2025-01-07 14:03:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:03:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:03:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:03:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:03:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195385', 'tblTempUsageDetail_20' ) start [2025-01-07 14:03:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195385', 'tblTempUsageDetail_20' ) end [2025-01-07 14:03:37] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:03:37] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:03:37] Production.INFO: ==16047== Releasing lock... [2025-01-07 14:03:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:03:37] Production.INFO: 65.5 MB #Memory Used# [2025-01-07 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:04:06 [end_date_ymd] => 2025-01-07 14:04:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 11:04:06' and `end` < '2025-01-07 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-01-07 14:04:26] Production.INFO: count ==4994 [2025-01-07 14:04:27] Production.ERROR: pbx CDR StartTime 2025-01-07 11:04:06 - End Time 2025-01-07 14:04:06 [2025-01-07 14:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195390', 'tblTempUsageDetail_20' ) start [2025-01-07 14:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195390', 'tblTempUsageDetail_20' ) end [2025-01-07 14:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195390', 'tblTempVendorCDR_20' ) start [2025-01-07 14:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195390', 'tblTempVendorCDR_20' ) end [2025-01-07 14:04:28] Production.INFO: ProcessCDR(1,14195390,1,1,2) [2025-01-07 14:04:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195390', 'tblTempUsageDetail_20' ) start [2025-01-07 14:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195390', 'tblTempUsageDetail_20' ) end [2025-01-07 14:04:32] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:04:32] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:04:32] Production.INFO: ==16126== Releasing lock... [2025-01-07 14:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:04:32] Production.INFO: 65.5 MB #Memory Used# [2025-01-07 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:05:05 [end_date_ymd] => 2025-01-07 14:05:05 [RateCDR] => 1 ) [2025-01-07 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:05:05' and `end` < '2025-01-07 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:05:27] Production.INFO: count ==5006 [2025-01-07 14:05:29] Production.ERROR: pbx CDR StartTime 2025-01-07 11:05:05 - End Time 2025-01-07 14:05:05 [2025-01-07 14:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195395', 'tblTempUsageDetail_20' ) start [2025-01-07 14:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195395', 'tblTempUsageDetail_20' ) end [2025-01-07 14:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195395', 'tblTempVendorCDR_20' ) start [2025-01-07 14:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195395', 'tblTempVendorCDR_20' ) end [2025-01-07 14:05:29] Production.INFO: ProcessCDR(1,14195395,1,1,2) [2025-01-07 14:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:05:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:05:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195395', 'tblTempUsageDetail_20' ) start [2025-01-07 14:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195395', 'tblTempUsageDetail_20' ) end [2025-01-07 14:05:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:05:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:05:34] Production.INFO: ==16196== Releasing lock... [2025-01-07 14:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:05:34] Production.INFO: 65.5 MB #Memory Used# [2025-01-07 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:06:05 [end_date_ymd] => 2025-01-07 14:06:05 [RateCDR] => 1 ) [2025-01-07 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:06:05' and `end` < '2025-01-07 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:06:24] Production.INFO: count ==5018 [2025-01-07 14:06:26] Production.ERROR: pbx CDR StartTime 2025-01-07 11:06:05 - End Time 2025-01-07 14:06:05 [2025-01-07 14:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195400', 'tblTempUsageDetail_20' ) start [2025-01-07 14:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195400', 'tblTempUsageDetail_20' ) end [2025-01-07 14:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195400', 'tblTempVendorCDR_20' ) start [2025-01-07 14:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195400', 'tblTempVendorCDR_20' ) end [2025-01-07 14:06:26] Production.INFO: ProcessCDR(1,14195400,1,1,2) [2025-01-07 14:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195400', 'tblTempUsageDetail_20' ) start [2025-01-07 14:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195400', 'tblTempUsageDetail_20' ) end [2025-01-07 14:06:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:06:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:06:31] Production.INFO: ==16265== Releasing lock... [2025-01-07 14:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:06:31] Production.INFO: 65.5 MB #Memory Used# [2025-01-07 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:07:05 [end_date_ymd] => 2025-01-07 14:07:05 [RateCDR] => 1 ) [2025-01-07 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:07:05' and `end` < '2025-01-07 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:07:23] Production.INFO: count ==5027 [2025-01-07 14:07:25] Production.ERROR: pbx CDR StartTime 2025-01-07 11:07:05 - End Time 2025-01-07 14:07:05 [2025-01-07 14:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195405', 'tblTempUsageDetail_20' ) start [2025-01-07 14:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195405', 'tblTempUsageDetail_20' ) end [2025-01-07 14:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195405', 'tblTempVendorCDR_20' ) start [2025-01-07 14:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195405', 'tblTempVendorCDR_20' ) end [2025-01-07 14:07:25] Production.INFO: ProcessCDR(1,14195405,1,1,2) [2025-01-07 14:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195405', 'tblTempUsageDetail_20' ) start [2025-01-07 14:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195405', 'tblTempUsageDetail_20' ) end [2025-01-07 14:07:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:07:29] Production.INFO: ==16339== Releasing lock... [2025-01-07 14:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:07:29] Production.INFO: 65.75 MB #Memory Used# [2025-01-07 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:08:05 [end_date_ymd] => 2025-01-07 14:08:05 [RateCDR] => 1 ) [2025-01-07 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:08:05' and `end` < '2025-01-07 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:08:19] Production.INFO: count ==5030 [2025-01-07 14:08:21] Production.ERROR: pbx CDR StartTime 2025-01-07 11:08:05 - End Time 2025-01-07 14:08:05 [2025-01-07 14:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195410', 'tblTempUsageDetail_20' ) start [2025-01-07 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195410', 'tblTempUsageDetail_20' ) end [2025-01-07 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195410', 'tblTempVendorCDR_20' ) start [2025-01-07 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195410', 'tblTempVendorCDR_20' ) end [2025-01-07 14:08:22] Production.INFO: ProcessCDR(1,14195410,1,1,2) [2025-01-07 14:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195410', 'tblTempUsageDetail_20' ) start [2025-01-07 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195410', 'tblTempUsageDetail_20' ) end [2025-01-07 14:08:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:08:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:08:27] Production.INFO: ==16416== Releasing lock... [2025-01-07 14:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:08:27] Production.INFO: 65.75 MB #Memory Used# [2025-01-07 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:09:05 [end_date_ymd] => 2025-01-07 14:09:05 [RateCDR] => 1 ) [2025-01-07 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:09:05' and `end` < '2025-01-07 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:09:19] Production.INFO: count ==5026 [2025-01-07 14:09:21] Production.ERROR: pbx CDR StartTime 2025-01-07 11:09:05 - End Time 2025-01-07 14:09:05 [2025-01-07 14:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195415', 'tblTempUsageDetail_20' ) start [2025-01-07 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195415', 'tblTempUsageDetail_20' ) end [2025-01-07 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195415', 'tblTempVendorCDR_20' ) start [2025-01-07 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195415', 'tblTempVendorCDR_20' ) end [2025-01-07 14:09:21] Production.INFO: ProcessCDR(1,14195415,1,1,2) [2025-01-07 14:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195415', 'tblTempUsageDetail_20' ) start [2025-01-07 14:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195415', 'tblTempUsageDetail_20' ) end [2025-01-07 14:09:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:09:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:09:25] Production.INFO: ==16490== Releasing lock... [2025-01-07 14:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:09:25] Production.INFO: 65.5 MB #Memory Used# [2025-01-07 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:10:06 [end_date_ymd] => 2025-01-07 14:10:06 [RateCDR] => 1 ) [2025-01-07 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:10:06' and `end` < '2025-01-07 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:10:21] Production.INFO: count ==5030 [2025-01-07 14:10:23] Production.ERROR: pbx CDR StartTime 2025-01-07 11:10:06 - End Time 2025-01-07 14:10:06 [2025-01-07 14:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195421', 'tblTempUsageDetail_20' ) start [2025-01-07 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195421', 'tblTempUsageDetail_20' ) end [2025-01-07 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195421', 'tblTempVendorCDR_20' ) start [2025-01-07 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195421', 'tblTempVendorCDR_20' ) end [2025-01-07 14:10:23] Production.INFO: ProcessCDR(1,14195421,1,1,2) [2025-01-07 14:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195421', 'tblTempUsageDetail_20' ) start [2025-01-07 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195421', 'tblTempUsageDetail_20' ) end [2025-01-07 14:10:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:10:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:10:28] Production.INFO: ==16609== Releasing lock... [2025-01-07 14:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:10:28] Production.INFO: 65.75 MB #Memory Used# [2025-01-07 14:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:11:04 [end_date_ymd] => 2025-01-07 14:11:04 [RateCDR] => 1 ) [2025-01-07 14:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:11:04' and `end` < '2025-01-07 14:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:11:23] Production.INFO: count ==5014 [2025-01-07 14:11:25] Production.ERROR: pbx CDR StartTime 2025-01-07 11:11:04 - End Time 2025-01-07 14:11:04 [2025-01-07 14:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195426', 'tblTempUsageDetail_20' ) start [2025-01-07 14:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195426', 'tblTempUsageDetail_20' ) end [2025-01-07 14:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195426', 'tblTempVendorCDR_20' ) start [2025-01-07 14:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195426', 'tblTempVendorCDR_20' ) end [2025-01-07 14:11:25] Production.INFO: ProcessCDR(1,14195426,1,1,2) [2025-01-07 14:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195426', 'tblTempUsageDetail_20' ) start [2025-01-07 14:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195426', 'tblTempUsageDetail_20' ) end [2025-01-07 14:11:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:11:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:11:30] Production.INFO: ==16683== Releasing lock... [2025-01-07 14:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:11:30] Production.INFO: 65.5 MB #Memory Used# [2025-01-07 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:12:05 [end_date_ymd] => 2025-01-07 14:12:05 [RateCDR] => 1 ) [2025-01-07 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:12:05' and `end` < '2025-01-07 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:12:22] Production.INFO: count ==5000 [2025-01-07 14:12:24] Production.ERROR: pbx CDR StartTime 2025-01-07 11:12:05 - End Time 2025-01-07 14:12:05 [2025-01-07 14:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195431', 'tblTempUsageDetail_20' ) start [2025-01-07 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195431', 'tblTempUsageDetail_20' ) end [2025-01-07 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195431', 'tblTempVendorCDR_20' ) start [2025-01-07 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195431', 'tblTempVendorCDR_20' ) end [2025-01-07 14:12:24] Production.INFO: ProcessCDR(1,14195431,1,1,2) [2025-01-07 14:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195431', 'tblTempUsageDetail_20' ) start [2025-01-07 14:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195431', 'tblTempUsageDetail_20' ) end [2025-01-07 14:12:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:12:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:12:29] Production.INFO: ==16753== Releasing lock... [2025-01-07 14:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:12:29] Production.INFO: 65.5 MB #Memory Used# [2025-01-07 14:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:13:04 [end_date_ymd] => 2025-01-07 14:13:04 [RateCDR] => 1 ) [2025-01-07 14:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:13:04' and `end` < '2025-01-07 14:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:13:21] Production.INFO: count ==4982 [2025-01-07 14:13:23] Production.ERROR: pbx CDR StartTime 2025-01-07 11:13:04 - End Time 2025-01-07 14:13:04 [2025-01-07 14:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195436', 'tblTempUsageDetail_20' ) start [2025-01-07 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195436', 'tblTempUsageDetail_20' ) end [2025-01-07 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195436', 'tblTempVendorCDR_20' ) start [2025-01-07 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195436', 'tblTempVendorCDR_20' ) end [2025-01-07 14:13:23] Production.INFO: ProcessCDR(1,14195436,1,1,2) [2025-01-07 14:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195436', 'tblTempUsageDetail_20' ) start [2025-01-07 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195436', 'tblTempUsageDetail_20' ) end [2025-01-07 14:13:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:13:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:13:27] Production.INFO: ==16824== Releasing lock... [2025-01-07 14:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:13:27] Production.INFO: 65.25 MB #Memory Used# [2025-01-07 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:14:05 [end_date_ymd] => 2025-01-07 14:14:05 [RateCDR] => 1 ) [2025-01-07 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:14:05' and `end` < '2025-01-07 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:14:30] Production.INFO: count ==4984 [2025-01-07 14:14:32] Production.ERROR: pbx CDR StartTime 2025-01-07 11:14:05 - End Time 2025-01-07 14:14:05 [2025-01-07 14:14:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:14:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195441', 'tblTempUsageDetail_20' ) start [2025-01-07 14:14:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195441', 'tblTempUsageDetail_20' ) end [2025-01-07 14:14:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195441', 'tblTempVendorCDR_20' ) start [2025-01-07 14:14:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195441', 'tblTempVendorCDR_20' ) end [2025-01-07 14:14:32] Production.INFO: ProcessCDR(1,14195441,1,1,2) [2025-01-07 14:14:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:14:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:14:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:14:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:14:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195441', 'tblTempUsageDetail_20' ) start [2025-01-07 14:14:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195441', 'tblTempUsageDetail_20' ) end [2025-01-07 14:14:37] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:14:37] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:14:37] Production.INFO: ==16895== Releasing lock... [2025-01-07 14:14:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:14:37] Production.INFO: 65.25 MB #Memory Used# [2025-01-07 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:15:05 [end_date_ymd] => 2025-01-07 14:15:05 [RateCDR] => 1 ) [2025-01-07 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:15:05' and `end` < '2025-01-07 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:15:28] Production.INFO: count ==4985 [2025-01-07 14:15:30] Production.ERROR: pbx CDR StartTime 2025-01-07 11:15:05 - End Time 2025-01-07 14:15:05 [2025-01-07 14:15:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195446', 'tblTempUsageDetail_20' ) start [2025-01-07 14:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195446', 'tblTempUsageDetail_20' ) end [2025-01-07 14:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195446', 'tblTempVendorCDR_20' ) start [2025-01-07 14:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195446', 'tblTempVendorCDR_20' ) end [2025-01-07 14:15:30] Production.INFO: ProcessCDR(1,14195446,1,1,2) [2025-01-07 14:15:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:15:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:15:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195446', 'tblTempUsageDetail_20' ) start [2025-01-07 14:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195446', 'tblTempUsageDetail_20' ) end [2025-01-07 14:15:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:15:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:15:34] Production.INFO: ==16966== Releasing lock... [2025-01-07 14:15:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:15:34] Production.INFO: 65.25 MB #Memory Used# [2025-01-07 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:16:05 [end_date_ymd] => 2025-01-07 14:16:05 [RateCDR] => 1 ) [2025-01-07 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:16:05' and `end` < '2025-01-07 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:16:27] Production.INFO: count ==4985 [2025-01-07 14:16:28] Production.ERROR: pbx CDR StartTime 2025-01-07 11:16:05 - End Time 2025-01-07 14:16:05 [2025-01-07 14:16:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195451', 'tblTempUsageDetail_20' ) start [2025-01-07 14:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195451', 'tblTempUsageDetail_20' ) end [2025-01-07 14:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195451', 'tblTempVendorCDR_20' ) start [2025-01-07 14:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195451', 'tblTempVendorCDR_20' ) end [2025-01-07 14:16:29] Production.INFO: ProcessCDR(1,14195451,1,1,2) [2025-01-07 14:16:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:16:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:16:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:16:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:16:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195451', 'tblTempUsageDetail_20' ) start [2025-01-07 14:16:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195451', 'tblTempUsageDetail_20' ) end [2025-01-07 14:16:33] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:16:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:16:33] Production.INFO: ==17038== Releasing lock... [2025-01-07 14:16:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:16:33] Production.INFO: 65.25 MB #Memory Used# [2025-01-07 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:17:05 [end_date_ymd] => 2025-01-07 14:17:05 [RateCDR] => 1 ) [2025-01-07 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:17:05' and `end` < '2025-01-07 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:17:19] Production.INFO: count ==4971 [2025-01-07 14:17:21] Production.ERROR: pbx CDR StartTime 2025-01-07 11:17:05 - End Time 2025-01-07 14:17:05 [2025-01-07 14:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195456', 'tblTempUsageDetail_20' ) start [2025-01-07 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195456', 'tblTempUsageDetail_20' ) end [2025-01-07 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195456', 'tblTempVendorCDR_20' ) start [2025-01-07 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195456', 'tblTempVendorCDR_20' ) end [2025-01-07 14:17:21] Production.INFO: ProcessCDR(1,14195456,1,1,2) [2025-01-07 14:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195456', 'tblTempUsageDetail_20' ) start [2025-01-07 14:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195456', 'tblTempUsageDetail_20' ) end [2025-01-07 14:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:17:25] Production.INFO: ==17110== Releasing lock... [2025-01-07 14:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:17:25] Production.INFO: 65.25 MB #Memory Used# [2025-01-07 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:18:05 [end_date_ymd] => 2025-01-07 14:18:05 [RateCDR] => 1 ) [2025-01-07 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:18:05' and `end` < '2025-01-07 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:18:18] Production.INFO: count ==4969 [2025-01-07 14:18:20] Production.ERROR: pbx CDR StartTime 2025-01-07 11:18:05 - End Time 2025-01-07 14:18:05 [2025-01-07 14:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195461', 'tblTempUsageDetail_20' ) start [2025-01-07 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195461', 'tblTempUsageDetail_20' ) end [2025-01-07 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195461', 'tblTempVendorCDR_20' ) start [2025-01-07 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195461', 'tblTempVendorCDR_20' ) end [2025-01-07 14:18:20] Production.INFO: ProcessCDR(1,14195461,1,1,2) [2025-01-07 14:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195461', 'tblTempUsageDetail_20' ) start [2025-01-07 14:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195461', 'tblTempUsageDetail_20' ) end [2025-01-07 14:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:18:25] Production.INFO: ==17181== Releasing lock... [2025-01-07 14:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:18:25] Production.INFO: 65.25 MB #Memory Used# [2025-01-07 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:19:05 [end_date_ymd] => 2025-01-07 14:19:05 [RateCDR] => 1 ) [2025-01-07 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:19:05' and `end` < '2025-01-07 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:19:19] Production.INFO: count ==4968 [2025-01-07 14:19:21] Production.ERROR: pbx CDR StartTime 2025-01-07 11:19:05 - End Time 2025-01-07 14:19:05 [2025-01-07 14:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195466', 'tblTempUsageDetail_20' ) start [2025-01-07 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195466', 'tblTempUsageDetail_20' ) end [2025-01-07 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195466', 'tblTempVendorCDR_20' ) start [2025-01-07 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195466', 'tblTempVendorCDR_20' ) end [2025-01-07 14:19:21] Production.INFO: ProcessCDR(1,14195466,1,1,2) [2025-01-07 14:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195466', 'tblTempUsageDetail_20' ) start [2025-01-07 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195466', 'tblTempUsageDetail_20' ) end [2025-01-07 14:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:19:26] Production.INFO: ==17252== Releasing lock... [2025-01-07 14:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:19:26] Production.INFO: 65.25 MB #Memory Used# [2025-01-07 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:20:05 [end_date_ymd] => 2025-01-07 14:20:05 [RateCDR] => 1 ) [2025-01-07 14:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:20:05' and `end` < '2025-01-07 14:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:20:19] Production.INFO: count ==4945 [2025-01-07 14:20:20] Production.ERROR: pbx CDR StartTime 2025-01-07 11:20:05 - End Time 2025-01-07 14:20:05 [2025-01-07 14:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195471', 'tblTempUsageDetail_20' ) start [2025-01-07 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195471', 'tblTempUsageDetail_20' ) end [2025-01-07 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195471', 'tblTempVendorCDR_20' ) start [2025-01-07 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195471', 'tblTempVendorCDR_20' ) end [2025-01-07 14:20:21] Production.INFO: ProcessCDR(1,14195471,1,1,2) [2025-01-07 14:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195471', 'tblTempUsageDetail_20' ) start [2025-01-07 14:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195471', 'tblTempUsageDetail_20' ) end [2025-01-07 14:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:20:25] Production.INFO: ==17324== Releasing lock... [2025-01-07 14:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:20:25] Production.INFO: 65 MB #Memory Used# [2025-01-07 14:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:21:04 [end_date_ymd] => 2025-01-07 14:21:04 [RateCDR] => 1 ) [2025-01-07 14:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:21:04' and `end` < '2025-01-07 14:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:21:20] Production.INFO: count ==4884 [2025-01-07 14:21:22] Production.ERROR: pbx CDR StartTime 2025-01-07 11:21:04 - End Time 2025-01-07 14:21:04 [2025-01-07 14:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195477', 'tblTempUsageDetail_20' ) start [2025-01-07 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195477', 'tblTempUsageDetail_20' ) end [2025-01-07 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195477', 'tblTempVendorCDR_20' ) start [2025-01-07 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195477', 'tblTempVendorCDR_20' ) end [2025-01-07 14:21:22] Production.INFO: ProcessCDR(1,14195477,1,1,2) [2025-01-07 14:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195477', 'tblTempUsageDetail_20' ) start [2025-01-07 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195477', 'tblTempUsageDetail_20' ) end [2025-01-07 14:21:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:21:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:21:27] Production.INFO: ==17398== Releasing lock... [2025-01-07 14:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:21:27] Production.INFO: 64.5 MB #Memory Used# [2025-01-07 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:22:05 [end_date_ymd] => 2025-01-07 14:22:05 [RateCDR] => 1 ) [2025-01-07 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:22:05' and `end` < '2025-01-07 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:22:20] Production.INFO: count ==4865 [2025-01-07 14:22:22] Production.ERROR: pbx CDR StartTime 2025-01-07 11:22:05 - End Time 2025-01-07 14:22:05 [2025-01-07 14:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195482', 'tblTempUsageDetail_20' ) start [2025-01-07 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195482', 'tblTempUsageDetail_20' ) end [2025-01-07 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195482', 'tblTempVendorCDR_20' ) start [2025-01-07 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195482', 'tblTempVendorCDR_20' ) end [2025-01-07 14:22:22] Production.INFO: ProcessCDR(1,14195482,1,1,2) [2025-01-07 14:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195482', 'tblTempUsageDetail_20' ) start [2025-01-07 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195482', 'tblTempUsageDetail_20' ) end [2025-01-07 14:22:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:22:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:22:27] Production.INFO: ==17467== Releasing lock... [2025-01-07 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:22:27] Production.INFO: 64.5 MB #Memory Used# [2025-01-07 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:23:05 [end_date_ymd] => 2025-01-07 14:23:05 [RateCDR] => 1 ) [2025-01-07 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:23:05' and `end` < '2025-01-07 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:23:23] Production.INFO: count ==4856 [2025-01-07 14:23:24] Production.ERROR: pbx CDR StartTime 2025-01-07 11:23:05 - End Time 2025-01-07 14:23:05 [2025-01-07 14:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195487', 'tblTempUsageDetail_20' ) start [2025-01-07 14:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195487', 'tblTempUsageDetail_20' ) end [2025-01-07 14:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195487', 'tblTempVendorCDR_20' ) start [2025-01-07 14:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195487', 'tblTempVendorCDR_20' ) end [2025-01-07 14:23:25] Production.INFO: ProcessCDR(1,14195487,1,1,2) [2025-01-07 14:23:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:23:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:23:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195487', 'tblTempUsageDetail_20' ) start [2025-01-07 14:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195487', 'tblTempUsageDetail_20' ) end [2025-01-07 14:23:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:23:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:23:29] Production.INFO: ==17542== Releasing lock... [2025-01-07 14:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:23:29] Production.INFO: 64.25 MB #Memory Used# [2025-01-07 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:24:05 [end_date_ymd] => 2025-01-07 14:24:05 [RateCDR] => 1 ) [2025-01-07 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:24:05' and `end` < '2025-01-07 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:24:21] Production.INFO: count ==4843 [2025-01-07 14:24:23] Production.ERROR: pbx CDR StartTime 2025-01-07 11:24:05 - End Time 2025-01-07 14:24:05 [2025-01-07 14:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195492', 'tblTempUsageDetail_20' ) start [2025-01-07 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195492', 'tblTempUsageDetail_20' ) end [2025-01-07 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195492', 'tblTempVendorCDR_20' ) start [2025-01-07 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195492', 'tblTempVendorCDR_20' ) end [2025-01-07 14:24:23] Production.INFO: ProcessCDR(1,14195492,1,1,2) [2025-01-07 14:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195492', 'tblTempUsageDetail_20' ) start [2025-01-07 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195492', 'tblTempUsageDetail_20' ) end [2025-01-07 14:24:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:24:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:24:27] Production.INFO: ==17612== Releasing lock... [2025-01-07 14:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:24:27] Production.INFO: 64.25 MB #Memory Used# [2025-01-07 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:25:05 [end_date_ymd] => 2025-01-07 14:25:05 [RateCDR] => 1 ) [2025-01-07 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:25:05' and `end` < '2025-01-07 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:25:19] Production.INFO: count ==4834 [2025-01-07 14:25:20] Production.ERROR: pbx CDR StartTime 2025-01-07 11:25:05 - End Time 2025-01-07 14:25:05 [2025-01-07 14:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195497', 'tblTempUsageDetail_20' ) start [2025-01-07 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195497', 'tblTempUsageDetail_20' ) end [2025-01-07 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195497', 'tblTempVendorCDR_20' ) start [2025-01-07 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195497', 'tblTempVendorCDR_20' ) end [2025-01-07 14:25:20] Production.INFO: ProcessCDR(1,14195497,1,1,2) [2025-01-07 14:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195497', 'tblTempUsageDetail_20' ) start [2025-01-07 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195497', 'tblTempUsageDetail_20' ) end [2025-01-07 14:25:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:25:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:25:25] Production.INFO: ==17722== Releasing lock... [2025-01-07 14:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:25:25] Production.INFO: 64.25 MB #Memory Used# [2025-01-07 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:26:05 [end_date_ymd] => 2025-01-07 14:26:05 [RateCDR] => 1 ) [2025-01-07 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:26:05' and `end` < '2025-01-07 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:26:26] Production.INFO: count ==4823 [2025-01-07 14:26:28] Production.ERROR: pbx CDR StartTime 2025-01-07 11:26:05 - End Time 2025-01-07 14:26:05 [2025-01-07 14:26:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195502', 'tblTempUsageDetail_20' ) start [2025-01-07 14:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195502', 'tblTempUsageDetail_20' ) end [2025-01-07 14:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195502', 'tblTempVendorCDR_20' ) start [2025-01-07 14:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195502', 'tblTempVendorCDR_20' ) end [2025-01-07 14:26:28] Production.INFO: ProcessCDR(1,14195502,1,1,2) [2025-01-07 14:26:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:26:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:26:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:26:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195502', 'tblTempUsageDetail_20' ) start [2025-01-07 14:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195502', 'tblTempUsageDetail_20' ) end [2025-01-07 14:26:32] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:26:32] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:26:33] Production.INFO: ==17792== Releasing lock... [2025-01-07 14:26:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:26:33] Production.INFO: 64 MB #Memory Used# [2025-01-07 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:27:05 [end_date_ymd] => 2025-01-07 14:27:05 [RateCDR] => 1 ) [2025-01-07 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:27:05' and `end` < '2025-01-07 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:27:24] Production.INFO: count ==4820 [2025-01-07 14:27:26] Production.ERROR: pbx CDR StartTime 2025-01-07 11:27:05 - End Time 2025-01-07 14:27:05 [2025-01-07 14:27:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195507', 'tblTempUsageDetail_20' ) start [2025-01-07 14:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195507', 'tblTempUsageDetail_20' ) end [2025-01-07 14:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195507', 'tblTempVendorCDR_20' ) start [2025-01-07 14:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195507', 'tblTempVendorCDR_20' ) end [2025-01-07 14:27:26] Production.INFO: ProcessCDR(1,14195507,1,1,2) [2025-01-07 14:27:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:27:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:27:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195507', 'tblTempUsageDetail_20' ) start [2025-01-07 14:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195507', 'tblTempUsageDetail_20' ) end [2025-01-07 14:27:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:27:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:27:30] Production.INFO: ==17863== Releasing lock... [2025-01-07 14:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:27:30] Production.INFO: 64 MB #Memory Used# [2025-01-07 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:28:05 [end_date_ymd] => 2025-01-07 14:28:05 [RateCDR] => 1 ) [2025-01-07 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:28:05' and `end` < '2025-01-07 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:28:24] Production.INFO: count ==4825 [2025-01-07 14:28:25] Production.ERROR: pbx CDR StartTime 2025-01-07 11:28:05 - End Time 2025-01-07 14:28:05 [2025-01-07 14:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195512', 'tblTempUsageDetail_20' ) start [2025-01-07 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195512', 'tblTempUsageDetail_20' ) end [2025-01-07 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195512', 'tblTempVendorCDR_20' ) start [2025-01-07 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195512', 'tblTempVendorCDR_20' ) end [2025-01-07 14:28:26] Production.INFO: ProcessCDR(1,14195512,1,1,2) [2025-01-07 14:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195512', 'tblTempUsageDetail_20' ) start [2025-01-07 14:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195512', 'tblTempUsageDetail_20' ) end [2025-01-07 14:28:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:28:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:28:30] Production.INFO: ==17933== Releasing lock... [2025-01-07 14:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:28:30] Production.INFO: 64.25 MB #Memory Used# [2025-01-07 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:29:05 [end_date_ymd] => 2025-01-07 14:29:05 [RateCDR] => 1 ) [2025-01-07 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:29:05' and `end` < '2025-01-07 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:29:18] Production.INFO: count ==4822 [2025-01-07 14:29:20] Production.ERROR: pbx CDR StartTime 2025-01-07 11:29:05 - End Time 2025-01-07 14:29:05 [2025-01-07 14:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195517', 'tblTempUsageDetail_20' ) start [2025-01-07 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195517', 'tblTempUsageDetail_20' ) end [2025-01-07 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195517', 'tblTempVendorCDR_20' ) start [2025-01-07 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195517', 'tblTempVendorCDR_20' ) end [2025-01-07 14:29:20] Production.INFO: ProcessCDR(1,14195517,1,1,2) [2025-01-07 14:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195517', 'tblTempUsageDetail_20' ) start [2025-01-07 14:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195517', 'tblTempUsageDetail_20' ) end [2025-01-07 14:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:29:24] Production.INFO: ==18006== Releasing lock... [2025-01-07 14:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:29:24] Production.INFO: 64 MB #Memory Used# [2025-01-07 14:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:30:05 [end_date_ymd] => 2025-01-07 14:30:05 [RateCDR] => 1 ) [2025-01-07 14:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:30:05' and `end` < '2025-01-07 14:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:30:25] Production.INFO: count ==4826 [2025-01-07 14:30:27] Production.ERROR: pbx CDR StartTime 2025-01-07 11:30:05 - End Time 2025-01-07 14:30:05 [2025-01-07 14:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195523', 'tblTempUsageDetail_20' ) start [2025-01-07 14:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195523', 'tblTempUsageDetail_20' ) end [2025-01-07 14:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195523', 'tblTempVendorCDR_20' ) start [2025-01-07 14:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195523', 'tblTempVendorCDR_20' ) end [2025-01-07 14:30:27] Production.INFO: ProcessCDR(1,14195523,1,1,2) [2025-01-07 14:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195523', 'tblTempUsageDetail_20' ) start [2025-01-07 14:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195523', 'tblTempUsageDetail_20' ) end [2025-01-07 14:30:32] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:30:32] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:30:32] Production.INFO: ==18079== Releasing lock... [2025-01-07 14:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:30:32] Production.INFO: 64 MB #Memory Used# [2025-01-07 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:31:05 [end_date_ymd] => 2025-01-07 14:31:05 [RateCDR] => 1 ) [2025-01-07 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:31:05' and `end` < '2025-01-07 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:31:26] Production.INFO: count ==4791 [2025-01-07 14:31:28] Production.ERROR: pbx CDR StartTime 2025-01-07 11:31:05 - End Time 2025-01-07 14:31:05 [2025-01-07 14:31:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195528', 'tblTempUsageDetail_20' ) start [2025-01-07 14:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195528', 'tblTempUsageDetail_20' ) end [2025-01-07 14:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195528', 'tblTempVendorCDR_20' ) start [2025-01-07 14:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195528', 'tblTempVendorCDR_20' ) end [2025-01-07 14:31:28] Production.INFO: ProcessCDR(1,14195528,1,1,2) [2025-01-07 14:31:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:31:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:31:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:31:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195528', 'tblTempUsageDetail_20' ) start [2025-01-07 14:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195528', 'tblTempUsageDetail_20' ) end [2025-01-07 14:31:33] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:31:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:31:33] Production.INFO: ==18151== Releasing lock... [2025-01-07 14:31:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:31:33] Production.INFO: 63.75 MB #Memory Used# [2025-01-07 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:32:05 [end_date_ymd] => 2025-01-07 14:32:05 [RateCDR] => 1 ) [2025-01-07 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:32:05' and `end` < '2025-01-07 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:32:28] Production.INFO: count ==4815 [2025-01-07 14:32:30] Production.ERROR: pbx CDR StartTime 2025-01-07 11:32:05 - End Time 2025-01-07 14:32:05 [2025-01-07 14:32:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195533', 'tblTempUsageDetail_20' ) start [2025-01-07 14:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195533', 'tblTempUsageDetail_20' ) end [2025-01-07 14:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195533', 'tblTempVendorCDR_20' ) start [2025-01-07 14:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195533', 'tblTempVendorCDR_20' ) end [2025-01-07 14:32:30] Production.INFO: ProcessCDR(1,14195533,1,1,2) [2025-01-07 14:32:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:32:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:32:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:32:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195533', 'tblTempUsageDetail_20' ) start [2025-01-07 14:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195533', 'tblTempUsageDetail_20' ) end [2025-01-07 14:32:35] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:32:35] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:32:35] Production.INFO: ==18222== Releasing lock... [2025-01-07 14:32:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:32:35] Production.INFO: 64 MB #Memory Used# [2025-01-07 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:33:05 [end_date_ymd] => 2025-01-07 14:33:05 [RateCDR] => 1 ) [2025-01-07 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:33:05' and `end` < '2025-01-07 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:33:22] Production.INFO: count ==4830 [2025-01-07 14:33:24] Production.ERROR: pbx CDR StartTime 2025-01-07 11:33:05 - End Time 2025-01-07 14:33:05 [2025-01-07 14:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195538', 'tblTempUsageDetail_20' ) start [2025-01-07 14:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195538', 'tblTempUsageDetail_20' ) end [2025-01-07 14:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195538', 'tblTempVendorCDR_20' ) start [2025-01-07 14:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195538', 'tblTempVendorCDR_20' ) end [2025-01-07 14:33:24] Production.INFO: ProcessCDR(1,14195538,1,1,2) [2025-01-07 14:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195538', 'tblTempUsageDetail_20' ) start [2025-01-07 14:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195538', 'tblTempUsageDetail_20' ) end [2025-01-07 14:33:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:33:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:33:29] Production.INFO: ==18294== Releasing lock... [2025-01-07 14:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:33:29] Production.INFO: 64.25 MB #Memory Used# [2025-01-07 14:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:34:04 [end_date_ymd] => 2025-01-07 14:34:04 [RateCDR] => 1 ) [2025-01-07 14:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:34:04' and `end` < '2025-01-07 14:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:34:28] Production.INFO: count ==4851 [2025-01-07 14:34:30] Production.ERROR: pbx CDR StartTime 2025-01-07 11:34:04 - End Time 2025-01-07 14:34:04 [2025-01-07 14:34:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195543', 'tblTempUsageDetail_20' ) start [2025-01-07 14:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195543', 'tblTempUsageDetail_20' ) end [2025-01-07 14:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195543', 'tblTempVendorCDR_20' ) start [2025-01-07 14:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195543', 'tblTempVendorCDR_20' ) end [2025-01-07 14:34:30] Production.INFO: ProcessCDR(1,14195543,1,1,2) [2025-01-07 14:34:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:34:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:34:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:34:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195543', 'tblTempUsageDetail_20' ) start [2025-01-07 14:34:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195543', 'tblTempUsageDetail_20' ) end [2025-01-07 14:34:35] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:34:35] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:34:35] Production.INFO: ==18363== Releasing lock... [2025-01-07 14:34:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:34:35] Production.INFO: 64.25 MB #Memory Used# [2025-01-07 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:35:05 [end_date_ymd] => 2025-01-07 14:35:05 [RateCDR] => 1 ) [2025-01-07 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:35:05' and `end` < '2025-01-07 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:35:19] Production.INFO: count ==4890 [2025-01-07 14:35:21] Production.ERROR: pbx CDR StartTime 2025-01-07 11:35:05 - End Time 2025-01-07 14:35:05 [2025-01-07 14:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195548', 'tblTempUsageDetail_20' ) start [2025-01-07 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195548', 'tblTempUsageDetail_20' ) end [2025-01-07 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195548', 'tblTempVendorCDR_20' ) start [2025-01-07 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195548', 'tblTempVendorCDR_20' ) end [2025-01-07 14:35:21] Production.INFO: ProcessCDR(1,14195548,1,1,2) [2025-01-07 14:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195548', 'tblTempUsageDetail_20' ) start [2025-01-07 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195548', 'tblTempUsageDetail_20' ) end [2025-01-07 14:35:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:35:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:35:26] Production.INFO: ==18444== Releasing lock... [2025-01-07 14:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:35:26] Production.INFO: 64.5 MB #Memory Used# [2025-01-07 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:36:06 [end_date_ymd] => 2025-01-07 14:36:06 [RateCDR] => 1 ) [2025-01-07 14:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:36:06' and `end` < '2025-01-07 14:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:36:30] Production.INFO: count ==4979 [2025-01-07 14:36:32] Production.ERROR: pbx CDR StartTime 2025-01-07 11:36:06 - End Time 2025-01-07 14:36:06 [2025-01-07 14:36:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195553', 'tblTempUsageDetail_20' ) start [2025-01-07 14:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195553', 'tblTempUsageDetail_20' ) end [2025-01-07 14:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195553', 'tblTempVendorCDR_20' ) start [2025-01-07 14:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195553', 'tblTempVendorCDR_20' ) end [2025-01-07 14:36:32] Production.INFO: ProcessCDR(1,14195553,1,1,2) [2025-01-07 14:36:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:36:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:36:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:36:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:36:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195553', 'tblTempUsageDetail_20' ) start [2025-01-07 14:36:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195553', 'tblTempUsageDetail_20' ) end [2025-01-07 14:36:37] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:36:37] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:36:37] Production.INFO: ==18518== Releasing lock... [2025-01-07 14:36:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:36:37] Production.INFO: 65.25 MB #Memory Used# [2025-01-07 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:37:05 [end_date_ymd] => 2025-01-07 14:37:05 [RateCDR] => 1 ) [2025-01-07 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:37:05' and `end` < '2025-01-07 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:37:24] Production.INFO: count ==4980 [2025-01-07 14:37:26] Production.ERROR: pbx CDR StartTime 2025-01-07 11:37:05 - End Time 2025-01-07 14:37:05 [2025-01-07 14:37:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195557', 'tblTempUsageDetail_20' ) start [2025-01-07 14:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195557', 'tblTempUsageDetail_20' ) end [2025-01-07 14:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195557', 'tblTempVendorCDR_20' ) start [2025-01-07 14:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195557', 'tblTempVendorCDR_20' ) end [2025-01-07 14:37:26] Production.INFO: ProcessCDR(1,14195557,1,1,2) [2025-01-07 14:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195557', 'tblTempUsageDetail_20' ) start [2025-01-07 14:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195557', 'tblTempUsageDetail_20' ) end [2025-01-07 14:37:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:37:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:37:31] Production.INFO: ==18591== Releasing lock... [2025-01-07 14:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:37:31] Production.INFO: 65.25 MB #Memory Used# [2025-01-07 14:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:38:04 [end_date_ymd] => 2025-01-07 14:38:04 [RateCDR] => 1 ) [2025-01-07 14:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:38:04' and `end` < '2025-01-07 14:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:38:21] Production.INFO: count ==4974 [2025-01-07 14:38:23] Production.ERROR: pbx CDR StartTime 2025-01-07 11:38:04 - End Time 2025-01-07 14:38:04 [2025-01-07 14:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195563', 'tblTempUsageDetail_20' ) start [2025-01-07 14:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195563', 'tblTempUsageDetail_20' ) end [2025-01-07 14:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195563', 'tblTempVendorCDR_20' ) start [2025-01-07 14:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195563', 'tblTempVendorCDR_20' ) end [2025-01-07 14:38:23] Production.INFO: ProcessCDR(1,14195563,1,1,2) [2025-01-07 14:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195563', 'tblTempUsageDetail_20' ) start [2025-01-07 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195563', 'tblTempUsageDetail_20' ) end [2025-01-07 14:38:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:38:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:38:27] Production.INFO: ==18662== Releasing lock... [2025-01-07 14:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:38:27] Production.INFO: 65.25 MB #Memory Used# [2025-01-07 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:39:05 [end_date_ymd] => 2025-01-07 14:39:05 [RateCDR] => 1 ) [2025-01-07 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:39:05' and `end` < '2025-01-07 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:39:22] Production.INFO: count ==4988 [2025-01-07 14:39:24] Production.ERROR: pbx CDR StartTime 2025-01-07 11:39:05 - End Time 2025-01-07 14:39:05 [2025-01-07 14:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195568', 'tblTempUsageDetail_20' ) start [2025-01-07 14:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195568', 'tblTempUsageDetail_20' ) end [2025-01-07 14:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195568', 'tblTempVendorCDR_20' ) start [2025-01-07 14:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195568', 'tblTempVendorCDR_20' ) end [2025-01-07 14:39:24] Production.INFO: ProcessCDR(1,14195568,1,1,2) [2025-01-07 14:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195568', 'tblTempUsageDetail_20' ) start [2025-01-07 14:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195568', 'tblTempUsageDetail_20' ) end [2025-01-07 14:39:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:39:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:39:29] Production.INFO: ==18732== Releasing lock... [2025-01-07 14:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:39:29] Production.INFO: 65.25 MB #Memory Used# [2025-01-07 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:40:05 [end_date_ymd] => 2025-01-07 14:40:05 [RateCDR] => 1 ) [2025-01-07 14:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:40:05' and `end` < '2025-01-07 14:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:40:23] Production.INFO: count ==5021 [2025-01-07 14:40:25] Production.ERROR: pbx CDR StartTime 2025-01-07 11:40:05 - End Time 2025-01-07 14:40:05 [2025-01-07 14:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195574', 'tblTempUsageDetail_20' ) start [2025-01-07 14:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195574', 'tblTempUsageDetail_20' ) end [2025-01-07 14:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195574', 'tblTempVendorCDR_20' ) start [2025-01-07 14:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195574', 'tblTempVendorCDR_20' ) end [2025-01-07 14:40:26] Production.INFO: ProcessCDR(1,14195574,1,1,2) [2025-01-07 14:40:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195574', 'tblTempUsageDetail_20' ) start [2025-01-07 14:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195574', 'tblTempUsageDetail_20' ) end [2025-01-07 14:40:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:40:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:40:30] Production.INFO: ==18805== Releasing lock... [2025-01-07 14:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:40:30] Production.INFO: 65.5 MB #Memory Used# [2025-01-07 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:41:05 [end_date_ymd] => 2025-01-07 14:41:05 [RateCDR] => 1 ) [2025-01-07 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:41:05' and `end` < '2025-01-07 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:41:28] Production.INFO: count ==5053 [2025-01-07 14:41:30] Production.ERROR: pbx CDR StartTime 2025-01-07 11:41:05 - End Time 2025-01-07 14:41:05 [2025-01-07 14:41:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195579', 'tblTempUsageDetail_20' ) start [2025-01-07 14:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195579', 'tblTempUsageDetail_20' ) end [2025-01-07 14:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195579', 'tblTempVendorCDR_20' ) start [2025-01-07 14:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195579', 'tblTempVendorCDR_20' ) end [2025-01-07 14:41:30] Production.INFO: ProcessCDR(1,14195579,1,1,2) [2025-01-07 14:41:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:41:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:41:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:41:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195579', 'tblTempUsageDetail_20' ) start [2025-01-07 14:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195579', 'tblTempUsageDetail_20' ) end [2025-01-07 14:41:35] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:41:35] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:41:35] Production.INFO: ==18919== Releasing lock... [2025-01-07 14:41:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:41:35] Production.INFO: 65.75 MB #Memory Used# [2025-01-07 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:42:05 [end_date_ymd] => 2025-01-07 14:42:05 [RateCDR] => 1 ) [2025-01-07 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:42:05' and `end` < '2025-01-07 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:42:23] Production.INFO: count ==5070 [2025-01-07 14:42:25] Production.ERROR: pbx CDR StartTime 2025-01-07 11:42:05 - End Time 2025-01-07 14:42:05 [2025-01-07 14:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195584', 'tblTempUsageDetail_20' ) start [2025-01-07 14:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195584', 'tblTempUsageDetail_20' ) end [2025-01-07 14:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195584', 'tblTempVendorCDR_20' ) start [2025-01-07 14:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195584', 'tblTempVendorCDR_20' ) end [2025-01-07 14:42:25] Production.INFO: ProcessCDR(1,14195584,1,1,2) [2025-01-07 14:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195584', 'tblTempUsageDetail_20' ) start [2025-01-07 14:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195584', 'tblTempUsageDetail_20' ) end [2025-01-07 14:42:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:42:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:42:30] Production.INFO: ==18989== Releasing lock... [2025-01-07 14:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:42:30] Production.INFO: 66 MB #Memory Used# [2025-01-07 14:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:43:04 [end_date_ymd] => 2025-01-07 14:43:04 [RateCDR] => 1 ) [2025-01-07 14:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:43:04' and `end` < '2025-01-07 14:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:43:28] Production.INFO: count ==5073 [2025-01-07 14:43:30] Production.ERROR: pbx CDR StartTime 2025-01-07 11:43:04 - End Time 2025-01-07 14:43:04 [2025-01-07 14:43:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195589', 'tblTempUsageDetail_20' ) start [2025-01-07 14:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195589', 'tblTempUsageDetail_20' ) end [2025-01-07 14:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195589', 'tblTempVendorCDR_20' ) start [2025-01-07 14:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195589', 'tblTempVendorCDR_20' ) end [2025-01-07 14:43:30] Production.INFO: ProcessCDR(1,14195589,1,1,2) [2025-01-07 14:43:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:43:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:43:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:43:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:43:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195589', 'tblTempUsageDetail_20' ) start [2025-01-07 14:43:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195589', 'tblTempUsageDetail_20' ) end [2025-01-07 14:43:35] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:43:35] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:43:35] Production.INFO: ==19092== Releasing lock... [2025-01-07 14:43:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:43:35] Production.INFO: 66 MB #Memory Used# [2025-01-07 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:44:05 [end_date_ymd] => 2025-01-07 14:44:05 [RateCDR] => 1 ) [2025-01-07 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:44:05' and `end` < '2025-01-07 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:44:37] Production.INFO: count ==5075 [2025-01-07 14:44:39] Production.ERROR: pbx CDR StartTime 2025-01-07 11:44:05 - End Time 2025-01-07 14:44:05 [2025-01-07 14:44:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:44:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195594', 'tblTempUsageDetail_20' ) start [2025-01-07 14:44:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195594', 'tblTempUsageDetail_20' ) end [2025-01-07 14:44:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195594', 'tblTempVendorCDR_20' ) start [2025-01-07 14:44:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195594', 'tblTempVendorCDR_20' ) end [2025-01-07 14:44:39] Production.INFO: ProcessCDR(1,14195594,1,1,2) [2025-01-07 14:44:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:44:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:44:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:44:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:44:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195594', 'tblTempUsageDetail_20' ) start [2025-01-07 14:44:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195594', 'tblTempUsageDetail_20' ) end [2025-01-07 14:44:44] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:44:44] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:44:44] Production.INFO: ==19206== Releasing lock... [2025-01-07 14:44:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:44:44] Production.INFO: 66 MB #Memory Used# [2025-01-07 14:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:45:04 [end_date_ymd] => 2025-01-07 14:45:04 [RateCDR] => 1 ) [2025-01-07 14:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:45:04' and `end` < '2025-01-07 14:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:45:37] Production.INFO: count ==5081 [2025-01-07 14:45:39] Production.ERROR: pbx CDR StartTime 2025-01-07 11:45:04 - End Time 2025-01-07 14:45:04 [2025-01-07 14:45:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:45:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195599', 'tblTempUsageDetail_20' ) start [2025-01-07 14:45:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195599', 'tblTempUsageDetail_20' ) end [2025-01-07 14:45:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195599', 'tblTempVendorCDR_20' ) start [2025-01-07 14:45:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195599', 'tblTempVendorCDR_20' ) end [2025-01-07 14:45:39] Production.INFO: ProcessCDR(1,14195599,1,1,2) [2025-01-07 14:45:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:45:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:45:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:45:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:45:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195599', 'tblTempUsageDetail_20' ) start [2025-01-07 14:45:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195599', 'tblTempUsageDetail_20' ) end [2025-01-07 14:45:44] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:45:44] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:45:44] Production.INFO: ==19288== Releasing lock... [2025-01-07 14:45:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:45:44] Production.INFO: 66 MB #Memory Used# [2025-01-07 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:46:05 [end_date_ymd] => 2025-01-07 14:46:05 [RateCDR] => 1 ) [2025-01-07 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:46:05' and `end` < '2025-01-07 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:46:37] Production.INFO: count ==5166 [2025-01-07 14:46:40] Production.ERROR: pbx CDR StartTime 2025-01-07 11:46:05 - End Time 2025-01-07 14:46:05 [2025-01-07 14:46:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:46:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195604', 'tblTempUsageDetail_20' ) start [2025-01-07 14:46:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195604', 'tblTempUsageDetail_20' ) end [2025-01-07 14:46:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195604', 'tblTempVendorCDR_20' ) start [2025-01-07 14:46:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195604', 'tblTempVendorCDR_20' ) end [2025-01-07 14:46:40] Production.INFO: ProcessCDR(1,14195604,1,1,2) [2025-01-07 14:46:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:46:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:46:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:46:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:46:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195604', 'tblTempUsageDetail_20' ) start [2025-01-07 14:46:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195604', 'tblTempUsageDetail_20' ) end [2025-01-07 14:46:45] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:46:45] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:46:45] Production.INFO: ==19359== Releasing lock... [2025-01-07 14:46:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:46:45] Production.INFO: 66.75 MB #Memory Used# [2025-01-07 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:47:05 [end_date_ymd] => 2025-01-07 14:47:05 [RateCDR] => 1 ) [2025-01-07 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:47:05' and `end` < '2025-01-07 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:47:30] Production.INFO: count ==5177 [2025-01-07 14:47:32] Production.ERROR: pbx CDR StartTime 2025-01-07 11:47:05 - End Time 2025-01-07 14:47:05 [2025-01-07 14:47:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195609', 'tblTempUsageDetail_20' ) start [2025-01-07 14:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195609', 'tblTempUsageDetail_20' ) end [2025-01-07 14:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195609', 'tblTempVendorCDR_20' ) start [2025-01-07 14:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195609', 'tblTempVendorCDR_20' ) end [2025-01-07 14:47:32] Production.INFO: ProcessCDR(1,14195609,1,1,2) [2025-01-07 14:47:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:47:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:47:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:47:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:47:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195609', 'tblTempUsageDetail_20' ) start [2025-01-07 14:47:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195609', 'tblTempUsageDetail_20' ) end [2025-01-07 14:47:37] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:47:37] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:47:37] Production.INFO: ==19429== Releasing lock... [2025-01-07 14:47:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:47:37] Production.INFO: 66.75 MB #Memory Used# [2025-01-07 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:48:05 [end_date_ymd] => 2025-01-07 14:48:05 [RateCDR] => 1 ) [2025-01-07 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:48:05' and `end` < '2025-01-07 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:48:32] Production.INFO: count ==5200 [2025-01-07 14:48:34] Production.ERROR: pbx CDR StartTime 2025-01-07 11:48:05 - End Time 2025-01-07 14:48:05 [2025-01-07 14:48:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:48:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195614', 'tblTempUsageDetail_20' ) start [2025-01-07 14:48:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195614', 'tblTempUsageDetail_20' ) end [2025-01-07 14:48:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195614', 'tblTempVendorCDR_20' ) start [2025-01-07 14:48:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195614', 'tblTempVendorCDR_20' ) end [2025-01-07 14:48:34] Production.INFO: ProcessCDR(1,14195614,1,1,2) [2025-01-07 14:48:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:48:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:48:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:48:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:48:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195614', 'tblTempUsageDetail_20' ) start [2025-01-07 14:48:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195614', 'tblTempUsageDetail_20' ) end [2025-01-07 14:48:39] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:48:39] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:48:39] Production.INFO: ==19500== Releasing lock... [2025-01-07 14:48:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:48:39] Production.INFO: 67 MB #Memory Used# [2025-01-07 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:49:05 [end_date_ymd] => 2025-01-07 14:49:05 [RateCDR] => 1 ) [2025-01-07 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:49:05' and `end` < '2025-01-07 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:49:30] Production.INFO: count ==5223 [2025-01-07 14:49:32] Production.ERROR: pbx CDR StartTime 2025-01-07 11:49:05 - End Time 2025-01-07 14:49:05 [2025-01-07 14:49:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195619', 'tblTempUsageDetail_20' ) start [2025-01-07 14:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195619', 'tblTempUsageDetail_20' ) end [2025-01-07 14:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195619', 'tblTempVendorCDR_20' ) start [2025-01-07 14:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195619', 'tblTempVendorCDR_20' ) end [2025-01-07 14:49:32] Production.INFO: ProcessCDR(1,14195619,1,1,2) [2025-01-07 14:49:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:49:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:49:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:49:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:49:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195619', 'tblTempUsageDetail_20' ) start [2025-01-07 14:49:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195619', 'tblTempUsageDetail_20' ) end [2025-01-07 14:49:37] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:49:37] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:49:37] Production.INFO: ==19574== Releasing lock... [2025-01-07 14:49:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:49:37] Production.INFO: 67 MB #Memory Used# [2025-01-07 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:50:05 [end_date_ymd] => 2025-01-07 14:50:05 [RateCDR] => 1 ) [2025-01-07 14:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:50:05' and `end` < '2025-01-07 14:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:50:29] Production.INFO: count ==5254 [2025-01-07 14:50:32] Production.ERROR: pbx CDR StartTime 2025-01-07 11:50:05 - End Time 2025-01-07 14:50:05 [2025-01-07 14:50:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195625', 'tblTempUsageDetail_20' ) start [2025-01-07 14:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195625', 'tblTempUsageDetail_20' ) end [2025-01-07 14:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195625', 'tblTempVendorCDR_20' ) start [2025-01-07 14:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195625', 'tblTempVendorCDR_20' ) end [2025-01-07 14:50:32] Production.INFO: ProcessCDR(1,14195625,1,1,2) [2025-01-07 14:50:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:50:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:50:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:50:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195625', 'tblTempUsageDetail_20' ) start [2025-01-07 14:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195625', 'tblTempUsageDetail_20' ) end [2025-01-07 14:50:36] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:50:37] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:50:37] Production.INFO: ==19651== Releasing lock... [2025-01-07 14:50:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:50:37] Production.INFO: 67.25 MB #Memory Used# [2025-01-07 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:51:05 [end_date_ymd] => 2025-01-07 14:51:05 [RateCDR] => 1 ) [2025-01-07 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:51:05' and `end` < '2025-01-07 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:51:20] Production.INFO: count ==5324 [2025-01-07 14:51:22] Production.ERROR: pbx CDR StartTime 2025-01-07 11:51:05 - End Time 2025-01-07 14:51:05 [2025-01-07 14:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195630', 'tblTempUsageDetail_20' ) start [2025-01-07 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195630', 'tblTempUsageDetail_20' ) end [2025-01-07 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195630', 'tblTempVendorCDR_20' ) start [2025-01-07 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195630', 'tblTempVendorCDR_20' ) end [2025-01-07 14:51:22] Production.INFO: ProcessCDR(1,14195630,1,1,2) [2025-01-07 14:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195630', 'tblTempUsageDetail_20' ) start [2025-01-07 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195630', 'tblTempUsageDetail_20' ) end [2025-01-07 14:51:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:51:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:51:26] Production.INFO: ==19725== Releasing lock... [2025-01-07 14:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:51:26] Production.INFO: 67.75 MB #Memory Used# [2025-01-07 14:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:52:04 [end_date_ymd] => 2025-01-07 14:52:04 [RateCDR] => 1 ) [2025-01-07 14:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:52:04' and `end` < '2025-01-07 14:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:52:29] Production.INFO: count ==5373 [2025-01-07 14:52:31] Production.ERROR: pbx CDR StartTime 2025-01-07 11:52:04 - End Time 2025-01-07 14:52:04 [2025-01-07 14:52:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195635', 'tblTempUsageDetail_20' ) start [2025-01-07 14:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195635', 'tblTempUsageDetail_20' ) end [2025-01-07 14:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195635', 'tblTempVendorCDR_20' ) start [2025-01-07 14:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195635', 'tblTempVendorCDR_20' ) end [2025-01-07 14:52:31] Production.INFO: ProcessCDR(1,14195635,1,1,2) [2025-01-07 14:52:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:52:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:52:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:52:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:52:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195635', 'tblTempUsageDetail_20' ) start [2025-01-07 14:52:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195635', 'tblTempUsageDetail_20' ) end [2025-01-07 14:52:36] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:52:36] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:52:36] Production.INFO: ==19796== Releasing lock... [2025-01-07 14:52:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:52:36] Production.INFO: 68.25 MB #Memory Used# [2025-01-07 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:53:05 [end_date_ymd] => 2025-01-07 14:53:05 [RateCDR] => 1 ) [2025-01-07 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:53:05' and `end` < '2025-01-07 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:53:26] Production.INFO: count ==5394 [2025-01-07 14:53:28] Production.ERROR: pbx CDR StartTime 2025-01-07 11:53:05 - End Time 2025-01-07 14:53:05 [2025-01-07 14:53:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195640', 'tblTempUsageDetail_20' ) start [2025-01-07 14:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195640', 'tblTempUsageDetail_20' ) end [2025-01-07 14:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195640', 'tblTempVendorCDR_20' ) start [2025-01-07 14:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195640', 'tblTempVendorCDR_20' ) end [2025-01-07 14:53:28] Production.INFO: ProcessCDR(1,14195640,1,1,2) [2025-01-07 14:53:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:53:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:53:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:53:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195640', 'tblTempUsageDetail_20' ) start [2025-01-07 14:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195640', 'tblTempUsageDetail_20' ) end [2025-01-07 14:53:33] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:53:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:53:33] Production.INFO: ==19866== Releasing lock... [2025-01-07 14:53:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:53:33] Production.INFO: 68.5 MB #Memory Used# [2025-01-07 14:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:54:04 [end_date_ymd] => 2025-01-07 14:54:04 [RateCDR] => 1 ) [2025-01-07 14:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:54:04' and `end` < '2025-01-07 14:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:54:23] Production.INFO: count ==5416 [2025-01-07 14:54:26] Production.ERROR: pbx CDR StartTime 2025-01-07 11:54:04 - End Time 2025-01-07 14:54:04 [2025-01-07 14:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195645', 'tblTempUsageDetail_20' ) start [2025-01-07 14:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195645', 'tblTempUsageDetail_20' ) end [2025-01-07 14:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195645', 'tblTempVendorCDR_20' ) start [2025-01-07 14:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195645', 'tblTempVendorCDR_20' ) end [2025-01-07 14:54:26] Production.INFO: ProcessCDR(1,14195645,1,1,2) [2025-01-07 14:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:54:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:54:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195645', 'tblTempUsageDetail_20' ) start [2025-01-07 14:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195645', 'tblTempUsageDetail_20' ) end [2025-01-07 14:54:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:54:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:54:30] Production.INFO: ==19938== Releasing lock... [2025-01-07 14:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:54:30] Production.INFO: 68.5 MB #Memory Used# [2025-01-07 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:55:05 [end_date_ymd] => 2025-01-07 14:55:05 [RateCDR] => 1 ) [2025-01-07 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:55:05' and `end` < '2025-01-07 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:55:21] Production.INFO: count ==5423 [2025-01-07 14:55:23] Production.ERROR: pbx CDR StartTime 2025-01-07 11:55:05 - End Time 2025-01-07 14:55:05 [2025-01-07 14:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195650', 'tblTempUsageDetail_20' ) start [2025-01-07 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195650', 'tblTempUsageDetail_20' ) end [2025-01-07 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195650', 'tblTempVendorCDR_20' ) start [2025-01-07 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195650', 'tblTempVendorCDR_20' ) end [2025-01-07 14:55:23] Production.INFO: ProcessCDR(1,14195650,1,1,2) [2025-01-07 14:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195650', 'tblTempUsageDetail_20' ) start [2025-01-07 14:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195650', 'tblTempUsageDetail_20' ) end [2025-01-07 14:55:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:55:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:55:28] Production.INFO: ==20008== Releasing lock... [2025-01-07 14:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:55:28] Production.INFO: 68.5 MB #Memory Used# [2025-01-07 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:56:05 [end_date_ymd] => 2025-01-07 14:56:05 [RateCDR] => 1 ) [2025-01-07 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:56:05' and `end` < '2025-01-07 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:56:31] Production.INFO: count ==5432 [2025-01-07 14:56:33] Production.ERROR: pbx CDR StartTime 2025-01-07 11:56:05 - End Time 2025-01-07 14:56:05 [2025-01-07 14:56:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195655', 'tblTempUsageDetail_20' ) start [2025-01-07 14:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195655', 'tblTempUsageDetail_20' ) end [2025-01-07 14:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195655', 'tblTempVendorCDR_20' ) start [2025-01-07 14:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195655', 'tblTempVendorCDR_20' ) end [2025-01-07 14:56:33] Production.INFO: ProcessCDR(1,14195655,1,1,2) [2025-01-07 14:56:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:56:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:56:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:56:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:56:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195655', 'tblTempUsageDetail_20' ) start [2025-01-07 14:56:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195655', 'tblTempUsageDetail_20' ) end [2025-01-07 14:56:38] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:56:38] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:56:38] Production.INFO: ==20081== Releasing lock... [2025-01-07 14:56:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:56:38] Production.INFO: 68.75 MB #Memory Used# [2025-01-07 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:57:05 [end_date_ymd] => 2025-01-07 14:57:05 [RateCDR] => 1 ) [2025-01-07 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:57:05' and `end` < '2025-01-07 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:57:27] Production.INFO: count ==5518 [2025-01-07 14:57:29] Production.ERROR: pbx CDR StartTime 2025-01-07 11:57:05 - End Time 2025-01-07 14:57:05 [2025-01-07 14:57:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195660', 'tblTempUsageDetail_20' ) start [2025-01-07 14:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195660', 'tblTempUsageDetail_20' ) end [2025-01-07 14:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195660', 'tblTempVendorCDR_20' ) start [2025-01-07 14:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195660', 'tblTempVendorCDR_20' ) end [2025-01-07 14:57:30] Production.INFO: ProcessCDR(1,14195660,1,1,2) [2025-01-07 14:57:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:57:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:57:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:57:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195660', 'tblTempUsageDetail_20' ) start [2025-01-07 14:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195660', 'tblTempUsageDetail_20' ) end [2025-01-07 14:57:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:57:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:57:34] Production.INFO: ==20191== Releasing lock... [2025-01-07 14:57:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:57:34] Production.INFO: 69.25 MB #Memory Used# [2025-01-07 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:58:05 [end_date_ymd] => 2025-01-07 14:58:05 [RateCDR] => 1 ) [2025-01-07 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:58:05' and `end` < '2025-01-07 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:58:26] Production.INFO: count ==5550 [2025-01-07 14:58:28] Production.ERROR: pbx CDR StartTime 2025-01-07 11:58:05 - End Time 2025-01-07 14:58:05 [2025-01-07 14:58:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195665', 'tblTempUsageDetail_20' ) start [2025-01-07 14:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195665', 'tblTempUsageDetail_20' ) end [2025-01-07 14:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195665', 'tblTempVendorCDR_20' ) start [2025-01-07 14:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195665', 'tblTempVendorCDR_20' ) end [2025-01-07 14:58:28] Production.INFO: ProcessCDR(1,14195665,1,1,2) [2025-01-07 14:58:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:58:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:58:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:58:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195665', 'tblTempUsageDetail_20' ) start [2025-01-07 14:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195665', 'tblTempUsageDetail_20' ) end [2025-01-07 14:58:33] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:58:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:58:33] Production.INFO: ==20265== Releasing lock... [2025-01-07 14:58:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:58:33] Production.INFO: 69.5 MB #Memory Used# [2025-01-07 14:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 11:59:04 [end_date_ymd] => 2025-01-07 14:59:04 [RateCDR] => 1 ) [2025-01-07 14:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 11:59:04' and `end` < '2025-01-07 14:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 14:59:27] Production.INFO: count ==5576 [2025-01-07 14:59:29] Production.ERROR: pbx CDR StartTime 2025-01-07 11:59:04 - End Time 2025-01-07 14:59:04 [2025-01-07 14:59:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 14:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195670', 'tblTempUsageDetail_20' ) start [2025-01-07 14:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195670', 'tblTempUsageDetail_20' ) end [2025-01-07 14:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195670', 'tblTempVendorCDR_20' ) start [2025-01-07 14:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195670', 'tblTempVendorCDR_20' ) end [2025-01-07 14:59:29] Production.INFO: ProcessCDR(1,14195670,1,1,2) [2025-01-07 14:59:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:59:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 14:59:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:59:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 14:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195670', 'tblTempUsageDetail_20' ) start [2025-01-07 14:59:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195670', 'tblTempUsageDetail_20' ) end [2025-01-07 14:59:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 14:59:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 14:59:34] Production.INFO: ==20337== Releasing lock... [2025-01-07 14:59:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 14:59:34] Production.INFO: 69.75 MB #Memory Used# [2025-01-07 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:00:05 [end_date_ymd] => 2025-01-07 15:00:05 [RateCDR] => 1 ) [2025-01-07 15:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:00:05' and `end` < '2025-01-07 15:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:00:29] Production.INFO: count ==5581 [2025-01-07 15:00:31] Production.ERROR: pbx CDR StartTime 2025-01-07 12:00:05 - End Time 2025-01-07 15:00:05 [2025-01-07 15:00:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195675', 'tblTempUsageDetail_20' ) start [2025-01-07 15:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195675', 'tblTempUsageDetail_20' ) end [2025-01-07 15:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195675', 'tblTempVendorCDR_20' ) start [2025-01-07 15:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195675', 'tblTempVendorCDR_20' ) end [2025-01-07 15:00:32] Production.INFO: ProcessCDR(1,14195675,1,1,2) [2025-01-07 15:00:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:00:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:00:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195675', 'tblTempUsageDetail_20' ) start [2025-01-07 15:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195675', 'tblTempUsageDetail_20' ) end [2025-01-07 15:00:36] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:00:36] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:00:36] Production.INFO: ==20414== Releasing lock... [2025-01-07 15:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:00:36] Production.INFO: 69.75 MB #Memory Used# [2025-01-07 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:01:05 [end_date_ymd] => 2025-01-07 15:01:05 [RateCDR] => 1 ) [2025-01-07 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:01:05' and `end` < '2025-01-07 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:01:30] Production.INFO: count ==5587 [2025-01-07 15:01:32] Production.ERROR: pbx CDR StartTime 2025-01-07 12:01:05 - End Time 2025-01-07 15:01:05 [2025-01-07 15:01:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195681', 'tblTempUsageDetail_20' ) start [2025-01-07 15:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195681', 'tblTempUsageDetail_20' ) end [2025-01-07 15:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195681', 'tblTempVendorCDR_20' ) start [2025-01-07 15:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195681', 'tblTempVendorCDR_20' ) end [2025-01-07 15:01:32] Production.INFO: ProcessCDR(1,14195681,1,1,2) [2025-01-07 15:01:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:01:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:01:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:01:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:01:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195681', 'tblTempUsageDetail_20' ) start [2025-01-07 15:01:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195681', 'tblTempUsageDetail_20' ) end [2025-01-07 15:01:37] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:01:37] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:01:37] Production.INFO: ==20509== Releasing lock... [2025-01-07 15:01:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:01:37] Production.INFO: 69.75 MB #Memory Used# [2025-01-07 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:02:05 [end_date_ymd] => 2025-01-07 15:02:05 [RateCDR] => 1 ) [2025-01-07 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:02:05' and `end` < '2025-01-07 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:02:34] Production.INFO: count ==5584 [2025-01-07 15:02:36] Production.ERROR: pbx CDR StartTime 2025-01-07 12:02:05 - End Time 2025-01-07 15:02:05 [2025-01-07 15:02:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:02:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195686', 'tblTempUsageDetail_20' ) start [2025-01-07 15:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195686', 'tblTempUsageDetail_20' ) end [2025-01-07 15:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195686', 'tblTempVendorCDR_20' ) start [2025-01-07 15:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195686', 'tblTempVendorCDR_20' ) end [2025-01-07 15:02:37] Production.INFO: ProcessCDR(1,14195686,1,1,2) [2025-01-07 15:02:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:02:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:02:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:02:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:02:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195686', 'tblTempUsageDetail_20' ) start [2025-01-07 15:02:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195686', 'tblTempUsageDetail_20' ) end [2025-01-07 15:02:42] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:02:42] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:02:42] Production.INFO: ==20674== Releasing lock... [2025-01-07 15:02:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:02:42] Production.INFO: 69.75 MB #Memory Used# [2025-01-07 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:03:05 [end_date_ymd] => 2025-01-07 15:03:05 [RateCDR] => 1 ) [2025-01-07 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:03:05' and `end` < '2025-01-07 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:03:27] Production.INFO: count ==5619 [2025-01-07 15:03:30] Production.ERROR: pbx CDR StartTime 2025-01-07 12:03:05 - End Time 2025-01-07 15:03:05 [2025-01-07 15:03:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195691', 'tblTempUsageDetail_20' ) start [2025-01-07 15:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195691', 'tblTempUsageDetail_20' ) end [2025-01-07 15:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195691', 'tblTempVendorCDR_20' ) start [2025-01-07 15:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195691', 'tblTempVendorCDR_20' ) end [2025-01-07 15:03:30] Production.INFO: ProcessCDR(1,14195691,1,1,2) [2025-01-07 15:03:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:03:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:03:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:03:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:03:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195691', 'tblTempUsageDetail_20' ) start [2025-01-07 15:03:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195691', 'tblTempUsageDetail_20' ) end [2025-01-07 15:03:35] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:03:35] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:03:35] Production.INFO: ==20768== Releasing lock... [2025-01-07 15:03:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:03:35] Production.INFO: 70 MB #Memory Used# [2025-01-07 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:04:05 [end_date_ymd] => 2025-01-07 15:04:05 [RateCDR] => 1 ) [2025-01-07 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:04:05' and `end` < '2025-01-07 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:04:31] Production.INFO: count ==5717 [2025-01-07 15:04:33] Production.ERROR: pbx CDR StartTime 2025-01-07 12:04:05 - End Time 2025-01-07 15:04:05 [2025-01-07 15:04:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195696', 'tblTempUsageDetail_20' ) start [2025-01-07 15:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195696', 'tblTempUsageDetail_20' ) end [2025-01-07 15:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195696', 'tblTempVendorCDR_20' ) start [2025-01-07 15:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195696', 'tblTempVendorCDR_20' ) end [2025-01-07 15:04:33] Production.INFO: ProcessCDR(1,14195696,1,1,2) [2025-01-07 15:04:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:04:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:04:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:04:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:04:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195696', 'tblTempUsageDetail_20' ) start [2025-01-07 15:04:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195696', 'tblTempUsageDetail_20' ) end [2025-01-07 15:04:38] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:04:38] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:04:38] Production.INFO: ==20856== Releasing lock... [2025-01-07 15:04:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:04:38] Production.INFO: 70.75 MB #Memory Used# [2025-01-07 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:05:05 [end_date_ymd] => 2025-01-07 15:05:05 [RateCDR] => 1 ) [2025-01-07 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:05:05' and `end` < '2025-01-07 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:05:24] Production.INFO: count ==5718 [2025-01-07 15:05:26] Production.ERROR: pbx CDR StartTime 2025-01-07 12:05:05 - End Time 2025-01-07 15:05:05 [2025-01-07 15:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195701', 'tblTempUsageDetail_20' ) start [2025-01-07 15:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195701', 'tblTempUsageDetail_20' ) end [2025-01-07 15:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195701', 'tblTempVendorCDR_20' ) start [2025-01-07 15:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195701', 'tblTempVendorCDR_20' ) end [2025-01-07 15:05:26] Production.INFO: ProcessCDR(1,14195701,1,1,2) [2025-01-07 15:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195701', 'tblTempUsageDetail_20' ) start [2025-01-07 15:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195701', 'tblTempUsageDetail_20' ) end [2025-01-07 15:05:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:05:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:05:31] Production.INFO: ==21019== Releasing lock... [2025-01-07 15:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:05:31] Production.INFO: 70.75 MB #Memory Used# [2025-01-07 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:06:05 [end_date_ymd] => 2025-01-07 15:06:05 [RateCDR] => 1 ) [2025-01-07 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:06:05' and `end` < '2025-01-07 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:06:39] Production.INFO: count ==5728 [2025-01-07 15:06:41] Production.ERROR: pbx CDR StartTime 2025-01-07 12:06:05 - End Time 2025-01-07 15:06:05 [2025-01-07 15:06:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:06:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195706', 'tblTempUsageDetail_20' ) start [2025-01-07 15:06:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195706', 'tblTempUsageDetail_20' ) end [2025-01-07 15:06:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195706', 'tblTempVendorCDR_20' ) start [2025-01-07 15:06:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195706', 'tblTempVendorCDR_20' ) end [2025-01-07 15:06:41] Production.INFO: ProcessCDR(1,14195706,1,1,2) [2025-01-07 15:06:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:06:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:06:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:06:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:06:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195706', 'tblTempUsageDetail_20' ) start [2025-01-07 15:06:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195706', 'tblTempUsageDetail_20' ) end [2025-01-07 15:06:46] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:06:46] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:06:46] Production.INFO: ==21109== Releasing lock... [2025-01-07 15:06:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:06:46] Production.INFO: 71 MB #Memory Used# [2025-01-07 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:07:05 [end_date_ymd] => 2025-01-07 15:07:05 [RateCDR] => 1 ) [2025-01-07 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:07:05' and `end` < '2025-01-07 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:07:28] Production.INFO: count ==5736 [2025-01-07 15:07:30] Production.ERROR: pbx CDR StartTime 2025-01-07 12:07:05 - End Time 2025-01-07 15:07:05 [2025-01-07 15:07:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195711', 'tblTempUsageDetail_20' ) start [2025-01-07 15:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195711', 'tblTempUsageDetail_20' ) end [2025-01-07 15:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195711', 'tblTempVendorCDR_20' ) start [2025-01-07 15:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195711', 'tblTempVendorCDR_20' ) end [2025-01-07 15:07:31] Production.INFO: ProcessCDR(1,14195711,1,1,2) [2025-01-07 15:07:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:07:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:07:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:07:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:07:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195711', 'tblTempUsageDetail_20' ) start [2025-01-07 15:07:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195711', 'tblTempUsageDetail_20' ) end [2025-01-07 15:07:35] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:07:35] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:07:35] Production.INFO: ==21195== Releasing lock... [2025-01-07 15:07:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:07:35] Production.INFO: 71 MB #Memory Used# [2025-01-07 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:08:05 [end_date_ymd] => 2025-01-07 15:08:05 [RateCDR] => 1 ) [2025-01-07 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:08:05' and `end` < '2025-01-07 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:08:26] Production.INFO: count ==5732 [2025-01-07 15:08:28] Production.ERROR: pbx CDR StartTime 2025-01-07 12:08:05 - End Time 2025-01-07 15:08:05 [2025-01-07 15:08:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195716', 'tblTempUsageDetail_20' ) start [2025-01-07 15:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195716', 'tblTempUsageDetail_20' ) end [2025-01-07 15:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195716', 'tblTempVendorCDR_20' ) start [2025-01-07 15:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195716', 'tblTempVendorCDR_20' ) end [2025-01-07 15:08:29] Production.INFO: ProcessCDR(1,14195716,1,1,2) [2025-01-07 15:08:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:08:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:08:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:08:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195716', 'tblTempUsageDetail_20' ) start [2025-01-07 15:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195716', 'tblTempUsageDetail_20' ) end [2025-01-07 15:08:33] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:08:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:08:33] Production.INFO: ==21326== Releasing lock... [2025-01-07 15:08:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:08:33] Production.INFO: 71 MB #Memory Used# [2025-01-07 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:09:05 [end_date_ymd] => 2025-01-07 15:09:05 [RateCDR] => 1 ) [2025-01-07 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:09:05' and `end` < '2025-01-07 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:09:29] Production.INFO: count ==5737 [2025-01-07 15:09:31] Production.ERROR: pbx CDR StartTime 2025-01-07 12:09:05 - End Time 2025-01-07 15:09:05 [2025-01-07 15:09:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195721', 'tblTempUsageDetail_20' ) start [2025-01-07 15:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195721', 'tblTempUsageDetail_20' ) end [2025-01-07 15:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195721', 'tblTempVendorCDR_20' ) start [2025-01-07 15:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195721', 'tblTempVendorCDR_20' ) end [2025-01-07 15:09:32] Production.INFO: ProcessCDR(1,14195721,1,1,2) [2025-01-07 15:09:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:09:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:09:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:09:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195721', 'tblTempUsageDetail_20' ) start [2025-01-07 15:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195721', 'tblTempUsageDetail_20' ) end [2025-01-07 15:09:36] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:09:36] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:09:36] Production.INFO: ==21452== Releasing lock... [2025-01-07 15:09:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:09:36] Production.INFO: 71 MB #Memory Used# [2025-01-07 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:10:06 [end_date_ymd] => 2025-01-07 15:10:06 [RateCDR] => 1 ) [2025-01-07 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:10:06' and `end` < '2025-01-07 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:10:37] Production.INFO: count ==5740 [2025-01-07 15:10:39] Production.ERROR: pbx CDR StartTime 2025-01-07 12:10:06 - End Time 2025-01-07 15:10:06 [2025-01-07 15:10:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:10:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195727', 'tblTempUsageDetail_20' ) start [2025-01-07 15:10:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195727', 'tblTempUsageDetail_20' ) end [2025-01-07 15:10:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195727', 'tblTempVendorCDR_20' ) start [2025-01-07 15:10:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195727', 'tblTempVendorCDR_20' ) end [2025-01-07 15:10:40] Production.INFO: ProcessCDR(1,14195727,1,1,2) [2025-01-07 15:10:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:10:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:10:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:10:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:10:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195727', 'tblTempUsageDetail_20' ) start [2025-01-07 15:10:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195727', 'tblTempUsageDetail_20' ) end [2025-01-07 15:10:44] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:10:44] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:10:44] Production.INFO: ==21541== Releasing lock... [2025-01-07 15:10:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:10:44] Production.INFO: 71 MB #Memory Used# [2025-01-07 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:11:05 [end_date_ymd] => 2025-01-07 15:11:05 [RateCDR] => 1 ) [2025-01-07 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:11:05' and `end` < '2025-01-07 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:11:28] Production.INFO: count ==5757 [2025-01-07 15:11:31] Production.ERROR: pbx CDR StartTime 2025-01-07 12:11:05 - End Time 2025-01-07 15:11:05 [2025-01-07 15:11:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:11:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195732', 'tblTempUsageDetail_20' ) start [2025-01-07 15:11:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195732', 'tblTempUsageDetail_20' ) end [2025-01-07 15:11:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195732', 'tblTempVendorCDR_20' ) start [2025-01-07 15:11:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195732', 'tblTempVendorCDR_20' ) end [2025-01-07 15:11:31] Production.INFO: ProcessCDR(1,14195732,1,1,2) [2025-01-07 15:11:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:11:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:11:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:11:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:11:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195732', 'tblTempUsageDetail_20' ) start [2025-01-07 15:11:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195732', 'tblTempUsageDetail_20' ) end [2025-01-07 15:11:35] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:11:35] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:11:35] Production.INFO: ==21635== Releasing lock... [2025-01-07 15:11:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:11:35] Production.INFO: 71 MB #Memory Used# [2025-01-07 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:12:05 [end_date_ymd] => 2025-01-07 15:12:05 [RateCDR] => 1 ) [2025-01-07 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:12:05' and `end` < '2025-01-07 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:12:30] Production.INFO: count ==5739 [2025-01-07 15:12:33] Production.ERROR: pbx CDR StartTime 2025-01-07 12:12:05 - End Time 2025-01-07 15:12:05 [2025-01-07 15:12:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195737', 'tblTempUsageDetail_20' ) start [2025-01-07 15:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195737', 'tblTempUsageDetail_20' ) end [2025-01-07 15:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195737', 'tblTempVendorCDR_20' ) start [2025-01-07 15:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195737', 'tblTempVendorCDR_20' ) end [2025-01-07 15:12:33] Production.INFO: ProcessCDR(1,14195737,1,1,2) [2025-01-07 15:12:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:12:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:12:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:12:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:12:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195737', 'tblTempUsageDetail_20' ) start [2025-01-07 15:12:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195737', 'tblTempUsageDetail_20' ) end [2025-01-07 15:12:37] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:12:37] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:12:38] Production.INFO: ==21836== Releasing lock... [2025-01-07 15:12:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:12:38] Production.INFO: 71 MB #Memory Used# [2025-01-07 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:13:05 [end_date_ymd] => 2025-01-07 15:13:05 [RateCDR] => 1 ) [2025-01-07 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:13:05' and `end` < '2025-01-07 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:13:33] Production.INFO: count ==5759 [2025-01-07 15:13:35] Production.ERROR: pbx CDR StartTime 2025-01-07 12:13:05 - End Time 2025-01-07 15:13:05 [2025-01-07 15:13:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:13:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195742', 'tblTempUsageDetail_20' ) start [2025-01-07 15:13:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195742', 'tblTempUsageDetail_20' ) end [2025-01-07 15:13:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195742', 'tblTempVendorCDR_20' ) start [2025-01-07 15:13:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195742', 'tblTempVendorCDR_20' ) end [2025-01-07 15:13:36] Production.INFO: ProcessCDR(1,14195742,1,1,2) [2025-01-07 15:13:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:13:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:13:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:13:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:13:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195742', 'tblTempUsageDetail_20' ) start [2025-01-07 15:13:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195742', 'tblTempUsageDetail_20' ) end [2025-01-07 15:13:40] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:13:40] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:13:40] Production.INFO: ==21926== Releasing lock... [2025-01-07 15:13:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:13:40] Production.INFO: 71 MB #Memory Used# [2025-01-07 15:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:14:04 [end_date_ymd] => 2025-01-07 15:14:04 [RateCDR] => 1 ) [2025-01-07 15:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:14:04' and `end` < '2025-01-07 15:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:14:31] Production.INFO: count ==5765 [2025-01-07 15:14:34] Production.ERROR: pbx CDR StartTime 2025-01-07 12:14:04 - End Time 2025-01-07 15:14:04 [2025-01-07 15:14:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195747', 'tblTempUsageDetail_20' ) start [2025-01-07 15:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195747', 'tblTempUsageDetail_20' ) end [2025-01-07 15:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195747', 'tblTempVendorCDR_20' ) start [2025-01-07 15:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195747', 'tblTempVendorCDR_20' ) end [2025-01-07 15:14:34] Production.INFO: ProcessCDR(1,14195747,1,1,2) [2025-01-07 15:14:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:14:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:14:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:14:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:14:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195747', 'tblTempUsageDetail_20' ) start [2025-01-07 15:14:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195747', 'tblTempUsageDetail_20' ) end [2025-01-07 15:14:39] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:14:39] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:14:39] Production.INFO: ==22011== Releasing lock... [2025-01-07 15:14:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:14:39] Production.INFO: 71.25 MB #Memory Used# [2025-01-07 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:15:05 [end_date_ymd] => 2025-01-07 15:15:05 [RateCDR] => 1 ) [2025-01-07 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:15:05' and `end` < '2025-01-07 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:15:28] Production.INFO: count ==5778 [2025-01-07 15:15:30] Production.ERROR: pbx CDR StartTime 2025-01-07 12:15:05 - End Time 2025-01-07 15:15:05 [2025-01-07 15:15:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195752', 'tblTempUsageDetail_20' ) start [2025-01-07 15:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195752', 'tblTempUsageDetail_20' ) end [2025-01-07 15:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195752', 'tblTempVendorCDR_20' ) start [2025-01-07 15:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195752', 'tblTempVendorCDR_20' ) end [2025-01-07 15:15:31] Production.INFO: ProcessCDR(1,14195752,1,1,2) [2025-01-07 15:15:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:15:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:15:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:15:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195752', 'tblTempUsageDetail_20' ) start [2025-01-07 15:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195752', 'tblTempUsageDetail_20' ) end [2025-01-07 15:15:35] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:15:35] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:15:35] Production.INFO: ==22177== Releasing lock... [2025-01-07 15:15:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:15:35] Production.INFO: 71.25 MB #Memory Used# [2025-01-07 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:16:05 [end_date_ymd] => 2025-01-07 15:16:05 [RateCDR] => 1 ) [2025-01-07 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:16:05' and `end` < '2025-01-07 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:16:42] Production.INFO: count ==5777 [2025-01-07 15:16:44] Production.ERROR: pbx CDR StartTime 2025-01-07 12:16:05 - End Time 2025-01-07 15:16:05 [2025-01-07 15:16:44] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:16:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195757', 'tblTempUsageDetail_20' ) start [2025-01-07 15:16:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195757', 'tblTempUsageDetail_20' ) end [2025-01-07 15:16:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195757', 'tblTempVendorCDR_20' ) start [2025-01-07 15:16:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195757', 'tblTempVendorCDR_20' ) end [2025-01-07 15:16:44] Production.INFO: ProcessCDR(1,14195757,1,1,2) [2025-01-07 15:16:44] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:16:47] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:16:47] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:16:49] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:16:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195757', 'tblTempUsageDetail_20' ) start [2025-01-07 15:16:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195757', 'tblTempUsageDetail_20' ) end [2025-01-07 15:16:49] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:16:49] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:16:49] Production.INFO: ==22268== Releasing lock... [2025-01-07 15:16:49] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:16:49] Production.INFO: 71.25 MB #Memory Used# [2025-01-07 15:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:17:04 [end_date_ymd] => 2025-01-07 15:17:04 [RateCDR] => 1 ) [2025-01-07 15:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:17:04' and `end` < '2025-01-07 15:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:17:31] Production.INFO: count ==5788 [2025-01-07 15:17:34] Production.ERROR: pbx CDR StartTime 2025-01-07 12:17:04 - End Time 2025-01-07 15:17:04 [2025-01-07 15:17:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:17:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195762', 'tblTempUsageDetail_20' ) start [2025-01-07 15:17:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195762', 'tblTempUsageDetail_20' ) end [2025-01-07 15:17:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195762', 'tblTempVendorCDR_20' ) start [2025-01-07 15:17:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195762', 'tblTempVendorCDR_20' ) end [2025-01-07 15:17:34] Production.INFO: ProcessCDR(1,14195762,1,1,2) [2025-01-07 15:17:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:17:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:17:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:17:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:17:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195762', 'tblTempUsageDetail_20' ) start [2025-01-07 15:17:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195762', 'tblTempUsageDetail_20' ) end [2025-01-07 15:17:38] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:17:39] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:17:39] Production.INFO: ==22362== Releasing lock... [2025-01-07 15:17:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:17:39] Production.INFO: 71.25 MB #Memory Used# [2025-01-07 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:18:05 [end_date_ymd] => 2025-01-07 15:18:05 [RateCDR] => 1 ) [2025-01-07 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:18:05' and `end` < '2025-01-07 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:18:27] Production.INFO: count ==5779 [2025-01-07 15:18:29] Production.ERROR: pbx CDR StartTime 2025-01-07 12:18:05 - End Time 2025-01-07 15:18:05 [2025-01-07 15:18:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195767', 'tblTempUsageDetail_20' ) start [2025-01-07 15:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195767', 'tblTempUsageDetail_20' ) end [2025-01-07 15:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195767', 'tblTempVendorCDR_20' ) start [2025-01-07 15:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195767', 'tblTempVendorCDR_20' ) end [2025-01-07 15:18:30] Production.INFO: ProcessCDR(1,14195767,1,1,2) [2025-01-07 15:18:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:18:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:18:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:18:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195767', 'tblTempUsageDetail_20' ) start [2025-01-07 15:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195767', 'tblTempUsageDetail_20' ) end [2025-01-07 15:18:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:18:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:18:34] Production.INFO: ==22449== Releasing lock... [2025-01-07 15:18:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:18:34] Production.INFO: 71.25 MB #Memory Used# [2025-01-07 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:19:05 [end_date_ymd] => 2025-01-07 15:19:05 [RateCDR] => 1 ) [2025-01-07 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:19:05' and `end` < '2025-01-07 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:19:28] Production.INFO: count ==5798 [2025-01-07 15:19:30] Production.ERROR: pbx CDR StartTime 2025-01-07 12:19:05 - End Time 2025-01-07 15:19:05 [2025-01-07 15:19:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195772', 'tblTempUsageDetail_20' ) start [2025-01-07 15:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195772', 'tblTempUsageDetail_20' ) end [2025-01-07 15:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195772', 'tblTempVendorCDR_20' ) start [2025-01-07 15:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195772', 'tblTempVendorCDR_20' ) end [2025-01-07 15:19:31] Production.INFO: ProcessCDR(1,14195772,1,1,2) [2025-01-07 15:19:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:19:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:19:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:19:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:19:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195772', 'tblTempUsageDetail_20' ) start [2025-01-07 15:19:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195772', 'tblTempUsageDetail_20' ) end [2025-01-07 15:19:35] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:19:35] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:19:35] Production.INFO: ==22529== Releasing lock... [2025-01-07 15:19:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:19:35] Production.INFO: 71.5 MB #Memory Used# [2025-01-07 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:20:05 [end_date_ymd] => 2025-01-07 15:20:05 [RateCDR] => 1 ) [2025-01-07 15:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:20:05' and `end` < '2025-01-07 15:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:20:34] Production.INFO: count ==5836 [2025-01-07 15:20:36] Production.ERROR: pbx CDR StartTime 2025-01-07 12:20:05 - End Time 2025-01-07 15:20:05 [2025-01-07 15:20:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195778', 'tblTempUsageDetail_20' ) start [2025-01-07 15:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195778', 'tblTempUsageDetail_20' ) end [2025-01-07 15:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195778', 'tblTempVendorCDR_20' ) start [2025-01-07 15:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195778', 'tblTempVendorCDR_20' ) end [2025-01-07 15:20:36] Production.INFO: ProcessCDR(1,14195778,1,1,2) [2025-01-07 15:20:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:20:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:20:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:20:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:20:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195778', 'tblTempUsageDetail_20' ) start [2025-01-07 15:20:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195778', 'tblTempUsageDetail_20' ) end [2025-01-07 15:20:42] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:20:42] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:20:42] Production.INFO: ==22616== Releasing lock... [2025-01-07 15:20:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:20:42] Production.INFO: 71.75 MB #Memory Used# [2025-01-07 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:21:05 [end_date_ymd] => 2025-01-07 15:21:05 [RateCDR] => 1 ) [2025-01-07 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:21:05' and `end` < '2025-01-07 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:21:29] Production.INFO: count ==5853 [2025-01-07 15:21:32] Production.ERROR: pbx CDR StartTime 2025-01-07 12:21:05 - End Time 2025-01-07 15:21:05 [2025-01-07 15:21:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:21:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195783', 'tblTempUsageDetail_20' ) start [2025-01-07 15:21:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195783', 'tblTempUsageDetail_20' ) end [2025-01-07 15:21:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195783', 'tblTempVendorCDR_20' ) start [2025-01-07 15:21:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195783', 'tblTempVendorCDR_20' ) end [2025-01-07 15:21:32] Production.INFO: ProcessCDR(1,14195783,1,1,2) [2025-01-07 15:21:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:21:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:21:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:21:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:21:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195783', 'tblTempUsageDetail_20' ) start [2025-01-07 15:21:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195783', 'tblTempUsageDetail_20' ) end [2025-01-07 15:21:36] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:21:36] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:21:36] Production.INFO: ==22705== Releasing lock... [2025-01-07 15:21:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:21:36] Production.INFO: 71.75 MB #Memory Used# [2025-01-07 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:22:05 [end_date_ymd] => 2025-01-07 15:22:05 [RateCDR] => 1 ) [2025-01-07 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:22:05' and `end` < '2025-01-07 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:22:27] Production.INFO: count ==5850 [2025-01-07 15:22:29] Production.ERROR: pbx CDR StartTime 2025-01-07 12:22:05 - End Time 2025-01-07 15:22:05 [2025-01-07 15:22:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195788', 'tblTempUsageDetail_20' ) start [2025-01-07 15:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195788', 'tblTempUsageDetail_20' ) end [2025-01-07 15:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195788', 'tblTempVendorCDR_20' ) start [2025-01-07 15:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195788', 'tblTempVendorCDR_20' ) end [2025-01-07 15:22:29] Production.INFO: ProcessCDR(1,14195788,1,1,2) [2025-01-07 15:22:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:22:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:22:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:22:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195788', 'tblTempUsageDetail_20' ) start [2025-01-07 15:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195788', 'tblTempUsageDetail_20' ) end [2025-01-07 15:22:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:22:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:22:34] Production.INFO: ==22784== Releasing lock... [2025-01-07 15:22:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:22:34] Production.INFO: 71.75 MB #Memory Used# [2025-01-07 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:23:05 [end_date_ymd] => 2025-01-07 15:23:05 [RateCDR] => 1 ) [2025-01-07 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:23:05' and `end` < '2025-01-07 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:23:26] Production.INFO: count ==5833 [2025-01-07 15:23:28] Production.ERROR: pbx CDR StartTime 2025-01-07 12:23:05 - End Time 2025-01-07 15:23:05 [2025-01-07 15:23:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195793', 'tblTempUsageDetail_20' ) start [2025-01-07 15:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195793', 'tblTempUsageDetail_20' ) end [2025-01-07 15:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195793', 'tblTempVendorCDR_20' ) start [2025-01-07 15:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195793', 'tblTempVendorCDR_20' ) end [2025-01-07 15:23:28] Production.INFO: ProcessCDR(1,14195793,1,1,2) [2025-01-07 15:23:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:23:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:23:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:23:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195793', 'tblTempUsageDetail_20' ) start [2025-01-07 15:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195793', 'tblTempUsageDetail_20' ) end [2025-01-07 15:23:32] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:23:32] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:23:32] Production.INFO: ==22859== Releasing lock... [2025-01-07 15:23:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:23:32] Production.INFO: 71.75 MB #Memory Used# [2025-01-07 15:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:24:04 [end_date_ymd] => 2025-01-07 15:24:04 [RateCDR] => 1 ) [2025-01-07 15:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:24:04' and `end` < '2025-01-07 15:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:24:32] Production.INFO: count ==5841 [2025-01-07 15:24:34] Production.ERROR: pbx CDR StartTime 2025-01-07 12:24:04 - End Time 2025-01-07 15:24:04 [2025-01-07 15:24:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:24:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195798', 'tblTempUsageDetail_20' ) start [2025-01-07 15:24:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195798', 'tblTempUsageDetail_20' ) end [2025-01-07 15:24:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195798', 'tblTempVendorCDR_20' ) start [2025-01-07 15:24:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195798', 'tblTempVendorCDR_20' ) end [2025-01-07 15:24:34] Production.INFO: ProcessCDR(1,14195798,1,1,2) [2025-01-07 15:24:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:24:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:24:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:24:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:24:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195798', 'tblTempUsageDetail_20' ) start [2025-01-07 15:24:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195798', 'tblTempUsageDetail_20' ) end [2025-01-07 15:24:39] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:24:39] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:24:39] Production.INFO: ==22934== Releasing lock... [2025-01-07 15:24:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:24:39] Production.INFO: 71.75 MB #Memory Used# [2025-01-07 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:25:05 [end_date_ymd] => 2025-01-07 15:25:05 [RateCDR] => 1 ) [2025-01-07 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:25:05' and `end` < '2025-01-07 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:25:31] Production.INFO: count ==5866 [2025-01-07 15:25:34] Production.ERROR: pbx CDR StartTime 2025-01-07 12:25:05 - End Time 2025-01-07 15:25:05 [2025-01-07 15:25:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195803', 'tblTempUsageDetail_20' ) start [2025-01-07 15:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195803', 'tblTempUsageDetail_20' ) end [2025-01-07 15:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195803', 'tblTempVendorCDR_20' ) start [2025-01-07 15:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195803', 'tblTempVendorCDR_20' ) end [2025-01-07 15:25:34] Production.INFO: ProcessCDR(1,14195803,1,1,2) [2025-01-07 15:25:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:25:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:25:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:25:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:25:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195803', 'tblTempUsageDetail_20' ) start [2025-01-07 15:25:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195803', 'tblTempUsageDetail_20' ) end [2025-01-07 15:25:38] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:25:38] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:25:38] Production.INFO: ==23007== Releasing lock... [2025-01-07 15:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:25:38] Production.INFO: 72 MB #Memory Used# [2025-01-07 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:26:05 [end_date_ymd] => 2025-01-07 15:26:05 [RateCDR] => 1 ) [2025-01-07 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:26:05' and `end` < '2025-01-07 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:26:33] Production.INFO: count ==5871 [2025-01-07 15:26:36] Production.ERROR: pbx CDR StartTime 2025-01-07 12:26:05 - End Time 2025-01-07 15:26:05 [2025-01-07 15:26:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195808', 'tblTempUsageDetail_20' ) start [2025-01-07 15:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195808', 'tblTempUsageDetail_20' ) end [2025-01-07 15:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195808', 'tblTempVendorCDR_20' ) start [2025-01-07 15:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195808', 'tblTempVendorCDR_20' ) end [2025-01-07 15:26:36] Production.INFO: ProcessCDR(1,14195808,1,1,2) [2025-01-07 15:26:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:26:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:26:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:26:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:26:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195808', 'tblTempUsageDetail_20' ) start [2025-01-07 15:26:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195808', 'tblTempUsageDetail_20' ) end [2025-01-07 15:26:41] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:26:41] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:26:41] Production.INFO: ==23080== Releasing lock... [2025-01-07 15:26:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:26:41] Production.INFO: 72 MB #Memory Used# [2025-01-07 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:27:05 [end_date_ymd] => 2025-01-07 15:27:05 [RateCDR] => 1 ) [2025-01-07 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:27:05' and `end` < '2025-01-07 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:27:23] Production.INFO: count ==5868 [2025-01-07 15:27:26] Production.ERROR: pbx CDR StartTime 2025-01-07 12:27:05 - End Time 2025-01-07 15:27:05 [2025-01-07 15:27:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195813', 'tblTempUsageDetail_20' ) start [2025-01-07 15:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195813', 'tblTempUsageDetail_20' ) end [2025-01-07 15:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195813', 'tblTempVendorCDR_20' ) start [2025-01-07 15:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195813', 'tblTempVendorCDR_20' ) end [2025-01-07 15:27:26] Production.INFO: ProcessCDR(1,14195813,1,1,2) [2025-01-07 15:27:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:27:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:27:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:27:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195813', 'tblTempUsageDetail_20' ) start [2025-01-07 15:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195813', 'tblTempUsageDetail_20' ) end [2025-01-07 15:27:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:27:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:27:31] Production.INFO: ==23153== Releasing lock... [2025-01-07 15:27:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:27:31] Production.INFO: 72 MB #Memory Used# [2025-01-07 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:28:05 [end_date_ymd] => 2025-01-07 15:28:05 [RateCDR] => 1 ) [2025-01-07 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:28:05' and `end` < '2025-01-07 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:28:20] Production.INFO: count ==5870 [2025-01-07 15:28:22] Production.ERROR: pbx CDR StartTime 2025-01-07 12:28:05 - End Time 2025-01-07 15:28:05 [2025-01-07 15:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195818', 'tblTempUsageDetail_20' ) start [2025-01-07 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195818', 'tblTempUsageDetail_20' ) end [2025-01-07 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195818', 'tblTempVendorCDR_20' ) start [2025-01-07 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195818', 'tblTempVendorCDR_20' ) end [2025-01-07 15:28:23] Production.INFO: ProcessCDR(1,14195818,1,1,2) [2025-01-07 15:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195818', 'tblTempUsageDetail_20' ) start [2025-01-07 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195818', 'tblTempUsageDetail_20' ) end [2025-01-07 15:28:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:28:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:28:27] Production.INFO: ==23267== Releasing lock... [2025-01-07 15:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:28:27] Production.INFO: 72.25 MB #Memory Used# [2025-01-07 15:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:29:04 [end_date_ymd] => 2025-01-07 15:29:04 [RateCDR] => 1 ) [2025-01-07 15:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:29:04' and `end` < '2025-01-07 15:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:29:18] Production.INFO: count ==5863 [2025-01-07 15:29:21] Production.ERROR: pbx CDR StartTime 2025-01-07 12:29:04 - End Time 2025-01-07 15:29:04 [2025-01-07 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195823', 'tblTempUsageDetail_20' ) start [2025-01-07 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195823', 'tblTempUsageDetail_20' ) end [2025-01-07 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195823', 'tblTempVendorCDR_20' ) start [2025-01-07 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195823', 'tblTempVendorCDR_20' ) end [2025-01-07 15:29:21] Production.INFO: ProcessCDR(1,14195823,1,1,2) [2025-01-07 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195823', 'tblTempUsageDetail_20' ) start [2025-01-07 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195823', 'tblTempUsageDetail_20' ) end [2025-01-07 15:29:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:29:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:29:26] Production.INFO: ==23339== Releasing lock... [2025-01-07 15:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:29:26] Production.INFO: 72 MB #Memory Used# [2025-01-07 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:30:06 [end_date_ymd] => 2025-01-07 15:30:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 12:30:06' and `end` < '2025-01-07 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-01-07 15:30:36] Production.INFO: count ==5826 [2025-01-07 15:30:38] Production.ERROR: pbx CDR StartTime 2025-01-07 12:30:06 - End Time 2025-01-07 15:30:06 [2025-01-07 15:30:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:30:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195829', 'tblTempUsageDetail_20' ) start [2025-01-07 15:30:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195829', 'tblTempUsageDetail_20' ) end [2025-01-07 15:30:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195829', 'tblTempVendorCDR_20' ) start [2025-01-07 15:30:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195829', 'tblTempVendorCDR_20' ) end [2025-01-07 15:30:39] Production.INFO: ProcessCDR(1,14195829,1,1,2) [2025-01-07 15:30:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:30:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:30:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:30:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:30:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195829', 'tblTempUsageDetail_20' ) start [2025-01-07 15:30:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195829', 'tblTempUsageDetail_20' ) end [2025-01-07 15:30:44] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:30:44] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:30:44] Production.INFO: ==23422== Releasing lock... [2025-01-07 15:30:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:30:44] Production.INFO: 71.5 MB #Memory Used# [2025-01-07 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:31:05 [end_date_ymd] => 2025-01-07 15:31:05 [RateCDR] => 1 ) [2025-01-07 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:31:05' and `end` < '2025-01-07 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:31:26] Production.INFO: count ==5795 [2025-01-07 15:31:28] Production.ERROR: pbx CDR StartTime 2025-01-07 12:31:05 - End Time 2025-01-07 15:31:05 [2025-01-07 15:31:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195834', 'tblTempUsageDetail_20' ) start [2025-01-07 15:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195834', 'tblTempUsageDetail_20' ) end [2025-01-07 15:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195834', 'tblTempVendorCDR_20' ) start [2025-01-07 15:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195834', 'tblTempVendorCDR_20' ) end [2025-01-07 15:31:29] Production.INFO: ProcessCDR(1,14195834,1,1,2) [2025-01-07 15:31:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:31:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:31:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:31:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195834', 'tblTempUsageDetail_20' ) start [2025-01-07 15:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195834', 'tblTempUsageDetail_20' ) end [2025-01-07 15:31:33] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:31:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:31:33] Production.INFO: ==23496== Releasing lock... [2025-01-07 15:31:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:31:33] Production.INFO: 71.25 MB #Memory Used# [2025-01-07 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:32:05 [end_date_ymd] => 2025-01-07 15:32:05 [RateCDR] => 1 ) [2025-01-07 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:32:05' and `end` < '2025-01-07 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:32:19] Production.INFO: count ==5773 [2025-01-07 15:32:21] Production.ERROR: pbx CDR StartTime 2025-01-07 12:32:05 - End Time 2025-01-07 15:32:05 [2025-01-07 15:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195839', 'tblTempUsageDetail_20' ) start [2025-01-07 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195839', 'tblTempUsageDetail_20' ) end [2025-01-07 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195839', 'tblTempVendorCDR_20' ) start [2025-01-07 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195839', 'tblTempVendorCDR_20' ) end [2025-01-07 15:32:21] Production.INFO: ProcessCDR(1,14195839,1,1,2) [2025-01-07 15:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195839', 'tblTempUsageDetail_20' ) start [2025-01-07 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195839', 'tblTempUsageDetail_20' ) end [2025-01-07 15:32:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:32:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:32:26] Production.INFO: ==23572== Releasing lock... [2025-01-07 15:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:32:26] Production.INFO: 71.25 MB #Memory Used# [2025-01-07 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:33:05 [end_date_ymd] => 2025-01-07 15:33:05 [RateCDR] => 1 ) [2025-01-07 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:33:05' and `end` < '2025-01-07 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:33:23] Production.INFO: count ==5759 [2025-01-07 15:33:25] Production.ERROR: pbx CDR StartTime 2025-01-07 12:33:05 - End Time 2025-01-07 15:33:05 [2025-01-07 15:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195844', 'tblTempUsageDetail_20' ) start [2025-01-07 15:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195844', 'tblTempUsageDetail_20' ) end [2025-01-07 15:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195844', 'tblTempVendorCDR_20' ) start [2025-01-07 15:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195844', 'tblTempVendorCDR_20' ) end [2025-01-07 15:33:25] Production.INFO: ProcessCDR(1,14195844,1,1,2) [2025-01-07 15:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:33:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:33:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195844', 'tblTempUsageDetail_20' ) start [2025-01-07 15:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195844', 'tblTempUsageDetail_20' ) end [2025-01-07 15:33:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:33:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:33:30] Production.INFO: ==23644== Releasing lock... [2025-01-07 15:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:33:30] Production.INFO: 71 MB #Memory Used# [2025-01-07 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:34:05 [end_date_ymd] => 2025-01-07 15:34:05 [RateCDR] => 1 ) [2025-01-07 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:34:05' and `end` < '2025-01-07 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:34:27] Production.INFO: count ==5752 [2025-01-07 15:34:30] Production.ERROR: pbx CDR StartTime 2025-01-07 12:34:05 - End Time 2025-01-07 15:34:05 [2025-01-07 15:34:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195849', 'tblTempUsageDetail_20' ) start [2025-01-07 15:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195849', 'tblTempUsageDetail_20' ) end [2025-01-07 15:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195849', 'tblTempVendorCDR_20' ) start [2025-01-07 15:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195849', 'tblTempVendorCDR_20' ) end [2025-01-07 15:34:30] Production.INFO: ProcessCDR(1,14195849,1,1,2) [2025-01-07 15:34:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:34:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:34:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:34:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:34:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195849', 'tblTempUsageDetail_20' ) start [2025-01-07 15:34:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195849', 'tblTempUsageDetail_20' ) end [2025-01-07 15:34:35] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:34:35] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:34:35] Production.INFO: ==23715== Releasing lock... [2025-01-07 15:34:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:34:35] Production.INFO: 71 MB #Memory Used# [2025-01-07 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:35:05 [end_date_ymd] => 2025-01-07 15:35:05 [RateCDR] => 1 ) [2025-01-07 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:35:05' and `end` < '2025-01-07 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:35:36] Production.INFO: count ==5712 [2025-01-07 15:35:39] Production.ERROR: pbx CDR StartTime 2025-01-07 12:35:05 - End Time 2025-01-07 15:35:05 [2025-01-07 15:35:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:35:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195854', 'tblTempUsageDetail_20' ) start [2025-01-07 15:35:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195854', 'tblTempUsageDetail_20' ) end [2025-01-07 15:35:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195854', 'tblTempVendorCDR_20' ) start [2025-01-07 15:35:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195854', 'tblTempVendorCDR_20' ) end [2025-01-07 15:35:39] Production.INFO: ProcessCDR(1,14195854,1,1,2) [2025-01-07 15:35:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:35:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:35:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:35:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:35:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195854', 'tblTempUsageDetail_20' ) start [2025-01-07 15:35:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195854', 'tblTempUsageDetail_20' ) end [2025-01-07 15:35:43] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:35:43] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:35:43] Production.INFO: ==23789== Releasing lock... [2025-01-07 15:35:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:35:43] Production.INFO: 70.75 MB #Memory Used# [2025-01-07 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:36:05 [end_date_ymd] => 2025-01-07 15:36:05 [RateCDR] => 1 ) [2025-01-07 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:36:05' and `end` < '2025-01-07 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:36:24] Production.INFO: count ==5680 [2025-01-07 15:36:27] Production.ERROR: pbx CDR StartTime 2025-01-07 12:36:05 - End Time 2025-01-07 15:36:05 [2025-01-07 15:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195859', 'tblTempUsageDetail_20' ) start [2025-01-07 15:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195859', 'tblTempUsageDetail_20' ) end [2025-01-07 15:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195859', 'tblTempVendorCDR_20' ) start [2025-01-07 15:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195859', 'tblTempVendorCDR_20' ) end [2025-01-07 15:36:27] Production.INFO: ProcessCDR(1,14195859,1,1,2) [2025-01-07 15:36:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:36:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:36:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:36:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195859', 'tblTempUsageDetail_20' ) start [2025-01-07 15:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195859', 'tblTempUsageDetail_20' ) end [2025-01-07 15:36:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:36:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:36:31] Production.INFO: ==23861== Releasing lock... [2025-01-07 15:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:36:31] Production.INFO: 70.5 MB #Memory Used# [2025-01-07 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:37:05 [end_date_ymd] => 2025-01-07 15:37:05 [RateCDR] => 1 ) [2025-01-07 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:37:05' and `end` < '2025-01-07 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:37:27] Production.INFO: count ==5688 [2025-01-07 15:37:29] Production.ERROR: pbx CDR StartTime 2025-01-07 12:37:05 - End Time 2025-01-07 15:37:05 [2025-01-07 15:37:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195864', 'tblTempUsageDetail_20' ) start [2025-01-07 15:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195864', 'tblTempUsageDetail_20' ) end [2025-01-07 15:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195864', 'tblTempVendorCDR_20' ) start [2025-01-07 15:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195864', 'tblTempVendorCDR_20' ) end [2025-01-07 15:37:29] Production.INFO: ProcessCDR(1,14195864,1,1,2) [2025-01-07 15:37:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:37:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:37:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:37:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195864', 'tblTempUsageDetail_20' ) start [2025-01-07 15:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195864', 'tblTempUsageDetail_20' ) end [2025-01-07 15:37:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:37:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:37:34] Production.INFO: ==23934== Releasing lock... [2025-01-07 15:37:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:37:34] Production.INFO: 70.5 MB #Memory Used# [2025-01-07 15:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:38:04 [end_date_ymd] => 2025-01-07 15:38:04 [RateCDR] => 1 ) [2025-01-07 15:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:38:04' and `end` < '2025-01-07 15:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:38:24] Production.INFO: count ==5685 [2025-01-07 15:38:26] Production.ERROR: pbx CDR StartTime 2025-01-07 12:38:04 - End Time 2025-01-07 15:38:04 [2025-01-07 15:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195869', 'tblTempUsageDetail_20' ) start [2025-01-07 15:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195869', 'tblTempUsageDetail_20' ) end [2025-01-07 15:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195869', 'tblTempVendorCDR_20' ) start [2025-01-07 15:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195869', 'tblTempVendorCDR_20' ) end [2025-01-07 15:38:26] Production.INFO: ProcessCDR(1,14195869,1,1,2) [2025-01-07 15:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195869', 'tblTempUsageDetail_20' ) start [2025-01-07 15:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195869', 'tblTempUsageDetail_20' ) end [2025-01-07 15:38:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:38:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:38:30] Production.INFO: ==24006== Releasing lock... [2025-01-07 15:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:38:30] Production.INFO: 70.5 MB #Memory Used# [2025-01-07 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:39:05 [end_date_ymd] => 2025-01-07 15:39:05 [RateCDR] => 1 ) [2025-01-07 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:39:05' and `end` < '2025-01-07 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:39:24] Production.INFO: count ==5651 [2025-01-07 15:39:26] Production.ERROR: pbx CDR StartTime 2025-01-07 12:39:05 - End Time 2025-01-07 15:39:05 [2025-01-07 15:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195874', 'tblTempUsageDetail_20' ) start [2025-01-07 15:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195874', 'tblTempUsageDetail_20' ) end [2025-01-07 15:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195874', 'tblTempVendorCDR_20' ) start [2025-01-07 15:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195874', 'tblTempVendorCDR_20' ) end [2025-01-07 15:39:26] Production.INFO: ProcessCDR(1,14195874,1,1,2) [2025-01-07 15:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:39:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:39:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195874', 'tblTempUsageDetail_20' ) start [2025-01-07 15:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195874', 'tblTempUsageDetail_20' ) end [2025-01-07 15:39:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:39:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:39:31] Production.INFO: ==24079== Releasing lock... [2025-01-07 15:39:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:39:31] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:40:05 [end_date_ymd] => 2025-01-07 15:40:05 [RateCDR] => 1 ) [2025-01-07 15:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:40:05' and `end` < '2025-01-07 15:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:40:28] Production.INFO: count ==5645 [2025-01-07 15:40:31] Production.ERROR: pbx CDR StartTime 2025-01-07 12:40:05 - End Time 2025-01-07 15:40:05 [2025-01-07 15:40:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195880', 'tblTempUsageDetail_20' ) start [2025-01-07 15:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195880', 'tblTempUsageDetail_20' ) end [2025-01-07 15:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195880', 'tblTempVendorCDR_20' ) start [2025-01-07 15:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195880', 'tblTempVendorCDR_20' ) end [2025-01-07 15:40:31] Production.INFO: ProcessCDR(1,14195880,1,1,2) [2025-01-07 15:40:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:40:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:40:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:40:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195880', 'tblTempUsageDetail_20' ) start [2025-01-07 15:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195880', 'tblTempUsageDetail_20' ) end [2025-01-07 15:40:35] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:40:35] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:40:35] Production.INFO: ==24151== Releasing lock... [2025-01-07 15:40:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:40:35] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:41:05 [end_date_ymd] => 2025-01-07 15:41:05 [RateCDR] => 1 ) [2025-01-07 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:41:05' and `end` < '2025-01-07 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:41:20] Production.INFO: count ==5675 [2025-01-07 15:41:22] Production.ERROR: pbx CDR StartTime 2025-01-07 12:41:05 - End Time 2025-01-07 15:41:05 [2025-01-07 15:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195885', 'tblTempUsageDetail_20' ) start [2025-01-07 15:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195885', 'tblTempUsageDetail_20' ) end [2025-01-07 15:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195885', 'tblTempVendorCDR_20' ) start [2025-01-07 15:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195885', 'tblTempVendorCDR_20' ) end [2025-01-07 15:41:23] Production.INFO: ProcessCDR(1,14195885,1,1,2) [2025-01-07 15:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195885', 'tblTempUsageDetail_20' ) start [2025-01-07 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195885', 'tblTempUsageDetail_20' ) end [2025-01-07 15:41:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:41:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:41:27] Production.INFO: ==24224== Releasing lock... [2025-01-07 15:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:41:27] Production.INFO: 70.5 MB #Memory Used# [2025-01-07 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:42:05 [end_date_ymd] => 2025-01-07 15:42:05 [RateCDR] => 1 ) [2025-01-07 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:42:05' and `end` < '2025-01-07 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:42:39] Production.INFO: count ==5678 [2025-01-07 15:42:42] Production.ERROR: pbx CDR StartTime 2025-01-07 12:42:05 - End Time 2025-01-07 15:42:05 [2025-01-07 15:42:42] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:42:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195890', 'tblTempUsageDetail_20' ) start [2025-01-07 15:42:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195890', 'tblTempUsageDetail_20' ) end [2025-01-07 15:42:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195890', 'tblTempVendorCDR_20' ) start [2025-01-07 15:42:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195890', 'tblTempVendorCDR_20' ) end [2025-01-07 15:42:42] Production.INFO: ProcessCDR(1,14195890,1,1,2) [2025-01-07 15:42:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:42:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:42:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:42:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:42:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195890', 'tblTempUsageDetail_20' ) start [2025-01-07 15:42:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195890', 'tblTempUsageDetail_20' ) end [2025-01-07 15:42:46] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:42:46] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:42:46] Production.INFO: ==24296== Releasing lock... [2025-01-07 15:42:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:42:46] Production.INFO: 70.5 MB #Memory Used# [2025-01-07 15:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:43:04 [end_date_ymd] => 2025-01-07 15:43:04 [RateCDR] => 1 ) [2025-01-07 15:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:43:04' and `end` < '2025-01-07 15:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:43:30] Production.INFO: count ==5678 [2025-01-07 15:43:32] Production.ERROR: pbx CDR StartTime 2025-01-07 12:43:04 - End Time 2025-01-07 15:43:04 [2025-01-07 15:43:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195895', 'tblTempUsageDetail_20' ) start [2025-01-07 15:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195895', 'tblTempUsageDetail_20' ) end [2025-01-07 15:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195895', 'tblTempVendorCDR_20' ) start [2025-01-07 15:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195895', 'tblTempVendorCDR_20' ) end [2025-01-07 15:43:32] Production.INFO: ProcessCDR(1,14195895,1,1,2) [2025-01-07 15:43:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:43:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:43:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:43:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:43:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195895', 'tblTempUsageDetail_20' ) start [2025-01-07 15:43:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195895', 'tblTempUsageDetail_20' ) end [2025-01-07 15:43:36] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:43:36] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:43:36] Production.INFO: ==24371== Releasing lock... [2025-01-07 15:43:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:43:36] Production.INFO: 70.5 MB #Memory Used# [2025-01-07 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:44:05 [end_date_ymd] => 2025-01-07 15:44:05 [RateCDR] => 1 ) [2025-01-07 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:44:05' and `end` < '2025-01-07 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:44:27] Production.INFO: count ==5677 [2025-01-07 15:44:29] Production.ERROR: pbx CDR StartTime 2025-01-07 12:44:05 - End Time 2025-01-07 15:44:05 [2025-01-07 15:44:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:44:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195900', 'tblTempUsageDetail_20' ) start [2025-01-07 15:44:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195900', 'tblTempUsageDetail_20' ) end [2025-01-07 15:44:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195900', 'tblTempVendorCDR_20' ) start [2025-01-07 15:44:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195900', 'tblTempVendorCDR_20' ) end [2025-01-07 15:44:29] Production.INFO: ProcessCDR(1,14195900,1,1,2) [2025-01-07 15:44:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:44:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:44:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:44:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:44:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195900', 'tblTempUsageDetail_20' ) start [2025-01-07 15:44:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195900', 'tblTempUsageDetail_20' ) end [2025-01-07 15:44:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:44:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:44:34] Production.INFO: ==24485== Releasing lock... [2025-01-07 15:44:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:44:34] Production.INFO: 70.5 MB #Memory Used# [2025-01-07 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:45:05 [end_date_ymd] => 2025-01-07 15:45:05 [RateCDR] => 1 ) [2025-01-07 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:45:05' and `end` < '2025-01-07 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:45:33] Production.INFO: count ==5700 [2025-01-07 15:45:36] Production.ERROR: pbx CDR StartTime 2025-01-07 12:45:05 - End Time 2025-01-07 15:45:05 [2025-01-07 15:45:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:45:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195905', 'tblTempUsageDetail_20' ) start [2025-01-07 15:45:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195905', 'tblTempUsageDetail_20' ) end [2025-01-07 15:45:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195905', 'tblTempVendorCDR_20' ) start [2025-01-07 15:45:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195905', 'tblTempVendorCDR_20' ) end [2025-01-07 15:45:36] Production.INFO: ProcessCDR(1,14195905,1,1,2) [2025-01-07 15:45:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:45:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:45:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:45:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:45:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195905', 'tblTempUsageDetail_20' ) start [2025-01-07 15:45:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195905', 'tblTempUsageDetail_20' ) end [2025-01-07 15:45:41] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:45:41] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:45:41] Production.INFO: ==24554== Releasing lock... [2025-01-07 15:45:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:45:41] Production.INFO: 70.75 MB #Memory Used# [2025-01-07 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:46:05 [end_date_ymd] => 2025-01-07 15:46:05 [RateCDR] => 1 ) [2025-01-07 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:46:05' and `end` < '2025-01-07 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:46:29] Production.INFO: count ==5680 [2025-01-07 15:46:32] Production.ERROR: pbx CDR StartTime 2025-01-07 12:46:05 - End Time 2025-01-07 15:46:05 [2025-01-07 15:46:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:46:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195910', 'tblTempUsageDetail_20' ) start [2025-01-07 15:46:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195910', 'tblTempUsageDetail_20' ) end [2025-01-07 15:46:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195910', 'tblTempVendorCDR_20' ) start [2025-01-07 15:46:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195910', 'tblTempVendorCDR_20' ) end [2025-01-07 15:46:32] Production.INFO: ProcessCDR(1,14195910,1,1,2) [2025-01-07 15:46:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:46:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:46:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:46:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:46:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195910', 'tblTempUsageDetail_20' ) start [2025-01-07 15:46:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195910', 'tblTempUsageDetail_20' ) end [2025-01-07 15:46:36] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:46:36] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:46:36] Production.INFO: ==24624== Releasing lock... [2025-01-07 15:46:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:46:36] Production.INFO: 70.5 MB #Memory Used# [2025-01-07 15:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:47:04 [end_date_ymd] => 2025-01-07 15:47:04 [RateCDR] => 1 ) [2025-01-07 15:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:47:04' and `end` < '2025-01-07 15:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:47:25] Production.INFO: count ==5707 [2025-01-07 15:47:27] Production.ERROR: pbx CDR StartTime 2025-01-07 12:47:04 - End Time 2025-01-07 15:47:04 [2025-01-07 15:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195915', 'tblTempUsageDetail_20' ) start [2025-01-07 15:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195915', 'tblTempUsageDetail_20' ) end [2025-01-07 15:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195915', 'tblTempVendorCDR_20' ) start [2025-01-07 15:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195915', 'tblTempVendorCDR_20' ) end [2025-01-07 15:47:27] Production.INFO: ProcessCDR(1,14195915,1,1,2) [2025-01-07 15:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:47:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:47:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195915', 'tblTempUsageDetail_20' ) start [2025-01-07 15:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195915', 'tblTempUsageDetail_20' ) end [2025-01-07 15:47:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:47:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:47:30] Production.INFO: ==24694== Releasing lock... [2025-01-07 15:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:47:30] Production.INFO: 70.75 MB #Memory Used# [2025-01-07 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:48:05 [end_date_ymd] => 2025-01-07 15:48:05 [RateCDR] => 1 ) [2025-01-07 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:48:05' and `end` < '2025-01-07 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:48:32] Production.INFO: count ==5718 [2025-01-07 15:48:34] Production.ERROR: pbx CDR StartTime 2025-01-07 12:48:05 - End Time 2025-01-07 15:48:05 [2025-01-07 15:48:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:48:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195920', 'tblTempUsageDetail_20' ) start [2025-01-07 15:48:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195920', 'tblTempUsageDetail_20' ) end [2025-01-07 15:48:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195920', 'tblTempVendorCDR_20' ) start [2025-01-07 15:48:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195920', 'tblTempVendorCDR_20' ) end [2025-01-07 15:48:34] Production.INFO: ProcessCDR(1,14195920,1,1,2) [2025-01-07 15:48:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:48:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:48:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:48:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:48:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195920', 'tblTempUsageDetail_20' ) start [2025-01-07 15:48:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195920', 'tblTempUsageDetail_20' ) end [2025-01-07 15:48:39] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:48:39] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:48:39] Production.INFO: ==24766== Releasing lock... [2025-01-07 15:48:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:48:39] Production.INFO: 70.75 MB #Memory Used# [2025-01-07 15:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:49:06 [end_date_ymd] => 2025-01-07 15:49:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 12:49:06' and `end` < '2025-01-07 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-01-07 15:49:33] Production.INFO: count ==5722 [2025-01-07 15:49:36] Production.ERROR: pbx CDR StartTime 2025-01-07 12:49:06 - End Time 2025-01-07 15:49:06 [2025-01-07 15:49:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:49:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195925', 'tblTempUsageDetail_20' ) start [2025-01-07 15:49:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195925', 'tblTempUsageDetail_20' ) end [2025-01-07 15:49:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195925', 'tblTempVendorCDR_20' ) start [2025-01-07 15:49:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195925', 'tblTempVendorCDR_20' ) end [2025-01-07 15:49:36] Production.INFO: ProcessCDR(1,14195925,1,1,2) [2025-01-07 15:49:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:49:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:49:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:49:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:49:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195925', 'tblTempUsageDetail_20' ) start [2025-01-07 15:49:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195925', 'tblTempUsageDetail_20' ) end [2025-01-07 15:49:41] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:49:41] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:49:41] Production.INFO: ==24839== Releasing lock... [2025-01-07 15:49:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:49:41] Production.INFO: 70.75 MB #Memory Used# [2025-01-07 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:50:05 [end_date_ymd] => 2025-01-07 15:50:05 [RateCDR] => 1 ) [2025-01-07 15:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:50:05' and `end` < '2025-01-07 15:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:50:30] Production.INFO: count ==5724 [2025-01-07 15:50:32] Production.ERROR: pbx CDR StartTime 2025-01-07 12:50:05 - End Time 2025-01-07 15:50:05 [2025-01-07 15:50:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195930', 'tblTempUsageDetail_20' ) start [2025-01-07 15:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195930', 'tblTempUsageDetail_20' ) end [2025-01-07 15:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195930', 'tblTempVendorCDR_20' ) start [2025-01-07 15:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195930', 'tblTempVendorCDR_20' ) end [2025-01-07 15:50:32] Production.INFO: ProcessCDR(1,14195930,1,1,2) [2025-01-07 15:50:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:50:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:50:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:50:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195930', 'tblTempUsageDetail_20' ) start [2025-01-07 15:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195930', 'tblTempUsageDetail_20' ) end [2025-01-07 15:50:37] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:50:37] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:50:37] Production.INFO: ==24913== Releasing lock... [2025-01-07 15:50:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:50:37] Production.INFO: 70.75 MB #Memory Used# [2025-01-07 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:51:05 [end_date_ymd] => 2025-01-07 15:51:05 [RateCDR] => 1 ) [2025-01-07 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:51:05' and `end` < '2025-01-07 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:51:26] Production.INFO: count ==5740 [2025-01-07 15:51:29] Production.ERROR: pbx CDR StartTime 2025-01-07 12:51:05 - End Time 2025-01-07 15:51:05 [2025-01-07 15:51:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195936', 'tblTempUsageDetail_20' ) start [2025-01-07 15:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195936', 'tblTempUsageDetail_20' ) end [2025-01-07 15:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195936', 'tblTempVendorCDR_20' ) start [2025-01-07 15:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195936', 'tblTempVendorCDR_20' ) end [2025-01-07 15:51:29] Production.INFO: ProcessCDR(1,14195936,1,1,2) [2025-01-07 15:51:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:51:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:51:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:51:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195936', 'tblTempUsageDetail_20' ) start [2025-01-07 15:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195936', 'tblTempUsageDetail_20' ) end [2025-01-07 15:51:33] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:51:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:51:33] Production.INFO: ==24987== Releasing lock... [2025-01-07 15:51:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:51:33] Production.INFO: 71 MB #Memory Used# [2025-01-07 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:52:05 [end_date_ymd] => 2025-01-07 15:52:05 [RateCDR] => 1 ) [2025-01-07 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:52:05' and `end` < '2025-01-07 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:52:22] Production.INFO: count ==5741 [2025-01-07 15:52:24] Production.ERROR: pbx CDR StartTime 2025-01-07 12:52:05 - End Time 2025-01-07 15:52:05 [2025-01-07 15:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195941', 'tblTempUsageDetail_20' ) start [2025-01-07 15:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195941', 'tblTempUsageDetail_20' ) end [2025-01-07 15:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195941', 'tblTempVendorCDR_20' ) start [2025-01-07 15:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195941', 'tblTempVendorCDR_20' ) end [2025-01-07 15:52:25] Production.INFO: ProcessCDR(1,14195941,1,1,2) [2025-01-07 15:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195941', 'tblTempUsageDetail_20' ) start [2025-01-07 15:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195941', 'tblTempUsageDetail_20' ) end [2025-01-07 15:52:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:52:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:52:29] Production.INFO: ==25057== Releasing lock... [2025-01-07 15:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:52:29] Production.INFO: 71 MB #Memory Used# [2025-01-07 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:53:05 [end_date_ymd] => 2025-01-07 15:53:05 [RateCDR] => 1 ) [2025-01-07 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:53:05' and `end` < '2025-01-07 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:53:30] Production.INFO: count ==5751 [2025-01-07 15:53:32] Production.ERROR: pbx CDR StartTime 2025-01-07 12:53:05 - End Time 2025-01-07 15:53:05 [2025-01-07 15:53:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195946', 'tblTempUsageDetail_20' ) start [2025-01-07 15:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195946', 'tblTempUsageDetail_20' ) end [2025-01-07 15:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195946', 'tblTempVendorCDR_20' ) start [2025-01-07 15:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195946', 'tblTempVendorCDR_20' ) end [2025-01-07 15:53:32] Production.INFO: ProcessCDR(1,14195946,1,1,2) [2025-01-07 15:53:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:53:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:53:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:53:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:53:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195946', 'tblTempUsageDetail_20' ) start [2025-01-07 15:53:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195946', 'tblTempUsageDetail_20' ) end [2025-01-07 15:53:36] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:53:36] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:53:36] Production.INFO: ==25129== Releasing lock... [2025-01-07 15:53:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:53:36] Production.INFO: 71 MB #Memory Used# [2025-01-07 15:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:54:04 [end_date_ymd] => 2025-01-07 15:54:04 [RateCDR] => 1 ) [2025-01-07 15:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:54:04' and `end` < '2025-01-07 15:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:54:23] Production.INFO: count ==5745 [2025-01-07 15:54:25] Production.ERROR: pbx CDR StartTime 2025-01-07 12:54:04 - End Time 2025-01-07 15:54:04 [2025-01-07 15:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195951', 'tblTempUsageDetail_20' ) start [2025-01-07 15:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195951', 'tblTempUsageDetail_20' ) end [2025-01-07 15:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195951', 'tblTempVendorCDR_20' ) start [2025-01-07 15:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195951', 'tblTempVendorCDR_20' ) end [2025-01-07 15:54:26] Production.INFO: ProcessCDR(1,14195951,1,1,2) [2025-01-07 15:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:54:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:54:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195951', 'tblTempUsageDetail_20' ) start [2025-01-07 15:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195951', 'tblTempUsageDetail_20' ) end [2025-01-07 15:54:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:54:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:54:30] Production.INFO: ==25202== Releasing lock... [2025-01-07 15:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:54:30] Production.INFO: 71 MB #Memory Used# [2025-01-07 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:55:05 [end_date_ymd] => 2025-01-07 15:55:05 [RateCDR] => 1 ) [2025-01-07 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:55:05' and `end` < '2025-01-07 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:55:19] Production.INFO: count ==5746 [2025-01-07 15:55:22] Production.ERROR: pbx CDR StartTime 2025-01-07 12:55:05 - End Time 2025-01-07 15:55:05 [2025-01-07 15:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195956', 'tblTempUsageDetail_20' ) start [2025-01-07 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195956', 'tblTempUsageDetail_20' ) end [2025-01-07 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195956', 'tblTempVendorCDR_20' ) start [2025-01-07 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195956', 'tblTempVendorCDR_20' ) end [2025-01-07 15:55:22] Production.INFO: ProcessCDR(1,14195956,1,1,2) [2025-01-07 15:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195956', 'tblTempUsageDetail_20' ) start [2025-01-07 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195956', 'tblTempUsageDetail_20' ) end [2025-01-07 15:55:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:55:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:55:26] Production.INFO: ==25271== Releasing lock... [2025-01-07 15:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:55:26] Production.INFO: 71 MB #Memory Used# [2025-01-07 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:56:05 [end_date_ymd] => 2025-01-07 15:56:05 [RateCDR] => 1 ) [2025-01-07 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:56:05' and `end` < '2025-01-07 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:56:30] Production.INFO: count ==5747 [2025-01-07 15:56:32] Production.ERROR: pbx CDR StartTime 2025-01-07 12:56:05 - End Time 2025-01-07 15:56:05 [2025-01-07 15:56:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195961', 'tblTempUsageDetail_20' ) start [2025-01-07 15:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195961', 'tblTempUsageDetail_20' ) end [2025-01-07 15:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195961', 'tblTempVendorCDR_20' ) start [2025-01-07 15:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195961', 'tblTempVendorCDR_20' ) end [2025-01-07 15:56:32] Production.INFO: ProcessCDR(1,14195961,1,1,2) [2025-01-07 15:56:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:56:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:56:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:56:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:56:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195961', 'tblTempUsageDetail_20' ) start [2025-01-07 15:56:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195961', 'tblTempUsageDetail_20' ) end [2025-01-07 15:56:37] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:56:37] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:56:37] Production.INFO: ==25343== Releasing lock... [2025-01-07 15:56:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:56:37] Production.INFO: 71 MB #Memory Used# [2025-01-07 15:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:57:04 [end_date_ymd] => 2025-01-07 15:57:04 [RateCDR] => 1 ) [2025-01-07 15:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:57:04' and `end` < '2025-01-07 15:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:57:23] Production.INFO: count ==5751 [2025-01-07 15:57:26] Production.ERROR: pbx CDR StartTime 2025-01-07 12:57:04 - End Time 2025-01-07 15:57:04 [2025-01-07 15:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195966', 'tblTempUsageDetail_20' ) start [2025-01-07 15:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195966', 'tblTempUsageDetail_20' ) end [2025-01-07 15:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195966', 'tblTempVendorCDR_20' ) start [2025-01-07 15:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195966', 'tblTempVendorCDR_20' ) end [2025-01-07 15:57:26] Production.INFO: ProcessCDR(1,14195966,1,1,2) [2025-01-07 15:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195966', 'tblTempUsageDetail_20' ) start [2025-01-07 15:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195966', 'tblTempUsageDetail_20' ) end [2025-01-07 15:57:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:57:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:57:31] Production.INFO: ==25419== Releasing lock... [2025-01-07 15:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:57:31] Production.INFO: 71 MB #Memory Used# [2025-01-07 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:58:05 [end_date_ymd] => 2025-01-07 15:58:05 [RateCDR] => 1 ) [2025-01-07 15:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:58:05' and `end` < '2025-01-07 15:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:58:27] Production.INFO: count ==5733 [2025-01-07 15:58:30] Production.ERROR: pbx CDR StartTime 2025-01-07 12:58:05 - End Time 2025-01-07 15:58:05 [2025-01-07 15:58:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:58:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195971', 'tblTempUsageDetail_20' ) start [2025-01-07 15:58:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195971', 'tblTempUsageDetail_20' ) end [2025-01-07 15:58:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195971', 'tblTempVendorCDR_20' ) start [2025-01-07 15:58:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195971', 'tblTempVendorCDR_20' ) end [2025-01-07 15:58:30] Production.INFO: ProcessCDR(1,14195971,1,1,2) [2025-01-07 15:58:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:58:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:58:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:58:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:58:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195971', 'tblTempUsageDetail_20' ) start [2025-01-07 15:58:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195971', 'tblTempUsageDetail_20' ) end [2025-01-07 15:58:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:58:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:58:34] Production.INFO: ==25491== Releasing lock... [2025-01-07 15:58:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:58:34] Production.INFO: 71 MB #Memory Used# [2025-01-07 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 12:59:05 [end_date_ymd] => 2025-01-07 15:59:05 [RateCDR] => 1 ) [2025-01-07 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 12:59:05' and `end` < '2025-01-07 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 15:59:24] Production.INFO: count ==5766 [2025-01-07 15:59:26] Production.ERROR: pbx CDR StartTime 2025-01-07 12:59:05 - End Time 2025-01-07 15:59:05 [2025-01-07 15:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195976', 'tblTempUsageDetail_20' ) start [2025-01-07 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195976', 'tblTempUsageDetail_20' ) end [2025-01-07 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195976', 'tblTempVendorCDR_20' ) start [2025-01-07 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195976', 'tblTempVendorCDR_20' ) end [2025-01-07 15:59:26] Production.INFO: ProcessCDR(1,14195976,1,1,2) [2025-01-07 15:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 15:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 15:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195976', 'tblTempUsageDetail_20' ) start [2025-01-07 15:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195976', 'tblTempUsageDetail_20' ) end [2025-01-07 15:59:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 15:59:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 15:59:31] Production.INFO: ==25600== Releasing lock... [2025-01-07 15:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 15:59:31] Production.INFO: 71.25 MB #Memory Used# [2025-01-07 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:00:05 [end_date_ymd] => 2025-01-07 16:00:05 [RateCDR] => 1 ) [2025-01-07 16:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:00:05' and `end` < '2025-01-07 16:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:00:19] Production.INFO: count ==5761 [2025-01-07 16:00:21] Production.ERROR: pbx CDR StartTime 2025-01-07 13:00:05 - End Time 2025-01-07 16:00:05 [2025-01-07 16:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195982', 'tblTempUsageDetail_20' ) start [2025-01-07 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195982', 'tblTempUsageDetail_20' ) end [2025-01-07 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195982', 'tblTempVendorCDR_20' ) start [2025-01-07 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195982', 'tblTempVendorCDR_20' ) end [2025-01-07 16:00:22] Production.INFO: ProcessCDR(1,14195982,1,1,2) [2025-01-07 16:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195982', 'tblTempUsageDetail_20' ) start [2025-01-07 16:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195982', 'tblTempUsageDetail_20' ) end [2025-01-07 16:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:00:26] Production.INFO: ==25671== Releasing lock... [2025-01-07 16:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:00:26] Production.INFO: 71 MB #Memory Used# [2025-01-07 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:01:05 [end_date_ymd] => 2025-01-07 16:01:05 [RateCDR] => 1 ) [2025-01-07 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:01:05' and `end` < '2025-01-07 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:01:24] Production.INFO: count ==5796 [2025-01-07 16:01:26] Production.ERROR: pbx CDR StartTime 2025-01-07 13:01:05 - End Time 2025-01-07 16:01:05 [2025-01-07 16:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195987', 'tblTempUsageDetail_20' ) start [2025-01-07 16:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195987', 'tblTempUsageDetail_20' ) end [2025-01-07 16:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195987', 'tblTempVendorCDR_20' ) start [2025-01-07 16:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195987', 'tblTempVendorCDR_20' ) end [2025-01-07 16:01:26] Production.INFO: ProcessCDR(1,14195987,1,1,2) [2025-01-07 16:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:01:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:01:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:01:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195987', 'tblTempUsageDetail_20' ) start [2025-01-07 16:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195987', 'tblTempUsageDetail_20' ) end [2025-01-07 16:01:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:01:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:01:31] Production.INFO: ==25757== Releasing lock... [2025-01-07 16:01:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:01:31] Production.INFO: 71.25 MB #Memory Used# [2025-01-07 16:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:02:04 [end_date_ymd] => 2025-01-07 16:02:04 [RateCDR] => 1 ) [2025-01-07 16:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:02:04' and `end` < '2025-01-07 16:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:02:21] Production.INFO: count ==5809 [2025-01-07 16:02:23] Production.ERROR: pbx CDR StartTime 2025-01-07 13:02:04 - End Time 2025-01-07 16:02:04 [2025-01-07 16:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195992', 'tblTempUsageDetail_20' ) start [2025-01-07 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195992', 'tblTempUsageDetail_20' ) end [2025-01-07 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195992', 'tblTempVendorCDR_20' ) start [2025-01-07 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195992', 'tblTempVendorCDR_20' ) end [2025-01-07 16:02:23] Production.INFO: ProcessCDR(1,14195992,1,1,2) [2025-01-07 16:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195992', 'tblTempUsageDetail_20' ) start [2025-01-07 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195992', 'tblTempUsageDetail_20' ) end [2025-01-07 16:02:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:02:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:02:27] Production.INFO: ==25826== Releasing lock... [2025-01-07 16:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:02:27] Production.INFO: 71.5 MB #Memory Used# [2025-01-07 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:03:05 [end_date_ymd] => 2025-01-07 16:03:05 [RateCDR] => 1 ) [2025-01-07 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:03:05' and `end` < '2025-01-07 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:03:24] Production.INFO: count ==5822 [2025-01-07 16:03:27] Production.ERROR: pbx CDR StartTime 2025-01-07 13:03:05 - End Time 2025-01-07 16:03:05 [2025-01-07 16:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195997', 'tblTempUsageDetail_20' ) start [2025-01-07 16:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14195997', 'tblTempUsageDetail_20' ) end [2025-01-07 16:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195997', 'tblTempVendorCDR_20' ) start [2025-01-07 16:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14195997', 'tblTempVendorCDR_20' ) end [2025-01-07 16:03:27] Production.INFO: ProcessCDR(1,14195997,1,1,2) [2025-01-07 16:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14195997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14195997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14195997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14195997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195997', 'tblTempUsageDetail_20' ) start [2025-01-07 16:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14195997', 'tblTempUsageDetail_20' ) end [2025-01-07 16:03:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:03:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:03:31] Production.INFO: ==25897== Releasing lock... [2025-01-07 16:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:03:31] Production.INFO: 71.5 MB #Memory Used# [2025-01-07 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:04:05 [end_date_ymd] => 2025-01-07 16:04:05 [RateCDR] => 1 ) [2025-01-07 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:04:05' and `end` < '2025-01-07 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:04:23] Production.INFO: count ==5836 [2025-01-07 16:04:26] Production.ERROR: pbx CDR StartTime 2025-01-07 13:04:05 - End Time 2025-01-07 16:04:05 [2025-01-07 16:04:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196002', 'tblTempUsageDetail_20' ) start [2025-01-07 16:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196002', 'tblTempUsageDetail_20' ) end [2025-01-07 16:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196002', 'tblTempVendorCDR_20' ) start [2025-01-07 16:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196002', 'tblTempVendorCDR_20' ) end [2025-01-07 16:04:26] Production.INFO: ProcessCDR(1,14196002,1,1,2) [2025-01-07 16:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:04:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196002', 'tblTempUsageDetail_20' ) start [2025-01-07 16:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196002', 'tblTempUsageDetail_20' ) end [2025-01-07 16:04:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:04:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:04:31] Production.INFO: ==25968== Releasing lock... [2025-01-07 16:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:04:31] Production.INFO: 71.75 MB #Memory Used# [2025-01-07 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:05:05 [end_date_ymd] => 2025-01-07 16:05:05 [RateCDR] => 1 ) [2025-01-07 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:05:05' and `end` < '2025-01-07 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:05:25] Production.INFO: count ==5837 [2025-01-07 16:05:28] Production.ERROR: pbx CDR StartTime 2025-01-07 13:05:05 - End Time 2025-01-07 16:05:05 [2025-01-07 16:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196007', 'tblTempUsageDetail_20' ) start [2025-01-07 16:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196007', 'tblTempUsageDetail_20' ) end [2025-01-07 16:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196007', 'tblTempVendorCDR_20' ) start [2025-01-07 16:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196007', 'tblTempVendorCDR_20' ) end [2025-01-07 16:05:28] Production.INFO: ProcessCDR(1,14196007,1,1,2) [2025-01-07 16:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196007', 'tblTempUsageDetail_20' ) start [2025-01-07 16:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196007', 'tblTempUsageDetail_20' ) end [2025-01-07 16:05:33] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:05:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:05:33] Production.INFO: ==26037== Releasing lock... [2025-01-07 16:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:05:33] Production.INFO: 71.75 MB #Memory Used# [2025-01-07 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:06:05 [end_date_ymd] => 2025-01-07 16:06:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 13:06:05' and `end` < '2025-01-07 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-01-07 16:06:27] Production.INFO: count ==5838 [2025-01-07 16:06:30] Production.ERROR: pbx CDR StartTime 2025-01-07 13:06:05 - End Time 2025-01-07 16:06:05 [2025-01-07 16:06:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196012', 'tblTempUsageDetail_20' ) start [2025-01-07 16:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196012', 'tblTempUsageDetail_20' ) end [2025-01-07 16:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196012', 'tblTempVendorCDR_20' ) start [2025-01-07 16:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196012', 'tblTempVendorCDR_20' ) end [2025-01-07 16:06:30] Production.INFO: ProcessCDR(1,14196012,1,1,2) [2025-01-07 16:06:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:06:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:06:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:06:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196012', 'tblTempUsageDetail_20' ) start [2025-01-07 16:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196012', 'tblTempUsageDetail_20' ) end [2025-01-07 16:06:35] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:06:35] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:06:35] Production.INFO: ==26111== Releasing lock... [2025-01-07 16:06:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:06:35] Production.INFO: 71.75 MB #Memory Used# [2025-01-07 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:07:05 [end_date_ymd] => 2025-01-07 16:07:05 [RateCDR] => 1 ) [2025-01-07 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:07:05' and `end` < '2025-01-07 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:07:21] Production.INFO: count ==5829 [2025-01-07 16:07:23] Production.ERROR: pbx CDR StartTime 2025-01-07 13:07:05 - End Time 2025-01-07 16:07:05 [2025-01-07 16:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196017', 'tblTempUsageDetail_20' ) start [2025-01-07 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196017', 'tblTempUsageDetail_20' ) end [2025-01-07 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196017', 'tblTempVendorCDR_20' ) start [2025-01-07 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196017', 'tblTempVendorCDR_20' ) end [2025-01-07 16:07:23] Production.INFO: ProcessCDR(1,14196017,1,1,2) [2025-01-07 16:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196017', 'tblTempUsageDetail_20' ) start [2025-01-07 16:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196017', 'tblTempUsageDetail_20' ) end [2025-01-07 16:07:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:07:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:07:28] Production.INFO: ==26180== Releasing lock... [2025-01-07 16:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:07:28] Production.INFO: 71.5 MB #Memory Used# [2025-01-07 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:08:05 [end_date_ymd] => 2025-01-07 16:08:05 [RateCDR] => 1 ) [2025-01-07 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:08:05' and `end` < '2025-01-07 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:08:29] Production.INFO: count ==5817 [2025-01-07 16:08:31] Production.ERROR: pbx CDR StartTime 2025-01-07 13:08:05 - End Time 2025-01-07 16:08:05 [2025-01-07 16:08:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196022', 'tblTempUsageDetail_20' ) start [2025-01-07 16:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196022', 'tblTempUsageDetail_20' ) end [2025-01-07 16:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196022', 'tblTempVendorCDR_20' ) start [2025-01-07 16:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196022', 'tblTempVendorCDR_20' ) end [2025-01-07 16:08:31] Production.INFO: ProcessCDR(1,14196022,1,1,2) [2025-01-07 16:08:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:08:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:08:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:08:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:08:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196022', 'tblTempUsageDetail_20' ) start [2025-01-07 16:08:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196022', 'tblTempUsageDetail_20' ) end [2025-01-07 16:08:36] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:08:36] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:08:36] Production.INFO: ==26251== Releasing lock... [2025-01-07 16:08:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:08:36] Production.INFO: 71.5 MB #Memory Used# [2025-01-07 16:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:09:04 [end_date_ymd] => 2025-01-07 16:09:04 [RateCDR] => 1 ) [2025-01-07 16:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:09:04' and `end` < '2025-01-07 16:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:09:22] Production.INFO: count ==5817 [2025-01-07 16:09:25] Production.ERROR: pbx CDR StartTime 2025-01-07 13:09:04 - End Time 2025-01-07 16:09:04 [2025-01-07 16:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196027', 'tblTempUsageDetail_20' ) start [2025-01-07 16:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196027', 'tblTempUsageDetail_20' ) end [2025-01-07 16:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196027', 'tblTempVendorCDR_20' ) start [2025-01-07 16:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196027', 'tblTempVendorCDR_20' ) end [2025-01-07 16:09:25] Production.INFO: ProcessCDR(1,14196027,1,1,2) [2025-01-07 16:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196027', 'tblTempUsageDetail_20' ) start [2025-01-07 16:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196027', 'tblTempUsageDetail_20' ) end [2025-01-07 16:09:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:09:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:09:29] Production.INFO: ==26323== Releasing lock... [2025-01-07 16:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:09:29] Production.INFO: 71.5 MB #Memory Used# [2025-01-07 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:10:06 [end_date_ymd] => 2025-01-07 16:10:06 [RateCDR] => 1 ) [2025-01-07 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:10:06' and `end` < '2025-01-07 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:10:39] Production.INFO: count ==5804 [2025-01-07 16:10:42] Production.ERROR: pbx CDR StartTime 2025-01-07 13:10:06 - End Time 2025-01-07 16:10:06 [2025-01-07 16:10:42] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:10:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196033', 'tblTempUsageDetail_20' ) start [2025-01-07 16:10:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196033', 'tblTempUsageDetail_20' ) end [2025-01-07 16:10:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196033', 'tblTempVendorCDR_20' ) start [2025-01-07 16:10:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196033', 'tblTempVendorCDR_20' ) end [2025-01-07 16:10:42] Production.INFO: ProcessCDR(1,14196033,1,1,2) [2025-01-07 16:10:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:10:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:10:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:10:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:10:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196033', 'tblTempUsageDetail_20' ) start [2025-01-07 16:10:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196033', 'tblTempUsageDetail_20' ) end [2025-01-07 16:10:47] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:10:47] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:10:47] Production.INFO: ==26400== Releasing lock... [2025-01-07 16:10:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:10:47] Production.INFO: 71.5 MB #Memory Used# [2025-01-07 16:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:11:04 [end_date_ymd] => 2025-01-07 16:11:04 [RateCDR] => 1 ) [2025-01-07 16:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:11:04' and `end` < '2025-01-07 16:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:11:26] Production.INFO: count ==5785 [2025-01-07 16:11:28] Production.ERROR: pbx CDR StartTime 2025-01-07 13:11:04 - End Time 2025-01-07 16:11:04 [2025-01-07 16:11:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196038', 'tblTempUsageDetail_20' ) start [2025-01-07 16:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196038', 'tblTempUsageDetail_20' ) end [2025-01-07 16:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196038', 'tblTempVendorCDR_20' ) start [2025-01-07 16:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196038', 'tblTempVendorCDR_20' ) end [2025-01-07 16:11:28] Production.INFO: ProcessCDR(1,14196038,1,1,2) [2025-01-07 16:11:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:11:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:11:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:11:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196038', 'tblTempUsageDetail_20' ) start [2025-01-07 16:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196038', 'tblTempUsageDetail_20' ) end [2025-01-07 16:11:33] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:11:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:11:33] Production.INFO: ==26475== Releasing lock... [2025-01-07 16:11:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:11:33] Production.INFO: 71.25 MB #Memory Used# [2025-01-07 16:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:12:04 [end_date_ymd] => 2025-01-07 16:12:04 [RateCDR] => 1 ) [2025-01-07 16:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:12:04' and `end` < '2025-01-07 16:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:12:26] Production.INFO: count ==5791 [2025-01-07 16:12:28] Production.ERROR: pbx CDR StartTime 2025-01-07 13:12:04 - End Time 2025-01-07 16:12:04 [2025-01-07 16:12:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196043', 'tblTempUsageDetail_20' ) start [2025-01-07 16:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196043', 'tblTempUsageDetail_20' ) end [2025-01-07 16:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196043', 'tblTempVendorCDR_20' ) start [2025-01-07 16:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196043', 'tblTempVendorCDR_20' ) end [2025-01-07 16:12:28] Production.INFO: ProcessCDR(1,14196043,1,1,2) [2025-01-07 16:12:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:12:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:12:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:12:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196043', 'tblTempUsageDetail_20' ) start [2025-01-07 16:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196043', 'tblTempUsageDetail_20' ) end [2025-01-07 16:12:32] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:12:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:12:33] Production.INFO: ==26547== Releasing lock... [2025-01-07 16:12:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:12:33] Production.INFO: 71.25 MB #Memory Used# [2025-01-07 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:13:05 [end_date_ymd] => 2025-01-07 16:13:05 [RateCDR] => 1 ) [2025-01-07 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:13:05' and `end` < '2025-01-07 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:13:26] Production.INFO: count ==5786 [2025-01-07 16:13:29] Production.ERROR: pbx CDR StartTime 2025-01-07 13:13:05 - End Time 2025-01-07 16:13:05 [2025-01-07 16:13:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196048', 'tblTempUsageDetail_20' ) start [2025-01-07 16:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196048', 'tblTempUsageDetail_20' ) end [2025-01-07 16:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196048', 'tblTempVendorCDR_20' ) start [2025-01-07 16:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196048', 'tblTempVendorCDR_20' ) end [2025-01-07 16:13:29] Production.INFO: ProcessCDR(1,14196048,1,1,2) [2025-01-07 16:13:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:13:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:13:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:13:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196048', 'tblTempUsageDetail_20' ) start [2025-01-07 16:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196048', 'tblTempUsageDetail_20' ) end [2025-01-07 16:13:33] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:13:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:13:33] Production.INFO: ==26619== Releasing lock... [2025-01-07 16:13:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:13:33] Production.INFO: 71.25 MB #Memory Used# [2025-01-07 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:14:05 [end_date_ymd] => 2025-01-07 16:14:05 [RateCDR] => 1 ) [2025-01-07 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:14:05' and `end` < '2025-01-07 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:14:26] Production.INFO: count ==5764 [2025-01-07 16:14:29] Production.ERROR: pbx CDR StartTime 2025-01-07 13:14:05 - End Time 2025-01-07 16:14:05 [2025-01-07 16:14:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196053', 'tblTempUsageDetail_20' ) start [2025-01-07 16:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196053', 'tblTempUsageDetail_20' ) end [2025-01-07 16:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196053', 'tblTempVendorCDR_20' ) start [2025-01-07 16:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196053', 'tblTempVendorCDR_20' ) end [2025-01-07 16:14:29] Production.INFO: ProcessCDR(1,14196053,1,1,2) [2025-01-07 16:14:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:14:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:14:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:14:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196053', 'tblTempUsageDetail_20' ) start [2025-01-07 16:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196053', 'tblTempUsageDetail_20' ) end [2025-01-07 16:14:33] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:14:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:14:33] Production.INFO: ==26690== Releasing lock... [2025-01-07 16:14:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:14:33] Production.INFO: 71.25 MB #Memory Used# [2025-01-07 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:15:05 [end_date_ymd] => 2025-01-07 16:15:05 [RateCDR] => 1 ) [2025-01-07 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:15:05' and `end` < '2025-01-07 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:15:27] Production.INFO: count ==5734 [2025-01-07 16:15:30] Production.ERROR: pbx CDR StartTime 2025-01-07 13:15:05 - End Time 2025-01-07 16:15:05 [2025-01-07 16:15:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196058', 'tblTempUsageDetail_20' ) start [2025-01-07 16:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196058', 'tblTempUsageDetail_20' ) end [2025-01-07 16:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196058', 'tblTempVendorCDR_20' ) start [2025-01-07 16:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196058', 'tblTempVendorCDR_20' ) end [2025-01-07 16:15:30] Production.INFO: ProcessCDR(1,14196058,1,1,2) [2025-01-07 16:15:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:15:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:15:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196058', 'tblTempUsageDetail_20' ) start [2025-01-07 16:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196058', 'tblTempUsageDetail_20' ) end [2025-01-07 16:15:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:15:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:15:34] Production.INFO: ==26799== Releasing lock... [2025-01-07 16:15:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:15:34] Production.INFO: 71 MB #Memory Used# [2025-01-07 16:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:16:04 [end_date_ymd] => 2025-01-07 16:16:04 [RateCDR] => 1 ) [2025-01-07 16:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:16:04' and `end` < '2025-01-07 16:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:16:23] Production.INFO: count ==5732 [2025-01-07 16:16:25] Production.ERROR: pbx CDR StartTime 2025-01-07 13:16:04 - End Time 2025-01-07 16:16:04 [2025-01-07 16:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196063', 'tblTempUsageDetail_20' ) start [2025-01-07 16:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196063', 'tblTempUsageDetail_20' ) end [2025-01-07 16:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196063', 'tblTempVendorCDR_20' ) start [2025-01-07 16:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196063', 'tblTempVendorCDR_20' ) end [2025-01-07 16:16:26] Production.INFO: ProcessCDR(1,14196063,1,1,2) [2025-01-07 16:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196063', 'tblTempUsageDetail_20' ) start [2025-01-07 16:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196063', 'tblTempUsageDetail_20' ) end [2025-01-07 16:16:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:16:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:16:31] Production.INFO: ==26869== Releasing lock... [2025-01-07 16:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:16:31] Production.INFO: 71 MB #Memory Used# [2025-01-07 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:17:05 [end_date_ymd] => 2025-01-07 16:17:05 [RateCDR] => 1 ) [2025-01-07 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:17:05' and `end` < '2025-01-07 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:17:19] Production.INFO: count ==5721 [2025-01-07 16:17:22] Production.ERROR: pbx CDR StartTime 2025-01-07 13:17:05 - End Time 2025-01-07 16:17:05 [2025-01-07 16:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196068', 'tblTempUsageDetail_20' ) start [2025-01-07 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196068', 'tblTempUsageDetail_20' ) end [2025-01-07 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196068', 'tblTempVendorCDR_20' ) start [2025-01-07 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196068', 'tblTempVendorCDR_20' ) end [2025-01-07 16:17:22] Production.INFO: ProcessCDR(1,14196068,1,1,2) [2025-01-07 16:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196068', 'tblTempUsageDetail_20' ) start [2025-01-07 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196068', 'tblTempUsageDetail_20' ) end [2025-01-07 16:17:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:17:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:17:26] Production.INFO: ==26940== Releasing lock... [2025-01-07 16:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:17:26] Production.INFO: 70.75 MB #Memory Used# [2025-01-07 16:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:18:06 [end_date_ymd] => 2025-01-07 16:18:06 [RateCDR] => 1 ) [2025-01-07 16:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:18:06' and `end` < '2025-01-07 16:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:18:20] Production.INFO: count ==5710 [2025-01-07 16:18:22] Production.ERROR: pbx CDR StartTime 2025-01-07 13:18:06 - End Time 2025-01-07 16:18:06 [2025-01-07 16:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196073', 'tblTempUsageDetail_20' ) start [2025-01-07 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196073', 'tblTempUsageDetail_20' ) end [2025-01-07 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196073', 'tblTempVendorCDR_20' ) start [2025-01-07 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196073', 'tblTempVendorCDR_20' ) end [2025-01-07 16:18:22] Production.INFO: ProcessCDR(1,14196073,1,1,2) [2025-01-07 16:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196073', 'tblTempUsageDetail_20' ) start [2025-01-07 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196073', 'tblTempUsageDetail_20' ) end [2025-01-07 16:18:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:18:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:18:27] Production.INFO: ==27020== Releasing lock... [2025-01-07 16:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:18:27] Production.INFO: 70.75 MB #Memory Used# [2025-01-07 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:19:05 [end_date_ymd] => 2025-01-07 16:19:05 [RateCDR] => 1 ) [2025-01-07 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:19:05' and `end` < '2025-01-07 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:19:20] Production.INFO: count ==5714 [2025-01-07 16:19:23] Production.ERROR: pbx CDR StartTime 2025-01-07 13:19:05 - End Time 2025-01-07 16:19:05 [2025-01-07 16:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196078', 'tblTempUsageDetail_20' ) start [2025-01-07 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196078', 'tblTempUsageDetail_20' ) end [2025-01-07 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196078', 'tblTempVendorCDR_20' ) start [2025-01-07 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196078', 'tblTempVendorCDR_20' ) end [2025-01-07 16:19:23] Production.INFO: ProcessCDR(1,14196078,1,1,2) [2025-01-07 16:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196078', 'tblTempUsageDetail_20' ) start [2025-01-07 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196078', 'tblTempUsageDetail_20' ) end [2025-01-07 16:19:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:19:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:19:27] Production.INFO: ==27091== Releasing lock... [2025-01-07 16:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:19:27] Production.INFO: 70.75 MB #Memory Used# [2025-01-07 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:20:05 [end_date_ymd] => 2025-01-07 16:20:05 [RateCDR] => 1 ) [2025-01-07 16:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:20:05' and `end` < '2025-01-07 16:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:20:19] Production.INFO: count ==5736 [2025-01-07 16:20:22] Production.ERROR: pbx CDR StartTime 2025-01-07 13:20:05 - End Time 2025-01-07 16:20:05 [2025-01-07 16:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196083', 'tblTempUsageDetail_20' ) start [2025-01-07 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196083', 'tblTempUsageDetail_20' ) end [2025-01-07 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196083', 'tblTempVendorCDR_20' ) start [2025-01-07 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196083', 'tblTempVendorCDR_20' ) end [2025-01-07 16:20:22] Production.INFO: ProcessCDR(1,14196083,1,1,2) [2025-01-07 16:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196083', 'tblTempUsageDetail_20' ) start [2025-01-07 16:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196083', 'tblTempUsageDetail_20' ) end [2025-01-07 16:20:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:20:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:20:26] Production.INFO: ==27164== Releasing lock... [2025-01-07 16:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:20:26] Production.INFO: 71 MB #Memory Used# [2025-01-07 16:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:21:04 [end_date_ymd] => 2025-01-07 16:21:04 [RateCDR] => 1 ) [2025-01-07 16:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:21:04' and `end` < '2025-01-07 16:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:21:19] Production.INFO: count ==5730 [2025-01-07 16:21:21] Production.ERROR: pbx CDR StartTime 2025-01-07 13:21:04 - End Time 2025-01-07 16:21:04 [2025-01-07 16:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196089', 'tblTempUsageDetail_20' ) start [2025-01-07 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196089', 'tblTempUsageDetail_20' ) end [2025-01-07 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196089', 'tblTempVendorCDR_20' ) start [2025-01-07 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196089', 'tblTempVendorCDR_20' ) end [2025-01-07 16:21:21] Production.INFO: ProcessCDR(1,14196089,1,1,2) [2025-01-07 16:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196089', 'tblTempUsageDetail_20' ) start [2025-01-07 16:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196089', 'tblTempUsageDetail_20' ) end [2025-01-07 16:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:21:26] Production.INFO: ==27237== Releasing lock... [2025-01-07 16:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:21:26] Production.INFO: 71 MB #Memory Used# [2025-01-07 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:22:05 [end_date_ymd] => 2025-01-07 16:22:05 [RateCDR] => 1 ) [2025-01-07 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:22:05' and `end` < '2025-01-07 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:22:22] Production.INFO: count ==5710 [2025-01-07 16:22:24] Production.ERROR: pbx CDR StartTime 2025-01-07 13:22:05 - End Time 2025-01-07 16:22:05 [2025-01-07 16:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196094', 'tblTempUsageDetail_20' ) start [2025-01-07 16:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196094', 'tblTempUsageDetail_20' ) end [2025-01-07 16:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196094', 'tblTempVendorCDR_20' ) start [2025-01-07 16:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196094', 'tblTempVendorCDR_20' ) end [2025-01-07 16:22:24] Production.INFO: ProcessCDR(1,14196094,1,1,2) [2025-01-07 16:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196094', 'tblTempUsageDetail_20' ) start [2025-01-07 16:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196094', 'tblTempUsageDetail_20' ) end [2025-01-07 16:22:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:22:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:22:29] Production.INFO: ==27309== Releasing lock... [2025-01-07 16:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:22:29] Production.INFO: 70.75 MB #Memory Used# [2025-01-07 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:23:05 [end_date_ymd] => 2025-01-07 16:23:05 [RateCDR] => 1 ) [2025-01-07 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:23:05' and `end` < '2025-01-07 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:23:19] Production.INFO: count ==5682 [2025-01-07 16:23:22] Production.ERROR: pbx CDR StartTime 2025-01-07 13:23:05 - End Time 2025-01-07 16:23:05 [2025-01-07 16:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196099', 'tblTempUsageDetail_20' ) start [2025-01-07 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196099', 'tblTempUsageDetail_20' ) end [2025-01-07 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196099', 'tblTempVendorCDR_20' ) start [2025-01-07 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196099', 'tblTempVendorCDR_20' ) end [2025-01-07 16:23:22] Production.INFO: ProcessCDR(1,14196099,1,1,2) [2025-01-07 16:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196099', 'tblTempUsageDetail_20' ) start [2025-01-07 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196099', 'tblTempUsageDetail_20' ) end [2025-01-07 16:23:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:23:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:23:26] Production.INFO: ==27381== Releasing lock... [2025-01-07 16:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:23:26] Production.INFO: 70.5 MB #Memory Used# [2025-01-07 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:24:05 [end_date_ymd] => 2025-01-07 16:24:05 [RateCDR] => 1 ) [2025-01-07 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:24:05' and `end` < '2025-01-07 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:24:28] Production.INFO: count ==5679 [2025-01-07 16:24:31] Production.ERROR: pbx CDR StartTime 2025-01-07 13:24:05 - End Time 2025-01-07 16:24:05 [2025-01-07 16:24:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196104', 'tblTempUsageDetail_20' ) start [2025-01-07 16:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196104', 'tblTempUsageDetail_20' ) end [2025-01-07 16:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196104', 'tblTempVendorCDR_20' ) start [2025-01-07 16:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196104', 'tblTempVendorCDR_20' ) end [2025-01-07 16:24:31] Production.INFO: ProcessCDR(1,14196104,1,1,2) [2025-01-07 16:24:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:24:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:24:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:24:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196104', 'tblTempUsageDetail_20' ) start [2025-01-07 16:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196104', 'tblTempUsageDetail_20' ) end [2025-01-07 16:24:35] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:24:35] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:24:35] Production.INFO: ==27454== Releasing lock... [2025-01-07 16:24:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:24:35] Production.INFO: 70.5 MB #Memory Used# [2025-01-07 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:25:05 [end_date_ymd] => 2025-01-07 16:25:05 [RateCDR] => 1 ) [2025-01-07 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:25:05' and `end` < '2025-01-07 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:25:25] Production.INFO: count ==5675 [2025-01-07 16:25:27] Production.ERROR: pbx CDR StartTime 2025-01-07 13:25:05 - End Time 2025-01-07 16:25:05 [2025-01-07 16:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196109', 'tblTempUsageDetail_20' ) start [2025-01-07 16:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196109', 'tblTempUsageDetail_20' ) end [2025-01-07 16:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196109', 'tblTempVendorCDR_20' ) start [2025-01-07 16:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196109', 'tblTempVendorCDR_20' ) end [2025-01-07 16:25:27] Production.INFO: ProcessCDR(1,14196109,1,1,2) [2025-01-07 16:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196109', 'tblTempUsageDetail_20' ) start [2025-01-07 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196109', 'tblTempUsageDetail_20' ) end [2025-01-07 16:25:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:25:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:25:31] Production.INFO: ==27525== Releasing lock... [2025-01-07 16:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:25:31] Production.INFO: 70.5 MB #Memory Used# [2025-01-07 16:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:26:04 [end_date_ymd] => 2025-01-07 16:26:04 [RateCDR] => 1 ) [2025-01-07 16:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:26:04' and `end` < '2025-01-07 16:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:26:20] Production.INFO: count ==5664 [2025-01-07 16:26:22] Production.ERROR: pbx CDR StartTime 2025-01-07 13:26:04 - End Time 2025-01-07 16:26:04 [2025-01-07 16:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196114', 'tblTempUsageDetail_20' ) start [2025-01-07 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196114', 'tblTempUsageDetail_20' ) end [2025-01-07 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196114', 'tblTempVendorCDR_20' ) start [2025-01-07 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196114', 'tblTempVendorCDR_20' ) end [2025-01-07 16:26:22] Production.INFO: ProcessCDR(1,14196114,1,1,2) [2025-01-07 16:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196114', 'tblTempUsageDetail_20' ) start [2025-01-07 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196114', 'tblTempUsageDetail_20' ) end [2025-01-07 16:26:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:26:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:26:27] Production.INFO: ==27597== Releasing lock... [2025-01-07 16:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:26:27] Production.INFO: 70.5 MB #Memory Used# [2025-01-07 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:27:05 [end_date_ymd] => 2025-01-07 16:27:05 [RateCDR] => 1 ) [2025-01-07 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:27:05' and `end` < '2025-01-07 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:27:26] Production.INFO: count ==5657 [2025-01-07 16:27:29] Production.ERROR: pbx CDR StartTime 2025-01-07 13:27:05 - End Time 2025-01-07 16:27:05 [2025-01-07 16:27:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196119', 'tblTempUsageDetail_20' ) start [2025-01-07 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196119', 'tblTempUsageDetail_20' ) end [2025-01-07 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196119', 'tblTempVendorCDR_20' ) start [2025-01-07 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196119', 'tblTempVendorCDR_20' ) end [2025-01-07 16:27:29] Production.INFO: ProcessCDR(1,14196119,1,1,2) [2025-01-07 16:27:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:27:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:27:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:27:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196119', 'tblTempUsageDetail_20' ) start [2025-01-07 16:27:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196119', 'tblTempUsageDetail_20' ) end [2025-01-07 16:27:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:27:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:27:34] Production.INFO: ==27669== Releasing lock... [2025-01-07 16:27:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:27:34] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:28:05 [end_date_ymd] => 2025-01-07 16:28:05 [RateCDR] => 1 ) [2025-01-07 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:28:05' and `end` < '2025-01-07 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:28:24] Production.INFO: count ==5632 [2025-01-07 16:28:26] Production.ERROR: pbx CDR StartTime 2025-01-07 13:28:05 - End Time 2025-01-07 16:28:05 [2025-01-07 16:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196124', 'tblTempUsageDetail_20' ) start [2025-01-07 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196124', 'tblTempUsageDetail_20' ) end [2025-01-07 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196124', 'tblTempVendorCDR_20' ) start [2025-01-07 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196124', 'tblTempVendorCDR_20' ) end [2025-01-07 16:28:26] Production.INFO: ProcessCDR(1,14196124,1,1,2) [2025-01-07 16:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196124', 'tblTempUsageDetail_20' ) start [2025-01-07 16:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196124', 'tblTempUsageDetail_20' ) end [2025-01-07 16:28:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:28:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:28:31] Production.INFO: ==27739== Releasing lock... [2025-01-07 16:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:28:31] Production.INFO: 70.5 MB #Memory Used# [2025-01-07 16:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:29:04 [end_date_ymd] => 2025-01-07 16:29:04 [RateCDR] => 1 ) [2025-01-07 16:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:29:04' and `end` < '2025-01-07 16:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:29:20] Production.INFO: count ==5642 [2025-01-07 16:29:22] Production.ERROR: pbx CDR StartTime 2025-01-07 13:29:04 - End Time 2025-01-07 16:29:04 [2025-01-07 16:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196129', 'tblTempUsageDetail_20' ) start [2025-01-07 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196129', 'tblTempUsageDetail_20' ) end [2025-01-07 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196129', 'tblTempVendorCDR_20' ) start [2025-01-07 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196129', 'tblTempVendorCDR_20' ) end [2025-01-07 16:29:22] Production.INFO: ProcessCDR(1,14196129,1,1,2) [2025-01-07 16:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196129', 'tblTempUsageDetail_20' ) start [2025-01-07 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196129', 'tblTempUsageDetail_20' ) end [2025-01-07 16:29:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:29:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:29:27] Production.INFO: ==27810== Releasing lock... [2025-01-07 16:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:29:27] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:30:06 [end_date_ymd] => 2025-01-07 16:30:06 [RateCDR] => 1 ) [2025-01-07 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:30:06' and `end` < '2025-01-07 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:30:20] Production.INFO: count ==5642 [2025-01-07 16:30:22] Production.ERROR: pbx CDR StartTime 2025-01-07 13:30:06 - End Time 2025-01-07 16:30:06 [2025-01-07 16:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196135', 'tblTempUsageDetail_20' ) start [2025-01-07 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196135', 'tblTempUsageDetail_20' ) end [2025-01-07 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196135', 'tblTempVendorCDR_20' ) start [2025-01-07 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196135', 'tblTempVendorCDR_20' ) end [2025-01-07 16:30:22] Production.INFO: ProcessCDR(1,14196135,1,1,2) [2025-01-07 16:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196135', 'tblTempUsageDetail_20' ) start [2025-01-07 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196135', 'tblTempUsageDetail_20' ) end [2025-01-07 16:30:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:30:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:30:27] Production.INFO: ==27922== Releasing lock... [2025-01-07 16:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:30:27] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 16:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:31:04 [end_date_ymd] => 2025-01-07 16:31:04 [RateCDR] => 1 ) [2025-01-07 16:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:31:04' and `end` < '2025-01-07 16:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:31:19] Production.INFO: count ==5612 [2025-01-07 16:31:21] Production.ERROR: pbx CDR StartTime 2025-01-07 13:31:04 - End Time 2025-01-07 16:31:04 [2025-01-07 16:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196140', 'tblTempUsageDetail_20' ) start [2025-01-07 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196140', 'tblTempUsageDetail_20' ) end [2025-01-07 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196140', 'tblTempVendorCDR_20' ) start [2025-01-07 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196140', 'tblTempVendorCDR_20' ) end [2025-01-07 16:31:21] Production.INFO: ProcessCDR(1,14196140,1,1,2) [2025-01-07 16:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196140', 'tblTempUsageDetail_20' ) start [2025-01-07 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196140', 'tblTempUsageDetail_20' ) end [2025-01-07 16:31:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:31:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:31:26] Production.INFO: ==27995== Releasing lock... [2025-01-07 16:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:31:26] Production.INFO: 70 MB #Memory Used# [2025-01-07 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:32:05 [end_date_ymd] => 2025-01-07 16:32:05 [RateCDR] => 1 ) [2025-01-07 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:32:05' and `end` < '2025-01-07 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:32:24] Production.INFO: count ==5611 [2025-01-07 16:32:26] Production.ERROR: pbx CDR StartTime 2025-01-07 13:32:05 - End Time 2025-01-07 16:32:05 [2025-01-07 16:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196145', 'tblTempUsageDetail_20' ) start [2025-01-07 16:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196145', 'tblTempUsageDetail_20' ) end [2025-01-07 16:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196145', 'tblTempVendorCDR_20' ) start [2025-01-07 16:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196145', 'tblTempVendorCDR_20' ) end [2025-01-07 16:32:27] Production.INFO: ProcessCDR(1,14196145,1,1,2) [2025-01-07 16:32:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:32:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:32:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:32:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196145', 'tblTempUsageDetail_20' ) start [2025-01-07 16:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196145', 'tblTempUsageDetail_20' ) end [2025-01-07 16:32:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:32:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:32:31] Production.INFO: ==28067== Releasing lock... [2025-01-07 16:32:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:32:31] Production.INFO: 70 MB #Memory Used# [2025-01-07 16:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:33:04 [end_date_ymd] => 2025-01-07 16:33:04 [RateCDR] => 1 ) [2025-01-07 16:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:33:04' and `end` < '2025-01-07 16:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:33:27] Production.INFO: count ==5644 [2025-01-07 16:33:29] Production.ERROR: pbx CDR StartTime 2025-01-07 13:33:04 - End Time 2025-01-07 16:33:04 [2025-01-07 16:33:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196150', 'tblTempUsageDetail_20' ) start [2025-01-07 16:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196150', 'tblTempUsageDetail_20' ) end [2025-01-07 16:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196150', 'tblTempVendorCDR_20' ) start [2025-01-07 16:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196150', 'tblTempVendorCDR_20' ) end [2025-01-07 16:33:29] Production.INFO: ProcessCDR(1,14196150,1,1,2) [2025-01-07 16:33:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:33:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:33:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:33:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:33:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196150', 'tblTempUsageDetail_20' ) start [2025-01-07 16:33:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196150', 'tblTempUsageDetail_20' ) end [2025-01-07 16:33:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:33:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:33:34] Production.INFO: ==28137== Releasing lock... [2025-01-07 16:33:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:33:34] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 16:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:34:04 [end_date_ymd] => 2025-01-07 16:34:04 [RateCDR] => 1 ) [2025-01-07 16:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:34:04' and `end` < '2025-01-07 16:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:34:31] Production.INFO: count ==5663 [2025-01-07 16:34:33] Production.ERROR: pbx CDR StartTime 2025-01-07 13:34:04 - End Time 2025-01-07 16:34:04 [2025-01-07 16:34:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:34:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196155', 'tblTempUsageDetail_20' ) start [2025-01-07 16:34:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196155', 'tblTempUsageDetail_20' ) end [2025-01-07 16:34:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196155', 'tblTempVendorCDR_20' ) start [2025-01-07 16:34:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196155', 'tblTempVendorCDR_20' ) end [2025-01-07 16:34:33] Production.INFO: ProcessCDR(1,14196155,1,1,2) [2025-01-07 16:34:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:34:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:34:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:34:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:34:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196155', 'tblTempUsageDetail_20' ) start [2025-01-07 16:34:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196155', 'tblTempUsageDetail_20' ) end [2025-01-07 16:34:38] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:34:38] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:34:38] Production.INFO: ==28211== Releasing lock... [2025-01-07 16:34:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:34:38] Production.INFO: 70.5 MB #Memory Used# [2025-01-07 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:35:05 [end_date_ymd] => 2025-01-07 16:35:05 [RateCDR] => 1 ) [2025-01-07 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:35:05' and `end` < '2025-01-07 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:35:26] Production.INFO: count ==5652 [2025-01-07 16:35:29] Production.ERROR: pbx CDR StartTime 2025-01-07 13:35:05 - End Time 2025-01-07 16:35:05 [2025-01-07 16:35:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196160', 'tblTempUsageDetail_20' ) start [2025-01-07 16:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196160', 'tblTempUsageDetail_20' ) end [2025-01-07 16:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196160', 'tblTempVendorCDR_20' ) start [2025-01-07 16:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196160', 'tblTempVendorCDR_20' ) end [2025-01-07 16:35:29] Production.INFO: ProcessCDR(1,14196160,1,1,2) [2025-01-07 16:35:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:35:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:35:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:35:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196160', 'tblTempUsageDetail_20' ) start [2025-01-07 16:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196160', 'tblTempUsageDetail_20' ) end [2025-01-07 16:35:33] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:35:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:35:33] Production.INFO: ==28282== Releasing lock... [2025-01-07 16:35:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:35:33] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:36:05 [end_date_ymd] => 2025-01-07 16:36:05 [RateCDR] => 1 ) [2025-01-07 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:36:05' and `end` < '2025-01-07 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:36:21] Production.INFO: count ==5646 [2025-01-07 16:36:24] Production.ERROR: pbx CDR StartTime 2025-01-07 13:36:05 - End Time 2025-01-07 16:36:05 [2025-01-07 16:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196165', 'tblTempUsageDetail_20' ) start [2025-01-07 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196165', 'tblTempUsageDetail_20' ) end [2025-01-07 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196165', 'tblTempVendorCDR_20' ) start [2025-01-07 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196165', 'tblTempVendorCDR_20' ) end [2025-01-07 16:36:24] Production.INFO: ProcessCDR(1,14196165,1,1,2) [2025-01-07 16:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196165', 'tblTempUsageDetail_20' ) start [2025-01-07 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196165', 'tblTempUsageDetail_20' ) end [2025-01-07 16:36:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:36:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:36:28] Production.INFO: ==28354== Releasing lock... [2025-01-07 16:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:36:28] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:37:05 [end_date_ymd] => 2025-01-07 16:37:05 [RateCDR] => 1 ) [2025-01-07 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:37:05' and `end` < '2025-01-07 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:37:19] Production.INFO: count ==5619 [2025-01-07 16:37:22] Production.ERROR: pbx CDR StartTime 2025-01-07 13:37:05 - End Time 2025-01-07 16:37:05 [2025-01-07 16:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196170', 'tblTempUsageDetail_20' ) start [2025-01-07 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196170', 'tblTempUsageDetail_20' ) end [2025-01-07 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196170', 'tblTempVendorCDR_20' ) start [2025-01-07 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196170', 'tblTempVendorCDR_20' ) end [2025-01-07 16:37:22] Production.INFO: ProcessCDR(1,14196170,1,1,2) [2025-01-07 16:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196170', 'tblTempUsageDetail_20' ) start [2025-01-07 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196170', 'tblTempUsageDetail_20' ) end [2025-01-07 16:37:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:37:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:37:27] Production.INFO: ==28430== Releasing lock... [2025-01-07 16:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:37:27] Production.INFO: 70 MB #Memory Used# [2025-01-07 16:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:38:04 [end_date_ymd] => 2025-01-07 16:38:04 [RateCDR] => 1 ) [2025-01-07 16:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:38:04' and `end` < '2025-01-07 16:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:38:19] Production.INFO: count ==5614 [2025-01-07 16:38:21] Production.ERROR: pbx CDR StartTime 2025-01-07 13:38:04 - End Time 2025-01-07 16:38:04 [2025-01-07 16:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196175', 'tblTempUsageDetail_20' ) start [2025-01-07 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196175', 'tblTempUsageDetail_20' ) end [2025-01-07 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196175', 'tblTempVendorCDR_20' ) start [2025-01-07 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196175', 'tblTempVendorCDR_20' ) end [2025-01-07 16:38:21] Production.INFO: ProcessCDR(1,14196175,1,1,2) [2025-01-07 16:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196175', 'tblTempUsageDetail_20' ) start [2025-01-07 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196175', 'tblTempUsageDetail_20' ) end [2025-01-07 16:38:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:38:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:38:26] Production.INFO: ==28499== Releasing lock... [2025-01-07 16:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:38:26] Production.INFO: 70 MB #Memory Used# [2025-01-07 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:39:05 [end_date_ymd] => 2025-01-07 16:39:05 [RateCDR] => 1 ) [2025-01-07 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:39:05' and `end` < '2025-01-07 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:39:19] Production.INFO: count ==5600 [2025-01-07 16:39:21] Production.ERROR: pbx CDR StartTime 2025-01-07 13:39:05 - End Time 2025-01-07 16:39:05 [2025-01-07 16:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196180', 'tblTempUsageDetail_20' ) start [2025-01-07 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196180', 'tblTempUsageDetail_20' ) end [2025-01-07 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196180', 'tblTempVendorCDR_20' ) start [2025-01-07 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196180', 'tblTempVendorCDR_20' ) end [2025-01-07 16:39:21] Production.INFO: ProcessCDR(1,14196180,1,1,2) [2025-01-07 16:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196180', 'tblTempUsageDetail_20' ) start [2025-01-07 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196180', 'tblTempUsageDetail_20' ) end [2025-01-07 16:39:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:39:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:39:25] Production.INFO: ==28573== Releasing lock... [2025-01-07 16:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:39:25] Production.INFO: 70 MB #Memory Used# [2025-01-07 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:40:06 [end_date_ymd] => 2025-01-07 16:40:06 [RateCDR] => 1 ) [2025-01-07 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:40:06' and `end` < '2025-01-07 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:40:20] Production.INFO: count ==5620 [2025-01-07 16:40:23] Production.ERROR: pbx CDR StartTime 2025-01-07 13:40:06 - End Time 2025-01-07 16:40:06 [2025-01-07 16:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196186', 'tblTempUsageDetail_20' ) start [2025-01-07 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196186', 'tblTempUsageDetail_20' ) end [2025-01-07 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196186', 'tblTempVendorCDR_20' ) start [2025-01-07 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196186', 'tblTempVendorCDR_20' ) end [2025-01-07 16:40:23] Production.INFO: ProcessCDR(1,14196186,1,1,2) [2025-01-07 16:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196186', 'tblTempUsageDetail_20' ) start [2025-01-07 16:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196186', 'tblTempUsageDetail_20' ) end [2025-01-07 16:40:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:40:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:40:26] Production.INFO: ==28646== Releasing lock... [2025-01-07 16:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:40:26] Production.INFO: 70 MB #Memory Used# [2025-01-07 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:41:05 [end_date_ymd] => 2025-01-07 16:41:05 [RateCDR] => 1 ) [2025-01-07 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:41:05' and `end` < '2025-01-07 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:41:24] Production.INFO: count ==5630 [2025-01-07 16:41:26] Production.ERROR: pbx CDR StartTime 2025-01-07 13:41:05 - End Time 2025-01-07 16:41:05 [2025-01-07 16:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196191', 'tblTempUsageDetail_20' ) start [2025-01-07 16:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196191', 'tblTempUsageDetail_20' ) end [2025-01-07 16:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196191', 'tblTempVendorCDR_20' ) start [2025-01-07 16:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196191', 'tblTempVendorCDR_20' ) end [2025-01-07 16:41:27] Production.INFO: ProcessCDR(1,14196191,1,1,2) [2025-01-07 16:41:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196191', 'tblTempUsageDetail_20' ) start [2025-01-07 16:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196191', 'tblTempUsageDetail_20' ) end [2025-01-07 16:41:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:41:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:41:31] Production.INFO: ==28717== Releasing lock... [2025-01-07 16:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:41:31] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:42:05 [end_date_ymd] => 2025-01-07 16:42:05 [RateCDR] => 1 ) [2025-01-07 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:42:05' and `end` < '2025-01-07 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:42:29] Production.INFO: count ==5633 [2025-01-07 16:42:31] Production.ERROR: pbx CDR StartTime 2025-01-07 13:42:05 - End Time 2025-01-07 16:42:05 [2025-01-07 16:42:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:42:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196196', 'tblTempUsageDetail_20' ) start [2025-01-07 16:42:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196196', 'tblTempUsageDetail_20' ) end [2025-01-07 16:42:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196196', 'tblTempVendorCDR_20' ) start [2025-01-07 16:42:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196196', 'tblTempVendorCDR_20' ) end [2025-01-07 16:42:32] Production.INFO: ProcessCDR(1,14196196,1,1,2) [2025-01-07 16:42:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:42:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:42:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:42:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:42:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196196', 'tblTempUsageDetail_20' ) start [2025-01-07 16:42:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196196', 'tblTempUsageDetail_20' ) end [2025-01-07 16:42:36] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:42:36] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:42:36] Production.INFO: ==28789== Releasing lock... [2025-01-07 16:42:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:42:36] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 16:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:43:04 [end_date_ymd] => 2025-01-07 16:43:04 [RateCDR] => 1 ) [2025-01-07 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-01-07 13:43:04' and `end` < '2025-01-07 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-01-07 16:43:26] Production.INFO: count ==5631 [2025-01-07 16:43:28] Production.ERROR: pbx CDR StartTime 2025-01-07 13:43:04 - End Time 2025-01-07 16:43:04 [2025-01-07 16:43:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196201', 'tblTempUsageDetail_20' ) start [2025-01-07 16:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196201', 'tblTempUsageDetail_20' ) end [2025-01-07 16:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196201', 'tblTempVendorCDR_20' ) start [2025-01-07 16:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196201', 'tblTempVendorCDR_20' ) end [2025-01-07 16:43:28] Production.INFO: ProcessCDR(1,14196201,1,1,2) [2025-01-07 16:43:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:43:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:43:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:43:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196201', 'tblTempUsageDetail_20' ) start [2025-01-07 16:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196201', 'tblTempUsageDetail_20' ) end [2025-01-07 16:43:33] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:43:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:43:33] Production.INFO: ==28860== Releasing lock... [2025-01-07 16:43:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:43:33] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:44:05 [end_date_ymd] => 2025-01-07 16:44:05 [RateCDR] => 1 ) [2025-01-07 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:44:05' and `end` < '2025-01-07 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:44:22] Production.INFO: count ==5643 [2025-01-07 16:44:24] Production.ERROR: pbx CDR StartTime 2025-01-07 13:44:05 - End Time 2025-01-07 16:44:05 [2025-01-07 16:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196206', 'tblTempUsageDetail_20' ) start [2025-01-07 16:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196206', 'tblTempUsageDetail_20' ) end [2025-01-07 16:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196206', 'tblTempVendorCDR_20' ) start [2025-01-07 16:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196206', 'tblTempVendorCDR_20' ) end [2025-01-07 16:44:25] Production.INFO: ProcessCDR(1,14196206,1,1,2) [2025-01-07 16:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196206', 'tblTempUsageDetail_20' ) start [2025-01-07 16:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196206', 'tblTempUsageDetail_20' ) end [2025-01-07 16:44:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:44:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:44:29] Production.INFO: ==28934== Releasing lock... [2025-01-07 16:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:44:29] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 16:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:45:04 [end_date_ymd] => 2025-01-07 16:45:04 [RateCDR] => 1 ) [2025-01-07 16:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:45:04' and `end` < '2025-01-07 16:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:45:32] Production.INFO: count ==5655 [2025-01-07 16:45:34] Production.ERROR: pbx CDR StartTime 2025-01-07 13:45:04 - End Time 2025-01-07 16:45:04 [2025-01-07 16:45:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:45:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196211', 'tblTempUsageDetail_20' ) start [2025-01-07 16:45:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196211', 'tblTempUsageDetail_20' ) end [2025-01-07 16:45:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196211', 'tblTempVendorCDR_20' ) start [2025-01-07 16:45:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196211', 'tblTempVendorCDR_20' ) end [2025-01-07 16:45:34] Production.INFO: ProcessCDR(1,14196211,1,1,2) [2025-01-07 16:45:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:45:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:45:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:45:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:45:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196211', 'tblTempUsageDetail_20' ) start [2025-01-07 16:45:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196211', 'tblTempUsageDetail_20' ) end [2025-01-07 16:45:39] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:45:39] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:45:39] Production.INFO: ==29002== Releasing lock... [2025-01-07 16:45:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:45:39] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:46:05 [end_date_ymd] => 2025-01-07 16:46:05 [RateCDR] => 1 ) [2025-01-07 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:46:05' and `end` < '2025-01-07 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:46:38] Production.INFO: count ==5643 [2025-01-07 16:46:41] Production.ERROR: pbx CDR StartTime 2025-01-07 13:46:05 - End Time 2025-01-07 16:46:05 [2025-01-07 16:46:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:46:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196216', 'tblTempUsageDetail_20' ) start [2025-01-07 16:46:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196216', 'tblTempUsageDetail_20' ) end [2025-01-07 16:46:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196216', 'tblTempVendorCDR_20' ) start [2025-01-07 16:46:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196216', 'tblTempVendorCDR_20' ) end [2025-01-07 16:46:41] Production.INFO: ProcessCDR(1,14196216,1,1,2) [2025-01-07 16:46:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:46:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:46:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:46:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:46:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196216', 'tblTempUsageDetail_20' ) start [2025-01-07 16:46:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196216', 'tblTempUsageDetail_20' ) end [2025-01-07 16:46:45] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:46:45] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:46:45] Production.INFO: ==29112== Releasing lock... [2025-01-07 16:46:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:46:45] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 16:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:47:04 [end_date_ymd] => 2025-01-07 16:47:04 [RateCDR] => 1 ) [2025-01-07 16:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:47:04' and `end` < '2025-01-07 16:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:47:30] Production.INFO: count ==5657 [2025-01-07 16:47:32] Production.ERROR: pbx CDR StartTime 2025-01-07 13:47:04 - End Time 2025-01-07 16:47:04 [2025-01-07 16:47:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196221', 'tblTempUsageDetail_20' ) start [2025-01-07 16:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196221', 'tblTempUsageDetail_20' ) end [2025-01-07 16:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196221', 'tblTempVendorCDR_20' ) start [2025-01-07 16:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196221', 'tblTempVendorCDR_20' ) end [2025-01-07 16:47:32] Production.INFO: ProcessCDR(1,14196221,1,1,2) [2025-01-07 16:47:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:47:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:47:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:47:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:47:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196221', 'tblTempUsageDetail_20' ) start [2025-01-07 16:47:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196221', 'tblTempUsageDetail_20' ) end [2025-01-07 16:47:37] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:47:37] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:47:37] Production.INFO: ==29184== Releasing lock... [2025-01-07 16:47:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:47:37] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:48:05 [end_date_ymd] => 2025-01-07 16:48:05 [RateCDR] => 1 ) [2025-01-07 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:48:05' and `end` < '2025-01-07 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:48:27] Production.INFO: count ==5645 [2025-01-07 16:48:29] Production.ERROR: pbx CDR StartTime 2025-01-07 13:48:05 - End Time 2025-01-07 16:48:05 [2025-01-07 16:48:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196226', 'tblTempUsageDetail_20' ) start [2025-01-07 16:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196226', 'tblTempUsageDetail_20' ) end [2025-01-07 16:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196226', 'tblTempVendorCDR_20' ) start [2025-01-07 16:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196226', 'tblTempVendorCDR_20' ) end [2025-01-07 16:48:29] Production.INFO: ProcessCDR(1,14196226,1,1,2) [2025-01-07 16:48:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:48:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:48:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:48:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:48:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196226', 'tblTempUsageDetail_20' ) start [2025-01-07 16:48:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196226', 'tblTempUsageDetail_20' ) end [2025-01-07 16:48:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:48:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:48:34] Production.INFO: ==29256== Releasing lock... [2025-01-07 16:48:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:48:34] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:49:05 [end_date_ymd] => 2025-01-07 16:49:05 [RateCDR] => 1 ) [2025-01-07 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:49:05' and `end` < '2025-01-07 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:49:25] Production.INFO: count ==5640 [2025-01-07 16:49:27] Production.ERROR: pbx CDR StartTime 2025-01-07 13:49:05 - End Time 2025-01-07 16:49:05 [2025-01-07 16:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196231', 'tblTempUsageDetail_20' ) start [2025-01-07 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196231', 'tblTempUsageDetail_20' ) end [2025-01-07 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196231', 'tblTempVendorCDR_20' ) start [2025-01-07 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196231', 'tblTempVendorCDR_20' ) end [2025-01-07 16:49:27] Production.INFO: ProcessCDR(1,14196231,1,1,2) [2025-01-07 16:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:49:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:49:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:49:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196231', 'tblTempUsageDetail_20' ) start [2025-01-07 16:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196231', 'tblTempUsageDetail_20' ) end [2025-01-07 16:49:32] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:49:32] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:49:32] Production.INFO: ==29327== Releasing lock... [2025-01-07 16:49:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:49:32] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:50:05 [end_date_ymd] => 2025-01-07 16:50:05 [RateCDR] => 1 ) [2025-01-07 16:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:50:05' and `end` < '2025-01-07 16:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:50:34] Production.INFO: count ==5678 [2025-01-07 16:50:36] Production.ERROR: pbx CDR StartTime 2025-01-07 13:50:05 - End Time 2025-01-07 16:50:05 [2025-01-07 16:50:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196237', 'tblTempUsageDetail_20' ) start [2025-01-07 16:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196237', 'tblTempUsageDetail_20' ) end [2025-01-07 16:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196237', 'tblTempVendorCDR_20' ) start [2025-01-07 16:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196237', 'tblTempVendorCDR_20' ) end [2025-01-07 16:50:36] Production.INFO: ProcessCDR(1,14196237,1,1,2) [2025-01-07 16:50:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:50:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:50:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:50:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:50:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196237', 'tblTempUsageDetail_20' ) start [2025-01-07 16:50:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196237', 'tblTempUsageDetail_20' ) end [2025-01-07 16:50:41] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:50:41] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:50:41] Production.INFO: ==29404== Releasing lock... [2025-01-07 16:50:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:50:41] Production.INFO: 70.5 MB #Memory Used# [2025-01-07 16:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:51:04 [end_date_ymd] => 2025-01-07 16:51:04 [RateCDR] => 1 ) [2025-01-07 16:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:51:04' and `end` < '2025-01-07 16:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:51:26] Production.INFO: count ==5701 [2025-01-07 16:51:28] Production.ERROR: pbx CDR StartTime 2025-01-07 13:51:04 - End Time 2025-01-07 16:51:04 [2025-01-07 16:51:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196242', 'tblTempUsageDetail_20' ) start [2025-01-07 16:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196242', 'tblTempUsageDetail_20' ) end [2025-01-07 16:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196242', 'tblTempVendorCDR_20' ) start [2025-01-07 16:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196242', 'tblTempVendorCDR_20' ) end [2025-01-07 16:51:28] Production.INFO: ProcessCDR(1,14196242,1,1,2) [2025-01-07 16:51:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:51:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:51:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:51:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196242', 'tblTempUsageDetail_20' ) start [2025-01-07 16:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196242', 'tblTempUsageDetail_20' ) end [2025-01-07 16:51:33] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:51:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:51:33] Production.INFO: ==29477== Releasing lock... [2025-01-07 16:51:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:51:33] Production.INFO: 70.75 MB #Memory Used# [2025-01-07 16:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:52:04 [end_date_ymd] => 2025-01-07 16:52:04 [RateCDR] => 1 ) [2025-01-07 16:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:52:04' and `end` < '2025-01-07 16:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:52:23] Production.INFO: count ==5681 [2025-01-07 16:52:25] Production.ERROR: pbx CDR StartTime 2025-01-07 13:52:04 - End Time 2025-01-07 16:52:04 [2025-01-07 16:52:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196247', 'tblTempUsageDetail_20' ) start [2025-01-07 16:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196247', 'tblTempUsageDetail_20' ) end [2025-01-07 16:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196247', 'tblTempVendorCDR_20' ) start [2025-01-07 16:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196247', 'tblTempVendorCDR_20' ) end [2025-01-07 16:52:26] Production.INFO: ProcessCDR(1,14196247,1,1,2) [2025-01-07 16:52:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196247', 'tblTempUsageDetail_20' ) start [2025-01-07 16:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196247', 'tblTempUsageDetail_20' ) end [2025-01-07 16:52:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:52:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:52:30] Production.INFO: ==29549== Releasing lock... [2025-01-07 16:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:52:30] Production.INFO: 70.5 MB #Memory Used# [2025-01-07 16:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:53:04 [end_date_ymd] => 2025-01-07 16:53:04 [RateCDR] => 1 ) [2025-01-07 16:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:53:04' and `end` < '2025-01-07 16:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:53:18] Production.INFO: count ==5659 [2025-01-07 16:53:21] Production.ERROR: pbx CDR StartTime 2025-01-07 13:53:04 - End Time 2025-01-07 16:53:04 [2025-01-07 16:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196252', 'tblTempUsageDetail_20' ) start [2025-01-07 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196252', 'tblTempUsageDetail_20' ) end [2025-01-07 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196252', 'tblTempVendorCDR_20' ) start [2025-01-07 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196252', 'tblTempVendorCDR_20' ) end [2025-01-07 16:53:21] Production.INFO: ProcessCDR(1,14196252,1,1,2) [2025-01-07 16:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196252', 'tblTempUsageDetail_20' ) start [2025-01-07 16:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196252', 'tblTempUsageDetail_20' ) end [2025-01-07 16:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:53:25] Production.INFO: ==29619== Releasing lock... [2025-01-07 16:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:53:25] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:54:05 [end_date_ymd] => 2025-01-07 16:54:05 [RateCDR] => 1 ) [2025-01-07 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:54:05' and `end` < '2025-01-07 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:54:30] Production.INFO: count ==5667 [2025-01-07 16:54:33] Production.ERROR: pbx CDR StartTime 2025-01-07 13:54:05 - End Time 2025-01-07 16:54:05 [2025-01-07 16:54:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196257', 'tblTempUsageDetail_20' ) start [2025-01-07 16:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196257', 'tblTempUsageDetail_20' ) end [2025-01-07 16:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196257', 'tblTempVendorCDR_20' ) start [2025-01-07 16:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196257', 'tblTempVendorCDR_20' ) end [2025-01-07 16:54:33] Production.INFO: ProcessCDR(1,14196257,1,1,2) [2025-01-07 16:54:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:54:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:54:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:54:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:54:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196257', 'tblTempUsageDetail_20' ) start [2025-01-07 16:54:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196257', 'tblTempUsageDetail_20' ) end [2025-01-07 16:54:37] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:54:37] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:54:37] Production.INFO: ==29690== Releasing lock... [2025-01-07 16:54:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:54:37] Production.INFO: 70.5 MB #Memory Used# [2025-01-07 16:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:55:04 [end_date_ymd] => 2025-01-07 16:55:04 [RateCDR] => 1 ) [2025-01-07 16:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:55:04' and `end` < '2025-01-07 16:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:55:32] Production.INFO: count ==5643 [2025-01-07 16:55:35] Production.ERROR: pbx CDR StartTime 2025-01-07 13:55:04 - End Time 2025-01-07 16:55:04 [2025-01-07 16:55:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:55:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196262', 'tblTempUsageDetail_20' ) start [2025-01-07 16:55:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196262', 'tblTempUsageDetail_20' ) end [2025-01-07 16:55:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196262', 'tblTempVendorCDR_20' ) start [2025-01-07 16:55:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196262', 'tblTempVendorCDR_20' ) end [2025-01-07 16:55:35] Production.INFO: ProcessCDR(1,14196262,1,1,2) [2025-01-07 16:55:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:55:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:55:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:55:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:55:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196262', 'tblTempUsageDetail_20' ) start [2025-01-07 16:55:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196262', 'tblTempUsageDetail_20' ) end [2025-01-07 16:55:40] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:55:40] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:55:40] Production.INFO: ==29761== Releasing lock... [2025-01-07 16:55:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:55:40] Production.INFO: 70.5 MB #Memory Used# [2025-01-07 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:56:06 [end_date_ymd] => 2025-01-07 16:56:06 [RateCDR] => 1 ) [2025-01-07 16:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:56:06' and `end` < '2025-01-07 16:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:56:36] Production.INFO: count ==5680 [2025-01-07 16:56:38] Production.ERROR: pbx CDR StartTime 2025-01-07 13:56:06 - End Time 2025-01-07 16:56:06 [2025-01-07 16:56:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:56:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196267', 'tblTempUsageDetail_20' ) start [2025-01-07 16:56:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196267', 'tblTempUsageDetail_20' ) end [2025-01-07 16:56:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196267', 'tblTempVendorCDR_20' ) start [2025-01-07 16:56:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196267', 'tblTempVendorCDR_20' ) end [2025-01-07 16:56:39] Production.INFO: ProcessCDR(1,14196267,1,1,2) [2025-01-07 16:56:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:56:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:56:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:56:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:56:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196267', 'tblTempUsageDetail_20' ) start [2025-01-07 16:56:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196267', 'tblTempUsageDetail_20' ) end [2025-01-07 16:56:44] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:56:44] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:56:44] Production.INFO: ==29833== Releasing lock... [2025-01-07 16:56:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:56:44] Production.INFO: 70.5 MB #Memory Used# [2025-01-07 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:57:05 [end_date_ymd] => 2025-01-07 16:57:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 13:57:05' and `end` < '2025-01-07 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-01-07 16:57:26] Production.INFO: count ==5686 [2025-01-07 16:57:28] Production.ERROR: pbx CDR StartTime 2025-01-07 13:57:05 - End Time 2025-01-07 16:57:05 [2025-01-07 16:57:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196272', 'tblTempUsageDetail_20' ) start [2025-01-07 16:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196272', 'tblTempUsageDetail_20' ) end [2025-01-07 16:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196272', 'tblTempVendorCDR_20' ) start [2025-01-07 16:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196272', 'tblTempVendorCDR_20' ) end [2025-01-07 16:57:28] Production.INFO: ProcessCDR(1,14196272,1,1,2) [2025-01-07 16:57:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:57:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:57:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:57:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:57:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196272', 'tblTempUsageDetail_20' ) start [2025-01-07 16:57:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196272', 'tblTempUsageDetail_20' ) end [2025-01-07 16:57:33] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:57:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:57:33] Production.INFO: ==29903== Releasing lock... [2025-01-07 16:57:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:57:33] Production.INFO: 70.5 MB #Memory Used# [2025-01-07 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:58:05 [end_date_ymd] => 2025-01-07 16:58:05 [RateCDR] => 1 ) [2025-01-07 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 13:58:05' and `end` < '2025-01-07 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 16:58:22] Production.INFO: count ==5679 [2025-01-07 16:58:24] Production.ERROR: pbx CDR StartTime 2025-01-07 13:58:05 - End Time 2025-01-07 16:58:05 [2025-01-07 16:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196277', 'tblTempUsageDetail_20' ) start [2025-01-07 16:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196277', 'tblTempUsageDetail_20' ) end [2025-01-07 16:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196277', 'tblTempVendorCDR_20' ) start [2025-01-07 16:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196277', 'tblTempVendorCDR_20' ) end [2025-01-07 16:58:25] Production.INFO: ProcessCDR(1,14196277,1,1,2) [2025-01-07 16:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196277', 'tblTempUsageDetail_20' ) start [2025-01-07 16:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196277', 'tblTempUsageDetail_20' ) end [2025-01-07 16:58:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:58:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:58:29] Production.INFO: ==29972== Releasing lock... [2025-01-07 16:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:58:29] Production.INFO: 70.5 MB #Memory Used# [2025-01-07 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 13:59:05 [end_date_ymd] => 2025-01-07 16:59:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 13:59:05' and `end` < '2025-01-07 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-01-07 16:59:19] Production.INFO: count ==5681 [2025-01-07 16:59:22] Production.ERROR: pbx CDR StartTime 2025-01-07 13:59:05 - End Time 2025-01-07 16:59:05 [2025-01-07 16:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196282', 'tblTempUsageDetail_20' ) start [2025-01-07 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196282', 'tblTempUsageDetail_20' ) end [2025-01-07 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196282', 'tblTempVendorCDR_20' ) start [2025-01-07 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196282', 'tblTempVendorCDR_20' ) end [2025-01-07 16:59:22] Production.INFO: ProcessCDR(1,14196282,1,1,2) [2025-01-07 16:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 16:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196282', 'tblTempUsageDetail_20' ) start [2025-01-07 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196282', 'tblTempUsageDetail_20' ) end [2025-01-07 16:59:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 16:59:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 16:59:27] Production.INFO: ==30043== Releasing lock... [2025-01-07 16:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 16:59:27] Production.INFO: 70.5 MB #Memory Used# [2025-01-07 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:00:06 [end_date_ymd] => 2025-01-07 17:00:06 [RateCDR] => 1 ) [2025-01-07 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:00:06' and `end` < '2025-01-07 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:00:28] Production.INFO: count ==5682 [2025-01-07 17:00:31] Production.ERROR: pbx CDR StartTime 2025-01-07 14:00:06 - End Time 2025-01-07 17:00:06 [2025-01-07 17:00:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196287', 'tblTempUsageDetail_20' ) start [2025-01-07 17:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196287', 'tblTempUsageDetail_20' ) end [2025-01-07 17:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196287', 'tblTempVendorCDR_20' ) start [2025-01-07 17:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196287', 'tblTempVendorCDR_20' ) end [2025-01-07 17:00:31] Production.INFO: ProcessCDR(1,14196287,1,1,2) [2025-01-07 17:00:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:00:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:00:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196287', 'tblTempUsageDetail_20' ) start [2025-01-07 17:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196287', 'tblTempUsageDetail_20' ) end [2025-01-07 17:00:36] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:00:36] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:00:36] Production.INFO: ==30116== Releasing lock... [2025-01-07 17:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:00:36] Production.INFO: 70.5 MB #Memory Used# [2025-01-07 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:01:05 [end_date_ymd] => 2025-01-07 17:01:05 [RateCDR] => 1 ) [2025-01-07 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:01:05' and `end` < '2025-01-07 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:01:23] Production.INFO: count ==5650 [2025-01-07 17:01:25] Production.ERROR: pbx CDR StartTime 2025-01-07 14:01:05 - End Time 2025-01-07 17:01:05 [2025-01-07 17:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196293', 'tblTempUsageDetail_20' ) start [2025-01-07 17:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196293', 'tblTempUsageDetail_20' ) end [2025-01-07 17:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196293', 'tblTempVendorCDR_20' ) start [2025-01-07 17:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196293', 'tblTempVendorCDR_20' ) end [2025-01-07 17:01:25] Production.INFO: ProcessCDR(1,14196293,1,1,2) [2025-01-07 17:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196293', 'tblTempUsageDetail_20' ) start [2025-01-07 17:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196293', 'tblTempUsageDetail_20' ) end [2025-01-07 17:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:01:30] Production.INFO: ==30199== Releasing lock... [2025-01-07 17:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:01:30] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:02:05 [end_date_ymd] => 2025-01-07 17:02:05 [RateCDR] => 1 ) [2025-01-07 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:02:05' and `end` < '2025-01-07 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:02:19] Production.INFO: count ==5647 [2025-01-07 17:02:22] Production.ERROR: pbx CDR StartTime 2025-01-07 14:02:05 - End Time 2025-01-07 17:02:05 [2025-01-07 17:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196298', 'tblTempUsageDetail_20' ) start [2025-01-07 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196298', 'tblTempUsageDetail_20' ) end [2025-01-07 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196298', 'tblTempVendorCDR_20' ) start [2025-01-07 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196298', 'tblTempVendorCDR_20' ) end [2025-01-07 17:02:22] Production.INFO: ProcessCDR(1,14196298,1,1,2) [2025-01-07 17:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196298', 'tblTempUsageDetail_20' ) start [2025-01-07 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196298', 'tblTempUsageDetail_20' ) end [2025-01-07 17:02:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:02:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:02:26] Production.INFO: ==30310== Releasing lock... [2025-01-07 17:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:02:26] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:03:05 [end_date_ymd] => 2025-01-07 17:03:05 [RateCDR] => 1 ) [2025-01-07 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:03:05' and `end` < '2025-01-07 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:03:19] Production.INFO: count ==5638 [2025-01-07 17:03:21] Production.ERROR: pbx CDR StartTime 2025-01-07 14:03:05 - End Time 2025-01-07 17:03:05 [2025-01-07 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196303', 'tblTempUsageDetail_20' ) start [2025-01-07 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196303', 'tblTempUsageDetail_20' ) end [2025-01-07 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196303', 'tblTempVendorCDR_20' ) start [2025-01-07 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196303', 'tblTempVendorCDR_20' ) end [2025-01-07 17:03:21] Production.INFO: ProcessCDR(1,14196303,1,1,2) [2025-01-07 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196303', 'tblTempUsageDetail_20' ) start [2025-01-07 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196303', 'tblTempUsageDetail_20' ) end [2025-01-07 17:03:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:03:26] Production.INFO: ==30382== Releasing lock... [2025-01-07 17:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:03:26] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:04:06 [end_date_ymd] => 2025-01-07 17:04:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 14:04:06' and `end` < '2025-01-07 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-01-07 17:04:20] Production.INFO: count ==5633 [2025-01-07 17:04:22] Production.ERROR: pbx CDR StartTime 2025-01-07 14:04:06 - End Time 2025-01-07 17:04:06 [2025-01-07 17:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196308', 'tblTempUsageDetail_20' ) start [2025-01-07 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196308', 'tblTempUsageDetail_20' ) end [2025-01-07 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196308', 'tblTempVendorCDR_20' ) start [2025-01-07 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196308', 'tblTempVendorCDR_20' ) end [2025-01-07 17:04:22] Production.INFO: ProcessCDR(1,14196308,1,1,2) [2025-01-07 17:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196308', 'tblTempUsageDetail_20' ) start [2025-01-07 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196308', 'tblTempUsageDetail_20' ) end [2025-01-07 17:04:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:04:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:04:26] Production.INFO: ==30457== Releasing lock... [2025-01-07 17:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:04:26] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:05:05 [end_date_ymd] => 2025-01-07 17:05:05 [RateCDR] => 1 ) [2025-01-07 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:05:05' and `end` < '2025-01-07 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:05:27] Production.INFO: count ==5629 [2025-01-07 17:05:30] Production.ERROR: pbx CDR StartTime 2025-01-07 14:05:05 - End Time 2025-01-07 17:05:05 [2025-01-07 17:05:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196313', 'tblTempUsageDetail_20' ) start [2025-01-07 17:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196313', 'tblTempUsageDetail_20' ) end [2025-01-07 17:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196313', 'tblTempVendorCDR_20' ) start [2025-01-07 17:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196313', 'tblTempVendorCDR_20' ) end [2025-01-07 17:05:30] Production.INFO: ProcessCDR(1,14196313,1,1,2) [2025-01-07 17:05:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:05:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:05:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196313', 'tblTempUsageDetail_20' ) start [2025-01-07 17:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196313', 'tblTempUsageDetail_20' ) end [2025-01-07 17:05:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:05:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:05:34] Production.INFO: ==30527== Releasing lock... [2025-01-07 17:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:05:34] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:06:06 [end_date_ymd] => 2025-01-07 17:06:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 14:06:06' and `end` < '2025-01-07 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-01-07 17:06:37] Production.INFO: count ==5622 [2025-01-07 17:06:40] Production.ERROR: pbx CDR StartTime 2025-01-07 14:06:06 - End Time 2025-01-07 17:06:06 [2025-01-07 17:06:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:06:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196318', 'tblTempUsageDetail_20' ) start [2025-01-07 17:06:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196318', 'tblTempUsageDetail_20' ) end [2025-01-07 17:06:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196318', 'tblTempVendorCDR_20' ) start [2025-01-07 17:06:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196318', 'tblTempVendorCDR_20' ) end [2025-01-07 17:06:40] Production.INFO: ProcessCDR(1,14196318,1,1,2) [2025-01-07 17:06:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:06:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:06:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:06:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:06:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196318', 'tblTempUsageDetail_20' ) start [2025-01-07 17:06:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196318', 'tblTempUsageDetail_20' ) end [2025-01-07 17:06:45] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:06:45] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:06:45] Production.INFO: ==30597== Releasing lock... [2025-01-07 17:06:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:06:45] Production.INFO: 70 MB #Memory Used# [2025-01-07 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:07:05 [end_date_ymd] => 2025-01-07 17:07:05 [RateCDR] => 1 ) [2025-01-07 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:07:05' and `end` < '2025-01-07 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:07:26] Production.INFO: count ==5644 [2025-01-07 17:07:29] Production.ERROR: pbx CDR StartTime 2025-01-07 14:07:05 - End Time 2025-01-07 17:07:05 [2025-01-07 17:07:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196323', 'tblTempUsageDetail_20' ) start [2025-01-07 17:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196323', 'tblTempUsageDetail_20' ) end [2025-01-07 17:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196323', 'tblTempVendorCDR_20' ) start [2025-01-07 17:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196323', 'tblTempVendorCDR_20' ) end [2025-01-07 17:07:29] Production.INFO: ProcessCDR(1,14196323,1,1,2) [2025-01-07 17:07:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:07:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:07:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:07:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196323', 'tblTempUsageDetail_20' ) start [2025-01-07 17:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196323', 'tblTempUsageDetail_20' ) end [2025-01-07 17:07:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:07:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:07:34] Production.INFO: ==30670== Releasing lock... [2025-01-07 17:07:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:07:34] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:08:06 [end_date_ymd] => 2025-01-07 17:08:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 14:08:06' and `end` < '2025-01-07 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-01-07 17:08:37] Production.INFO: count ==5656 [2025-01-07 17:08:40] Production.ERROR: pbx CDR StartTime 2025-01-07 14:08:06 - End Time 2025-01-07 17:08:06 [2025-01-07 17:08:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:08:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196328', 'tblTempUsageDetail_20' ) start [2025-01-07 17:08:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196328', 'tblTempUsageDetail_20' ) end [2025-01-07 17:08:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196328', 'tblTempVendorCDR_20' ) start [2025-01-07 17:08:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196328', 'tblTempVendorCDR_20' ) end [2025-01-07 17:08:40] Production.INFO: ProcessCDR(1,14196328,1,1,2) [2025-01-07 17:08:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:08:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:08:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:08:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:08:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196328', 'tblTempUsageDetail_20' ) start [2025-01-07 17:08:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196328', 'tblTempUsageDetail_20' ) end [2025-01-07 17:08:44] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:08:44] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:08:44] Production.INFO: ==30742== Releasing lock... [2025-01-07 17:08:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:08:44] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:09:05 [end_date_ymd] => 2025-01-07 17:09:05 [RateCDR] => 1 ) [2025-01-07 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:09:05' and `end` < '2025-01-07 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:09:24] Production.INFO: count ==5650 [2025-01-07 17:09:26] Production.ERROR: pbx CDR StartTime 2025-01-07 14:09:05 - End Time 2025-01-07 17:09:05 [2025-01-07 17:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196333', 'tblTempUsageDetail_20' ) start [2025-01-07 17:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196333', 'tblTempUsageDetail_20' ) end [2025-01-07 17:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196333', 'tblTempVendorCDR_20' ) start [2025-01-07 17:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196333', 'tblTempVendorCDR_20' ) end [2025-01-07 17:09:27] Production.INFO: ProcessCDR(1,14196333,1,1,2) [2025-01-07 17:09:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196333', 'tblTempUsageDetail_20' ) start [2025-01-07 17:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196333', 'tblTempUsageDetail_20' ) end [2025-01-07 17:09:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:09:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:09:31] Production.INFO: ==30813== Releasing lock... [2025-01-07 17:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:09:31] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:10:06 [end_date_ymd] => 2025-01-07 17:10:06 [RateCDR] => 1 ) [2025-01-07 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:10:06' and `end` < '2025-01-07 17:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:10:26] Production.INFO: count ==5622 [2025-01-07 17:10:28] Production.ERROR: pbx CDR StartTime 2025-01-07 14:10:06 - End Time 2025-01-07 17:10:06 [2025-01-07 17:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196339', 'tblTempUsageDetail_20' ) start [2025-01-07 17:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196339', 'tblTempUsageDetail_20' ) end [2025-01-07 17:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196339', 'tblTempVendorCDR_20' ) start [2025-01-07 17:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196339', 'tblTempVendorCDR_20' ) end [2025-01-07 17:10:28] Production.INFO: ProcessCDR(1,14196339,1,1,2) [2025-01-07 17:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196339', 'tblTempUsageDetail_20' ) start [2025-01-07 17:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196339', 'tblTempUsageDetail_20' ) end [2025-01-07 17:10:33] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:10:33] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:10:33] Production.INFO: ==30886== Releasing lock... [2025-01-07 17:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:10:33] Production.INFO: 70 MB #Memory Used# [2025-01-07 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:11:05 [end_date_ymd] => 2025-01-07 17:11:05 [RateCDR] => 1 ) [2025-01-07 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:11:05' and `end` < '2025-01-07 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:11:19] Production.INFO: count ==5628 [2025-01-07 17:11:21] Production.ERROR: pbx CDR StartTime 2025-01-07 14:11:05 - End Time 2025-01-07 17:11:05 [2025-01-07 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196344', 'tblTempUsageDetail_20' ) start [2025-01-07 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196344', 'tblTempUsageDetail_20' ) end [2025-01-07 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196344', 'tblTempVendorCDR_20' ) start [2025-01-07 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196344', 'tblTempVendorCDR_20' ) end [2025-01-07 17:11:22] Production.INFO: ProcessCDR(1,14196344,1,1,2) [2025-01-07 17:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196344', 'tblTempUsageDetail_20' ) start [2025-01-07 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196344', 'tblTempUsageDetail_20' ) end [2025-01-07 17:11:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:11:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:11:27] Production.INFO: ==30960== Releasing lock... [2025-01-07 17:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:11:27] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 17:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:12:06 [end_date_ymd] => 2025-01-07 17:12:06 [RateCDR] => 1 ) [2025-01-07 17:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:12:06' and `end` < '2025-01-07 17:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:12:23] Production.INFO: count ==5627 [2025-01-07 17:12:26] Production.ERROR: pbx CDR StartTime 2025-01-07 14:12:06 - End Time 2025-01-07 17:12:06 [2025-01-07 17:12:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196349', 'tblTempUsageDetail_20' ) start [2025-01-07 17:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196349', 'tblTempUsageDetail_20' ) end [2025-01-07 17:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196349', 'tblTempVendorCDR_20' ) start [2025-01-07 17:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196349', 'tblTempVendorCDR_20' ) end [2025-01-07 17:12:26] Production.INFO: ProcessCDR(1,14196349,1,1,2) [2025-01-07 17:12:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:12:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:12:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:12:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196349', 'tblTempUsageDetail_20' ) start [2025-01-07 17:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196349', 'tblTempUsageDetail_20' ) end [2025-01-07 17:12:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:12:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:12:31] Production.INFO: ==31034== Releasing lock... [2025-01-07 17:12:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:12:31] Production.INFO: 70.25 MB #Memory Used# [2025-01-07 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:13:05 [end_date_ymd] => 2025-01-07 17:13:05 [RateCDR] => 1 ) [2025-01-07 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:13:05' and `end` < '2025-01-07 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:13:19] Production.INFO: count ==5620 [2025-01-07 17:13:22] Production.ERROR: pbx CDR StartTime 2025-01-07 14:13:05 - End Time 2025-01-07 17:13:05 [2025-01-07 17:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196354', 'tblTempUsageDetail_20' ) start [2025-01-07 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196354', 'tblTempUsageDetail_20' ) end [2025-01-07 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196354', 'tblTempVendorCDR_20' ) start [2025-01-07 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196354', 'tblTempVendorCDR_20' ) end [2025-01-07 17:13:22] Production.INFO: ProcessCDR(1,14196354,1,1,2) [2025-01-07 17:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196354', 'tblTempUsageDetail_20' ) start [2025-01-07 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196354', 'tblTempUsageDetail_20' ) end [2025-01-07 17:13:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:13:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:13:27] Production.INFO: ==31103== Releasing lock... [2025-01-07 17:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:13:27] Production.INFO: 70 MB #Memory Used# [2025-01-07 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:14:05 [end_date_ymd] => 2025-01-07 17:14:05 [RateCDR] => 1 ) [2025-01-07 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:14:05' and `end` < '2025-01-07 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:14:20] Production.INFO: count ==5607 [2025-01-07 17:14:23] Production.ERROR: pbx CDR StartTime 2025-01-07 14:14:05 - End Time 2025-01-07 17:14:05 [2025-01-07 17:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196359', 'tblTempUsageDetail_20' ) start [2025-01-07 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196359', 'tblTempUsageDetail_20' ) end [2025-01-07 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196359', 'tblTempVendorCDR_20' ) start [2025-01-07 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196359', 'tblTempVendorCDR_20' ) end [2025-01-07 17:14:23] Production.INFO: ProcessCDR(1,14196359,1,1,2) [2025-01-07 17:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196359', 'tblTempUsageDetail_20' ) start [2025-01-07 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196359', 'tblTempUsageDetail_20' ) end [2025-01-07 17:14:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:14:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:14:28] Production.INFO: ==31177== Releasing lock... [2025-01-07 17:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:14:28] Production.INFO: 70 MB #Memory Used# [2025-01-07 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:15:05 [end_date_ymd] => 2025-01-07 17:15:05 [RateCDR] => 1 ) [2025-01-07 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:15:05' and `end` < '2025-01-07 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:15:22] Production.INFO: count ==5599 [2025-01-07 17:15:25] Production.ERROR: pbx CDR StartTime 2025-01-07 14:15:05 - End Time 2025-01-07 17:15:05 [2025-01-07 17:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196364', 'tblTempUsageDetail_20' ) start [2025-01-07 17:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196364', 'tblTempUsageDetail_20' ) end [2025-01-07 17:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196364', 'tblTempVendorCDR_20' ) start [2025-01-07 17:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196364', 'tblTempVendorCDR_20' ) end [2025-01-07 17:15:25] Production.INFO: ProcessCDR(1,14196364,1,1,2) [2025-01-07 17:15:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:15:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:15:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:15:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196364', 'tblTempUsageDetail_20' ) start [2025-01-07 17:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196364', 'tblTempUsageDetail_20' ) end [2025-01-07 17:15:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:15:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:15:30] Production.INFO: ==31247== Releasing lock... [2025-01-07 17:15:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:15:30] Production.INFO: 70 MB #Memory Used# [2025-01-07 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:16:05 [end_date_ymd] => 2025-01-07 17:16:05 [RateCDR] => 1 ) [2025-01-07 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:16:05' and `end` < '2025-01-07 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:16:19] Production.INFO: count ==5582 [2025-01-07 17:16:22] Production.ERROR: pbx CDR StartTime 2025-01-07 14:16:05 - End Time 2025-01-07 17:16:05 [2025-01-07 17:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196369', 'tblTempUsageDetail_20' ) start [2025-01-07 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196369', 'tblTempUsageDetail_20' ) end [2025-01-07 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196369', 'tblTempVendorCDR_20' ) start [2025-01-07 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196369', 'tblTempVendorCDR_20' ) end [2025-01-07 17:16:22] Production.INFO: ProcessCDR(1,14196369,1,1,2) [2025-01-07 17:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196369', 'tblTempUsageDetail_20' ) start [2025-01-07 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196369', 'tblTempUsageDetail_20' ) end [2025-01-07 17:16:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:16:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:16:27] Production.INFO: ==31318== Releasing lock... [2025-01-07 17:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:16:27] Production.INFO: 69.75 MB #Memory Used# [2025-01-07 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:17:05 [end_date_ymd] => 2025-01-07 17:17:05 [RateCDR] => 1 ) [2025-01-07 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:17:05' and `end` < '2025-01-07 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:17:20] Production.INFO: count ==5573 [2025-01-07 17:17:23] Production.ERROR: pbx CDR StartTime 2025-01-07 14:17:05 - End Time 2025-01-07 17:17:05 [2025-01-07 17:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196374', 'tblTempUsageDetail_20' ) start [2025-01-07 17:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196374', 'tblTempUsageDetail_20' ) end [2025-01-07 17:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196374', 'tblTempVendorCDR_20' ) start [2025-01-07 17:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196374', 'tblTempVendorCDR_20' ) end [2025-01-07 17:17:23] Production.INFO: ProcessCDR(1,14196374,1,1,2) [2025-01-07 17:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196374', 'tblTempUsageDetail_20' ) start [2025-01-07 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196374', 'tblTempUsageDetail_20' ) end [2025-01-07 17:17:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:17:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:17:27] Production.INFO: ==31434== Releasing lock... [2025-01-07 17:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:17:27] Production.INFO: 69.75 MB #Memory Used# [2025-01-07 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:18:05 [end_date_ymd] => 2025-01-07 17:18:05 [RateCDR] => 1 ) [2025-01-07 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:18:05' and `end` < '2025-01-07 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:18:19] Production.INFO: count ==5559 [2025-01-07 17:18:21] Production.ERROR: pbx CDR StartTime 2025-01-07 14:18:05 - End Time 2025-01-07 17:18:05 [2025-01-07 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196379', 'tblTempUsageDetail_20' ) start [2025-01-07 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196379', 'tblTempUsageDetail_20' ) end [2025-01-07 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196379', 'tblTempVendorCDR_20' ) start [2025-01-07 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196379', 'tblTempVendorCDR_20' ) end [2025-01-07 17:18:21] Production.INFO: ProcessCDR(1,14196379,1,1,2) [2025-01-07 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196379', 'tblTempUsageDetail_20' ) start [2025-01-07 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196379', 'tblTempUsageDetail_20' ) end [2025-01-07 17:18:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:18:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:18:26] Production.INFO: ==31505== Releasing lock... [2025-01-07 17:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:18:26] Production.INFO: 69.5 MB #Memory Used# [2025-01-07 17:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:19:04 [end_date_ymd] => 2025-01-07 17:19:04 [RateCDR] => 1 ) [2025-01-07 17:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:19:04' and `end` < '2025-01-07 17:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:19:19] Production.INFO: count ==5543 [2025-01-07 17:19:21] Production.ERROR: pbx CDR StartTime 2025-01-07 14:19:04 - End Time 2025-01-07 17:19:04 [2025-01-07 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196384', 'tblTempUsageDetail_20' ) start [2025-01-07 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196384', 'tblTempUsageDetail_20' ) end [2025-01-07 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196384', 'tblTempVendorCDR_20' ) start [2025-01-07 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196384', 'tblTempVendorCDR_20' ) end [2025-01-07 17:19:22] Production.INFO: ProcessCDR(1,14196384,1,1,2) [2025-01-07 17:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196384', 'tblTempUsageDetail_20' ) start [2025-01-07 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196384', 'tblTempUsageDetail_20' ) end [2025-01-07 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:19:26] Production.INFO: ==31574== Releasing lock... [2025-01-07 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:19:26] Production.INFO: 69.5 MB #Memory Used# [2025-01-07 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:20:06 [end_date_ymd] => 2025-01-07 17:20:06 [RateCDR] => 1 ) [2025-01-07 17:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:20:06' and `end` < '2025-01-07 17:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:20:19] Production.INFO: count ==5547 [2025-01-07 17:20:22] Production.ERROR: pbx CDR StartTime 2025-01-07 14:20:06 - End Time 2025-01-07 17:20:06 [2025-01-07 17:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196390', 'tblTempUsageDetail_20' ) start [2025-01-07 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196390', 'tblTempUsageDetail_20' ) end [2025-01-07 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196390', 'tblTempVendorCDR_20' ) start [2025-01-07 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196390', 'tblTempVendorCDR_20' ) end [2025-01-07 17:20:22] Production.INFO: ProcessCDR(1,14196390,1,1,2) [2025-01-07 17:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196390', 'tblTempUsageDetail_20' ) start [2025-01-07 17:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196390', 'tblTempUsageDetail_20' ) end [2025-01-07 17:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:20:25] Production.INFO: ==31649== Releasing lock... [2025-01-07 17:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:20:25] Production.INFO: 69.5 MB #Memory Used# [2025-01-07 17:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:21:04 [end_date_ymd] => 2025-01-07 17:21:04 [RateCDR] => 1 ) [2025-01-07 17:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:21:04' and `end` < '2025-01-07 17:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:21:20] Production.INFO: count ==5540 [2025-01-07 17:21:22] Production.ERROR: pbx CDR StartTime 2025-01-07 14:21:04 - End Time 2025-01-07 17:21:04 [2025-01-07 17:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196395', 'tblTempUsageDetail_20' ) start [2025-01-07 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196395', 'tblTempUsageDetail_20' ) end [2025-01-07 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196395', 'tblTempVendorCDR_20' ) start [2025-01-07 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196395', 'tblTempVendorCDR_20' ) end [2025-01-07 17:21:23] Production.INFO: ProcessCDR(1,14196395,1,1,2) [2025-01-07 17:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196395', 'tblTempUsageDetail_20' ) start [2025-01-07 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196395', 'tblTempUsageDetail_20' ) end [2025-01-07 17:21:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:21:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:21:27] Production.INFO: ==31721== Releasing lock... [2025-01-07 17:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:21:27] Production.INFO: 69.5 MB #Memory Used# [2025-01-07 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:22:05 [end_date_ymd] => 2025-01-07 17:22:05 [RateCDR] => 1 ) [2025-01-07 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:22:05' and `end` < '2025-01-07 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:22:26] Production.INFO: count ==5544 [2025-01-07 17:22:29] Production.ERROR: pbx CDR StartTime 2025-01-07 14:22:05 - End Time 2025-01-07 17:22:05 [2025-01-07 17:22:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196400', 'tblTempUsageDetail_20' ) start [2025-01-07 17:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196400', 'tblTempUsageDetail_20' ) end [2025-01-07 17:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196400', 'tblTempVendorCDR_20' ) start [2025-01-07 17:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196400', 'tblTempVendorCDR_20' ) end [2025-01-07 17:22:29] Production.INFO: ProcessCDR(1,14196400,1,1,2) [2025-01-07 17:22:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:22:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:22:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:22:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196400', 'tblTempUsageDetail_20' ) start [2025-01-07 17:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196400', 'tblTempUsageDetail_20' ) end [2025-01-07 17:22:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:22:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:22:34] Production.INFO: ==31792== Releasing lock... [2025-01-07 17:22:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:22:34] Production.INFO: 69.5 MB #Memory Used# [2025-01-07 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:23:05 [end_date_ymd] => 2025-01-07 17:23:05 [RateCDR] => 1 ) [2025-01-07 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:23:05' and `end` < '2025-01-07 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:23:21] Production.INFO: count ==5540 [2025-01-07 17:23:23] Production.ERROR: pbx CDR StartTime 2025-01-07 14:23:05 - End Time 2025-01-07 17:23:05 [2025-01-07 17:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196405', 'tblTempUsageDetail_20' ) start [2025-01-07 17:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196405', 'tblTempUsageDetail_20' ) end [2025-01-07 17:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196405', 'tblTempVendorCDR_20' ) start [2025-01-07 17:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196405', 'tblTempVendorCDR_20' ) end [2025-01-07 17:23:24] Production.INFO: ProcessCDR(1,14196405,1,1,2) [2025-01-07 17:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196405', 'tblTempUsageDetail_20' ) start [2025-01-07 17:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196405', 'tblTempUsageDetail_20' ) end [2025-01-07 17:23:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:23:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:23:28] Production.INFO: ==31863== Releasing lock... [2025-01-07 17:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:23:28] Production.INFO: 69.5 MB #Memory Used# [2025-01-07 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:24:05 [end_date_ymd] => 2025-01-07 17:24:05 [RateCDR] => 1 ) [2025-01-07 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:24:05' and `end` < '2025-01-07 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:24:19] Production.INFO: count ==5543 [2025-01-07 17:24:21] Production.ERROR: pbx CDR StartTime 2025-01-07 14:24:05 - End Time 2025-01-07 17:24:05 [2025-01-07 17:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196410', 'tblTempUsageDetail_20' ) start [2025-01-07 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196410', 'tblTempUsageDetail_20' ) end [2025-01-07 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196410', 'tblTempVendorCDR_20' ) start [2025-01-07 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196410', 'tblTempVendorCDR_20' ) end [2025-01-07 17:24:21] Production.INFO: ProcessCDR(1,14196410,1,1,2) [2025-01-07 17:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196410', 'tblTempUsageDetail_20' ) start [2025-01-07 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196410', 'tblTempUsageDetail_20' ) end [2025-01-07 17:24:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:24:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:24:26] Production.INFO: ==31934== Releasing lock... [2025-01-07 17:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:24:26] Production.INFO: 69.5 MB #Memory Used# [2025-01-07 17:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:25:04 [end_date_ymd] => 2025-01-07 17:25:04 [RateCDR] => 1 ) [2025-01-07 17:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:25:04' and `end` < '2025-01-07 17:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:25:18] Production.INFO: count ==5547 [2025-01-07 17:25:21] Production.ERROR: pbx CDR StartTime 2025-01-07 14:25:04 - End Time 2025-01-07 17:25:04 [2025-01-07 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196415', 'tblTempUsageDetail_20' ) start [2025-01-07 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196415', 'tblTempUsageDetail_20' ) end [2025-01-07 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196415', 'tblTempVendorCDR_20' ) start [2025-01-07 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196415', 'tblTempVendorCDR_20' ) end [2025-01-07 17:25:21] Production.INFO: ProcessCDR(1,14196415,1,1,2) [2025-01-07 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196415', 'tblTempUsageDetail_20' ) start [2025-01-07 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196415', 'tblTempUsageDetail_20' ) end [2025-01-07 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:25:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:25:26] Production.INFO: ==32006== Releasing lock... [2025-01-07 17:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:25:26] Production.INFO: 69.5 MB #Memory Used# [2025-01-07 17:26:16] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:26:16 [end_date_ymd] => 2025-01-07 17:26:16 [RateCDR] => 1 ) [2025-01-07 17:26:16] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:26:16' and `end` < '2025-01-07 17:26:16' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:26:30] Production.INFO: count ==5541 [2025-01-07 17:27:28] Production.ERROR: pbx CDR StartTime 2025-01-07 14:26:16 - End Time 2025-01-07 17:26:16 [2025-01-07 17:27:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196420', 'tblTempUsageDetail_20' ) start [2025-01-07 17:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196420', 'tblTempUsageDetail_20' ) end [2025-01-07 17:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196420', 'tblTempVendorCDR_20' ) start [2025-01-07 17:27:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196420', 'tblTempVendorCDR_20' ) end [2025-01-07 17:27:36] Production.INFO: ProcessCDR(1,14196420,1,1,2) [2025-01-07 17:27:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:27:49] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:27:49] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:28:08] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:28:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196420', 'tblTempUsageDetail_20' ) start [2025-01-07 17:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196420', 'tblTempUsageDetail_20' ) end [2025-01-07 17:28:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:28:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:28:30] Production.INFO: ==32078== Releasing lock... [2025-01-07 17:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:28:30] Production.INFO: 69.5 MB #Memory Used# [2025-01-07 17:29:20] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:29:20 [end_date_ymd] => 2025-01-07 17:29:20 [RateCDR] => 1 ) [2025-01-07 17:29:20] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:29:20' and `end` < '2025-01-07 17:29:20' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:29:34] Production.INFO: count ==5548 [2025-01-07 17:30:20] Production.ERROR: pbx CDR StartTime 2025-01-07 14:29:20 - End Time 2025-01-07 17:29:20 [2025-01-07 17:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196431', 'tblTempUsageDetail_20' ) start [2025-01-07 17:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196431', 'tblTempUsageDetail_20' ) end [2025-01-07 17:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196431', 'tblTempVendorCDR_20' ) start [2025-01-07 17:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196431', 'tblTempVendorCDR_20' ) end [2025-01-07 17:30:27] Production.INFO: ProcessCDR(1,14196431,1,1,2) [2025-01-07 17:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:30:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:30:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:30:59] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:30:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196431', 'tblTempUsageDetail_20' ) start [2025-01-07 17:30:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196431', 'tblTempUsageDetail_20' ) end [2025-01-07 17:30:59] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:30:59] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:31:06] Production.INFO: ==32277== Releasing lock... [2025-01-07 17:31:06] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:31:06] Production.INFO: 69.5 MB #Memory Used# [2025-01-07 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:32:05 [end_date_ymd] => 2025-01-07 17:32:05 [RateCDR] => 1 ) [2025-01-07 17:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:32:05' and `end` < '2025-01-07 17:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:32:18] Production.INFO: count ==5467 [2025-01-07 17:32:21] Production.ERROR: pbx CDR StartTime 2025-01-07 14:32:05 - End Time 2025-01-07 17:32:05 [2025-01-07 17:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196443', 'tblTempUsageDetail_20' ) start [2025-01-07 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196443', 'tblTempUsageDetail_20' ) end [2025-01-07 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196443', 'tblTempVendorCDR_20' ) start [2025-01-07 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196443', 'tblTempVendorCDR_20' ) end [2025-01-07 17:32:21] Production.INFO: ProcessCDR(1,14196443,1,1,2) [2025-01-07 17:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196443', 'tblTempUsageDetail_20' ) start [2025-01-07 17:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196443', 'tblTempUsageDetail_20' ) end [2025-01-07 17:32:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:32:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:32:26] Production.INFO: ==32493== Releasing lock... [2025-01-07 17:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:32:26] Production.INFO: 69 MB #Memory Used# [2025-01-07 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:33:05 [end_date_ymd] => 2025-01-07 17:33:05 [RateCDR] => 1 ) [2025-01-07 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:33:05' and `end` < '2025-01-07 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:33:25] Production.INFO: count ==5404 [2025-01-07 17:33:27] Production.ERROR: pbx CDR StartTime 2025-01-07 14:33:05 - End Time 2025-01-07 17:33:05 [2025-01-07 17:33:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196448', 'tblTempUsageDetail_20' ) start [2025-01-07 17:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196448', 'tblTempUsageDetail_20' ) end [2025-01-07 17:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196448', 'tblTempVendorCDR_20' ) start [2025-01-07 17:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196448', 'tblTempVendorCDR_20' ) end [2025-01-07 17:33:27] Production.INFO: ProcessCDR(1,14196448,1,1,2) [2025-01-07 17:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:33:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:33:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:33:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196448', 'tblTempUsageDetail_20' ) start [2025-01-07 17:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196448', 'tblTempUsageDetail_20' ) end [2025-01-07 17:33:32] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:33:32] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:33:32] Production.INFO: ==32606== Releasing lock... [2025-01-07 17:33:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:33:32] Production.INFO: 68.5 MB #Memory Used# [2025-01-07 17:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:34:04 [end_date_ymd] => 2025-01-07 17:34:04 [RateCDR] => 1 ) [2025-01-07 17:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:34:04' and `end` < '2025-01-07 17:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:34:18] Production.INFO: count ==5352 [2025-01-07 17:34:21] Production.ERROR: pbx CDR StartTime 2025-01-07 14:34:04 - End Time 2025-01-07 17:34:04 [2025-01-07 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196453', 'tblTempUsageDetail_20' ) start [2025-01-07 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196453', 'tblTempUsageDetail_20' ) end [2025-01-07 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196453', 'tblTempVendorCDR_20' ) start [2025-01-07 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196453', 'tblTempVendorCDR_20' ) end [2025-01-07 17:34:21] Production.INFO: ProcessCDR(1,14196453,1,1,2) [2025-01-07 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196453', 'tblTempUsageDetail_20' ) start [2025-01-07 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196453', 'tblTempUsageDetail_20' ) end [2025-01-07 17:34:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:34:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:34:26] Production.INFO: ==32678== Releasing lock... [2025-01-07 17:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:34:26] Production.INFO: 68 MB #Memory Used# [2025-01-07 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:35:05 [end_date_ymd] => 2025-01-07 17:35:05 [RateCDR] => 1 ) [2025-01-07 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:35:05' and `end` < '2025-01-07 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:35:20] Production.INFO: count ==5293 [2025-01-07 17:35:22] Production.ERROR: pbx CDR StartTime 2025-01-07 14:35:05 - End Time 2025-01-07 17:35:05 [2025-01-07 17:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196458', 'tblTempUsageDetail_20' ) start [2025-01-07 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196458', 'tblTempUsageDetail_20' ) end [2025-01-07 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196458', 'tblTempVendorCDR_20' ) start [2025-01-07 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196458', 'tblTempVendorCDR_20' ) end [2025-01-07 17:35:22] Production.INFO: ProcessCDR(1,14196458,1,1,2) [2025-01-07 17:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196458', 'tblTempUsageDetail_20' ) start [2025-01-07 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196458', 'tblTempUsageDetail_20' ) end [2025-01-07 17:35:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:35:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:35:27] Production.INFO: ==32761== Releasing lock... [2025-01-07 17:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:35:27] Production.INFO: 67.5 MB #Memory Used# [2025-01-07 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:36:05 [end_date_ymd] => 2025-01-07 17:36:05 [RateCDR] => 1 ) [2025-01-07 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:36:05' and `end` < '2025-01-07 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:36:21] Production.INFO: count ==5269 [2025-01-07 17:36:23] Production.ERROR: pbx CDR StartTime 2025-01-07 14:36:05 - End Time 2025-01-07 17:36:05 [2025-01-07 17:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196463', 'tblTempUsageDetail_20' ) start [2025-01-07 17:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196463', 'tblTempUsageDetail_20' ) end [2025-01-07 17:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196463', 'tblTempVendorCDR_20' ) start [2025-01-07 17:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196463', 'tblTempVendorCDR_20' ) end [2025-01-07 17:36:24] Production.INFO: ProcessCDR(1,14196463,1,1,2) [2025-01-07 17:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196463', 'tblTempUsageDetail_20' ) start [2025-01-07 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196463', 'tblTempUsageDetail_20' ) end [2025-01-07 17:36:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:36:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:36:27] Production.INFO: ==416== Releasing lock... [2025-01-07 17:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:36:27] Production.INFO: 67.5 MB #Memory Used# [2025-01-07 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:37:05 [end_date_ymd] => 2025-01-07 17:37:05 [RateCDR] => 1 ) [2025-01-07 17:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:37:05' and `end` < '2025-01-07 17:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:37:18] Production.INFO: count ==5234 [2025-01-07 17:37:20] Production.ERROR: pbx CDR StartTime 2025-01-07 14:37:05 - End Time 2025-01-07 17:37:05 [2025-01-07 17:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196468', 'tblTempUsageDetail_20' ) start [2025-01-07 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196468', 'tblTempUsageDetail_20' ) end [2025-01-07 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196468', 'tblTempVendorCDR_20' ) start [2025-01-07 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196468', 'tblTempVendorCDR_20' ) end [2025-01-07 17:37:21] Production.INFO: ProcessCDR(1,14196468,1,1,2) [2025-01-07 17:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196468', 'tblTempUsageDetail_20' ) start [2025-01-07 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196468', 'tblTempUsageDetail_20' ) end [2025-01-07 17:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:37:24] Production.INFO: ==528== Releasing lock... [2025-01-07 17:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:37:24] Production.INFO: 67.25 MB #Memory Used# [2025-01-07 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:38:05 [end_date_ymd] => 2025-01-07 17:38:05 [RateCDR] => 1 ) [2025-01-07 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:38:05' and `end` < '2025-01-07 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:38:20] Production.INFO: count ==5207 [2025-01-07 17:38:22] Production.ERROR: pbx CDR StartTime 2025-01-07 14:38:05 - End Time 2025-01-07 17:38:05 [2025-01-07 17:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196473', 'tblTempUsageDetail_20' ) start [2025-01-07 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196473', 'tblTempUsageDetail_20' ) end [2025-01-07 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196473', 'tblTempVendorCDR_20' ) start [2025-01-07 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196473', 'tblTempVendorCDR_20' ) end [2025-01-07 17:38:22] Production.INFO: ProcessCDR(1,14196473,1,1,2) [2025-01-07 17:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196473', 'tblTempUsageDetail_20' ) start [2025-01-07 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196473', 'tblTempUsageDetail_20' ) end [2025-01-07 17:38:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:38:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:38:27] Production.INFO: ==642== Releasing lock... [2025-01-07 17:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:38:27] Production.INFO: 67 MB #Memory Used# [2025-01-07 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:39:05 [end_date_ymd] => 2025-01-07 17:39:05 [RateCDR] => 1 ) [2025-01-07 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:39:05' and `end` < '2025-01-07 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:39:19] Production.INFO: count ==5162 [2025-01-07 17:39:21] Production.ERROR: pbx CDR StartTime 2025-01-07 14:39:05 - End Time 2025-01-07 17:39:05 [2025-01-07 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196478', 'tblTempUsageDetail_20' ) start [2025-01-07 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196478', 'tblTempUsageDetail_20' ) end [2025-01-07 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196478', 'tblTempVendorCDR_20' ) start [2025-01-07 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196478', 'tblTempVendorCDR_20' ) end [2025-01-07 17:39:21] Production.INFO: ProcessCDR(1,14196478,1,1,2) [2025-01-07 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196478', 'tblTempUsageDetail_20' ) start [2025-01-07 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196478', 'tblTempUsageDetail_20' ) end [2025-01-07 17:39:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:39:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:39:25] Production.INFO: ==773== Releasing lock... [2025-01-07 17:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:39:25] Production.INFO: 66.75 MB #Memory Used# [2025-01-07 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:40:06 [end_date_ymd] => 2025-01-07 17:40:06 [RateCDR] => 1 ) [2025-01-07 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:40:06' and `end` < '2025-01-07 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:40:20] Production.INFO: count ==5170 [2025-01-07 17:40:22] Production.ERROR: pbx CDR StartTime 2025-01-07 14:40:06 - End Time 2025-01-07 17:40:06 [2025-01-07 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196484', 'tblTempUsageDetail_20' ) start [2025-01-07 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196484', 'tblTempUsageDetail_20' ) end [2025-01-07 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196484', 'tblTempVendorCDR_20' ) start [2025-01-07 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196484', 'tblTempVendorCDR_20' ) end [2025-01-07 17:40:22] Production.INFO: ProcessCDR(1,14196484,1,1,2) [2025-01-07 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196484', 'tblTempUsageDetail_20' ) start [2025-01-07 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196484', 'tblTempUsageDetail_20' ) end [2025-01-07 17:40:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:40:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:40:27] Production.INFO: ==879== Releasing lock... [2025-01-07 17:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:40:27] Production.INFO: 66.75 MB #Memory Used# [2025-01-07 17:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:41:04 [end_date_ymd] => 2025-01-07 17:41:04 [RateCDR] => 1 ) [2025-01-07 17:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:41:04' and `end` < '2025-01-07 17:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:41:18] Production.INFO: count ==5129 [2025-01-07 17:41:20] Production.ERROR: pbx CDR StartTime 2025-01-07 14:41:04 - End Time 2025-01-07 17:41:04 [2025-01-07 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196489', 'tblTempUsageDetail_20' ) start [2025-01-07 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196489', 'tblTempUsageDetail_20' ) end [2025-01-07 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196489', 'tblTempVendorCDR_20' ) start [2025-01-07 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196489', 'tblTempVendorCDR_20' ) end [2025-01-07 17:41:20] Production.INFO: ProcessCDR(1,14196489,1,1,2) [2025-01-07 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196489', 'tblTempUsageDetail_20' ) start [2025-01-07 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196489', 'tblTempUsageDetail_20' ) end [2025-01-07 17:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:41:25] Production.INFO: ==984== Releasing lock... [2025-01-07 17:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:41:25] Production.INFO: 66.5 MB #Memory Used# [2025-01-07 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:42:05 [end_date_ymd] => 2025-01-07 17:42:05 [RateCDR] => 1 ) [2025-01-07 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:42:05' and `end` < '2025-01-07 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:42:19] Production.INFO: count ==5092 [2025-01-07 17:42:21] Production.ERROR: pbx CDR StartTime 2025-01-07 14:42:05 - End Time 2025-01-07 17:42:05 [2025-01-07 17:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196494', 'tblTempUsageDetail_20' ) start [2025-01-07 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196494', 'tblTempUsageDetail_20' ) end [2025-01-07 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196494', 'tblTempVendorCDR_20' ) start [2025-01-07 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196494', 'tblTempVendorCDR_20' ) end [2025-01-07 17:42:21] Production.INFO: ProcessCDR(1,14196494,1,1,2) [2025-01-07 17:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196494', 'tblTempUsageDetail_20' ) start [2025-01-07 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196494', 'tblTempUsageDetail_20' ) end [2025-01-07 17:42:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:42:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:42:26] Production.INFO: ==1092== Releasing lock... [2025-01-07 17:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:42:26] Production.INFO: 66 MB #Memory Used# [2025-01-07 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:43:05 [end_date_ymd] => 2025-01-07 17:43:05 [RateCDR] => 1 ) [2025-01-07 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:43:05' and `end` < '2025-01-07 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:43:19] Production.INFO: count ==5047 [2025-01-07 17:43:21] Production.ERROR: pbx CDR StartTime 2025-01-07 14:43:05 - End Time 2025-01-07 17:43:05 [2025-01-07 17:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196499', 'tblTempUsageDetail_20' ) start [2025-01-07 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196499', 'tblTempUsageDetail_20' ) end [2025-01-07 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196499', 'tblTempVendorCDR_20' ) start [2025-01-07 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196499', 'tblTempVendorCDR_20' ) end [2025-01-07 17:43:21] Production.INFO: ProcessCDR(1,14196499,1,1,2) [2025-01-07 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196499', 'tblTempUsageDetail_20' ) start [2025-01-07 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196499', 'tblTempUsageDetail_20' ) end [2025-01-07 17:43:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:43:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:43:26] Production.INFO: ==1202== Releasing lock... [2025-01-07 17:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:43:26] Production.INFO: 65.75 MB #Memory Used# [2025-01-07 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:44:05 [end_date_ymd] => 2025-01-07 17:44:05 [RateCDR] => 1 ) [2025-01-07 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:44:05' and `end` < '2025-01-07 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:44:19] Production.INFO: count ==4994 [2025-01-07 17:44:21] Production.ERROR: pbx CDR StartTime 2025-01-07 14:44:05 - End Time 2025-01-07 17:44:05 [2025-01-07 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196504', 'tblTempUsageDetail_20' ) start [2025-01-07 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196504', 'tblTempUsageDetail_20' ) end [2025-01-07 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196504', 'tblTempVendorCDR_20' ) start [2025-01-07 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196504', 'tblTempVendorCDR_20' ) end [2025-01-07 17:44:21] Production.INFO: ProcessCDR(1,14196504,1,1,2) [2025-01-07 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196504', 'tblTempUsageDetail_20' ) start [2025-01-07 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196504', 'tblTempUsageDetail_20' ) end [2025-01-07 17:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:44:24] Production.INFO: ==1323== Releasing lock... [2025-01-07 17:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:44:24] Production.INFO: 65.25 MB #Memory Used# [2025-01-07 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:45:05 [end_date_ymd] => 2025-01-07 17:45:05 [RateCDR] => 1 ) [2025-01-07 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:45:05' and `end` < '2025-01-07 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:45:19] Production.INFO: count ==4956 [2025-01-07 17:45:21] Production.ERROR: pbx CDR StartTime 2025-01-07 14:45:05 - End Time 2025-01-07 17:45:05 [2025-01-07 17:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196509', 'tblTempUsageDetail_20' ) start [2025-01-07 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196509', 'tblTempUsageDetail_20' ) end [2025-01-07 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196509', 'tblTempVendorCDR_20' ) start [2025-01-07 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196509', 'tblTempVendorCDR_20' ) end [2025-01-07 17:45:21] Production.INFO: ProcessCDR(1,14196509,1,1,2) [2025-01-07 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196509', 'tblTempUsageDetail_20' ) start [2025-01-07 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196509', 'tblTempUsageDetail_20' ) end [2025-01-07 17:45:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:45:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:45:26] Production.INFO: ==1428== Releasing lock... [2025-01-07 17:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:45:26] Production.INFO: 65 MB #Memory Used# [2025-01-07 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:46:05 [end_date_ymd] => 2025-01-07 17:46:05 [RateCDR] => 1 ) [2025-01-07 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:46:05' and `end` < '2025-01-07 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:46:19] Production.INFO: count ==4920 [2025-01-07 17:46:21] Production.ERROR: pbx CDR StartTime 2025-01-07 14:46:05 - End Time 2025-01-07 17:46:05 [2025-01-07 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196514', 'tblTempUsageDetail_20' ) start [2025-01-07 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196514', 'tblTempUsageDetail_20' ) end [2025-01-07 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196514', 'tblTempVendorCDR_20' ) start [2025-01-07 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196514', 'tblTempVendorCDR_20' ) end [2025-01-07 17:46:21] Production.INFO: ProcessCDR(1,14196514,1,1,2) [2025-01-07 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196514', 'tblTempUsageDetail_20' ) start [2025-01-07 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196514', 'tblTempUsageDetail_20' ) end [2025-01-07 17:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:46:24] Production.INFO: ==1560== Releasing lock... [2025-01-07 17:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:46:24] Production.INFO: 64.75 MB #Memory Used# [2025-01-07 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:47:05 [end_date_ymd] => 2025-01-07 17:47:05 [RateCDR] => 1 ) [2025-01-07 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:47:05' and `end` < '2025-01-07 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:47:19] Production.INFO: count ==4884 [2025-01-07 17:47:20] Production.ERROR: pbx CDR StartTime 2025-01-07 14:47:05 - End Time 2025-01-07 17:47:05 [2025-01-07 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196519', 'tblTempUsageDetail_20' ) start [2025-01-07 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196519', 'tblTempUsageDetail_20' ) end [2025-01-07 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196519', 'tblTempVendorCDR_20' ) start [2025-01-07 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196519', 'tblTempVendorCDR_20' ) end [2025-01-07 17:47:21] Production.INFO: ProcessCDR(1,14196519,1,1,2) [2025-01-07 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196519', 'tblTempUsageDetail_20' ) start [2025-01-07 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196519', 'tblTempUsageDetail_20' ) end [2025-01-07 17:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:47:24] Production.INFO: ==1672== Releasing lock... [2025-01-07 17:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:47:24] Production.INFO: 64.5 MB #Memory Used# [2025-01-07 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:48:05 [end_date_ymd] => 2025-01-07 17:48:05 [RateCDR] => 1 ) [2025-01-07 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:48:05' and `end` < '2025-01-07 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:48:20] Production.INFO: count ==4836 [2025-01-07 17:48:22] Production.ERROR: pbx CDR StartTime 2025-01-07 14:48:05 - End Time 2025-01-07 17:48:05 [2025-01-07 17:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196524', 'tblTempUsageDetail_20' ) start [2025-01-07 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196524', 'tblTempUsageDetail_20' ) end [2025-01-07 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196524', 'tblTempVendorCDR_20' ) start [2025-01-07 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196524', 'tblTempVendorCDR_20' ) end [2025-01-07 17:48:22] Production.INFO: ProcessCDR(1,14196524,1,1,2) [2025-01-07 17:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196524', 'tblTempUsageDetail_20' ) start [2025-01-07 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196524', 'tblTempUsageDetail_20' ) end [2025-01-07 17:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:48:25] Production.INFO: ==1815== Releasing lock... [2025-01-07 17:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:48:25] Production.INFO: 64.25 MB #Memory Used# [2025-01-07 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:49:05 [end_date_ymd] => 2025-01-07 17:49:05 [RateCDR] => 1 ) [2025-01-07 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:49:05' and `end` < '2025-01-07 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:49:20] Production.INFO: count ==4794 [2025-01-07 17:49:22] Production.ERROR: pbx CDR StartTime 2025-01-07 14:49:05 - End Time 2025-01-07 17:49:05 [2025-01-07 17:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196529', 'tblTempUsageDetail_20' ) start [2025-01-07 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196529', 'tblTempUsageDetail_20' ) end [2025-01-07 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196529', 'tblTempVendorCDR_20' ) start [2025-01-07 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196529', 'tblTempVendorCDR_20' ) end [2025-01-07 17:49:22] Production.INFO: ProcessCDR(1,14196529,1,1,2) [2025-01-07 17:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196529', 'tblTempUsageDetail_20' ) start [2025-01-07 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196529', 'tblTempUsageDetail_20' ) end [2025-01-07 17:49:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:49:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:49:26] Production.INFO: ==1924== Releasing lock... [2025-01-07 17:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:49:26] Production.INFO: 63.75 MB #Memory Used# [2025-01-07 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:50:05 [end_date_ymd] => 2025-01-07 17:50:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 14:50:05' and `end` < '2025-01-07 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-01-07 17:50:21] Production.INFO: count ==4742 [2025-01-07 17:50:22] Production.ERROR: pbx CDR StartTime 2025-01-07 14:50:05 - End Time 2025-01-07 17:50:05 [2025-01-07 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196535', 'tblTempUsageDetail_20' ) start [2025-01-07 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196535', 'tblTempUsageDetail_20' ) end [2025-01-07 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196535', 'tblTempVendorCDR_20' ) start [2025-01-07 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196535', 'tblTempVendorCDR_20' ) end [2025-01-07 17:50:22] Production.INFO: ProcessCDR(1,14196535,1,1,2) [2025-01-07 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196535', 'tblTempUsageDetail_20' ) start [2025-01-07 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196535', 'tblTempUsageDetail_20' ) end [2025-01-07 17:50:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:50:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:50:27] Production.INFO: ==2031== Releasing lock... [2025-01-07 17:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:50:27] Production.INFO: 63.5 MB #Memory Used# [2025-01-07 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:51:05 [end_date_ymd] => 2025-01-07 17:51:05 [RateCDR] => 1 ) [2025-01-07 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:51:05' and `end` < '2025-01-07 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:51:19] Production.INFO: count ==4648 [2025-01-07 17:51:21] Production.ERROR: pbx CDR StartTime 2025-01-07 14:51:05 - End Time 2025-01-07 17:51:05 [2025-01-07 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196540', 'tblTempUsageDetail_20' ) start [2025-01-07 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196540', 'tblTempUsageDetail_20' ) end [2025-01-07 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196540', 'tblTempVendorCDR_20' ) start [2025-01-07 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196540', 'tblTempVendorCDR_20' ) end [2025-01-07 17:51:21] Production.INFO: ProcessCDR(1,14196540,1,1,2) [2025-01-07 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196540', 'tblTempUsageDetail_20' ) start [2025-01-07 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196540', 'tblTempUsageDetail_20' ) end [2025-01-07 17:51:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:51:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:51:26] Production.INFO: ==2138== Releasing lock... [2025-01-07 17:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:51:26] Production.INFO: 62.75 MB #Memory Used# [2025-01-07 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:52:05 [end_date_ymd] => 2025-01-07 17:52:05 [RateCDR] => 1 ) [2025-01-07 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:52:05' and `end` < '2025-01-07 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:52:20] Production.INFO: count ==4608 [2025-01-07 17:52:22] Production.ERROR: pbx CDR StartTime 2025-01-07 14:52:05 - End Time 2025-01-07 17:52:05 [2025-01-07 17:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196545', 'tblTempUsageDetail_20' ) start [2025-01-07 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196545', 'tblTempUsageDetail_20' ) end [2025-01-07 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196545', 'tblTempVendorCDR_20' ) start [2025-01-07 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196545', 'tblTempVendorCDR_20' ) end [2025-01-07 17:52:22] Production.INFO: ProcessCDR(1,14196545,1,1,2) [2025-01-07 17:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196545', 'tblTempUsageDetail_20' ) start [2025-01-07 17:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196545', 'tblTempUsageDetail_20' ) end [2025-01-07 17:52:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:52:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:52:27] Production.INFO: ==2244== Releasing lock... [2025-01-07 17:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:52:27] Production.INFO: 62.5 MB #Memory Used# [2025-01-07 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:53:05 [end_date_ymd] => 2025-01-07 17:53:05 [RateCDR] => 1 ) [2025-01-07 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:53:05' and `end` < '2025-01-07 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:53:18] Production.INFO: count ==4563 [2025-01-07 17:53:20] Production.ERROR: pbx CDR StartTime 2025-01-07 14:53:05 - End Time 2025-01-07 17:53:05 [2025-01-07 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196550', 'tblTempUsageDetail_20' ) start [2025-01-07 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196550', 'tblTempUsageDetail_20' ) end [2025-01-07 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196550', 'tblTempVendorCDR_20' ) start [2025-01-07 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196550', 'tblTempVendorCDR_20' ) end [2025-01-07 17:53:20] Production.INFO: ProcessCDR(1,14196550,1,1,2) [2025-01-07 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196550', 'tblTempUsageDetail_20' ) start [2025-01-07 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196550', 'tblTempUsageDetail_20' ) end [2025-01-07 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:53:25] Production.INFO: ==2346== Releasing lock... [2025-01-07 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:53:25] Production.INFO: 62.25 MB #Memory Used# [2025-01-07 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:54:05 [end_date_ymd] => 2025-01-07 17:54:05 [RateCDR] => 1 ) [2025-01-07 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:54:05' and `end` < '2025-01-07 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:54:19] Production.INFO: count ==4511 [2025-01-07 17:54:21] Production.ERROR: pbx CDR StartTime 2025-01-07 14:54:05 - End Time 2025-01-07 17:54:05 [2025-01-07 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196555', 'tblTempUsageDetail_20' ) start [2025-01-07 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196555', 'tblTempUsageDetail_20' ) end [2025-01-07 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196555', 'tblTempVendorCDR_20' ) start [2025-01-07 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196555', 'tblTempVendorCDR_20' ) end [2025-01-07 17:54:21] Production.INFO: ProcessCDR(1,14196555,1,1,2) [2025-01-07 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196555', 'tblTempUsageDetail_20' ) start [2025-01-07 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196555', 'tblTempUsageDetail_20' ) end [2025-01-07 17:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:54:24] Production.INFO: ==2451== Releasing lock... [2025-01-07 17:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:54:24] Production.INFO: 61.75 MB #Memory Used# [2025-01-07 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:55:05 [end_date_ymd] => 2025-01-07 17:55:05 [RateCDR] => 1 ) [2025-01-07 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:55:05' and `end` < '2025-01-07 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:55:24] Production.INFO: count ==4466 [2025-01-07 17:55:26] Production.ERROR: pbx CDR StartTime 2025-01-07 14:55:05 - End Time 2025-01-07 17:55:05 [2025-01-07 17:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196560', 'tblTempUsageDetail_20' ) start [2025-01-07 17:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196560', 'tblTempUsageDetail_20' ) end [2025-01-07 17:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196560', 'tblTempVendorCDR_20' ) start [2025-01-07 17:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196560', 'tblTempVendorCDR_20' ) end [2025-01-07 17:55:26] Production.INFO: ProcessCDR(1,14196560,1,1,2) [2025-01-07 17:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:55:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:55:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:55:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196560', 'tblTempUsageDetail_20' ) start [2025-01-07 17:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196560', 'tblTempUsageDetail_20' ) end [2025-01-07 17:55:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:55:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:55:29] Production.INFO: ==2554== Releasing lock... [2025-01-07 17:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:55:29] Production.INFO: 61.5 MB #Memory Used# [2025-01-07 17:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:56:04 [end_date_ymd] => 2025-01-07 17:56:04 [RateCDR] => 1 ) [2025-01-07 17:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:56:04' and `end` < '2025-01-07 17:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:56:18] Production.INFO: count ==4427 [2025-01-07 17:56:20] Production.ERROR: pbx CDR StartTime 2025-01-07 14:56:04 - End Time 2025-01-07 17:56:04 [2025-01-07 17:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196565', 'tblTempUsageDetail_20' ) start [2025-01-07 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196565', 'tblTempUsageDetail_20' ) end [2025-01-07 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196565', 'tblTempVendorCDR_20' ) start [2025-01-07 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196565', 'tblTempVendorCDR_20' ) end [2025-01-07 17:56:20] Production.INFO: ProcessCDR(1,14196565,1,1,2) [2025-01-07 17:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196565', 'tblTempUsageDetail_20' ) start [2025-01-07 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196565', 'tblTempUsageDetail_20' ) end [2025-01-07 17:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:56:24] Production.INFO: ==2660== Releasing lock... [2025-01-07 17:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:56:24] Production.INFO: 61.25 MB #Memory Used# [2025-01-07 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:57:05 [end_date_ymd] => 2025-01-07 17:57:05 [RateCDR] => 1 ) [2025-01-07 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:57:05' and `end` < '2025-01-07 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:57:18] Production.INFO: count ==4418 [2025-01-07 17:57:20] Production.ERROR: pbx CDR StartTime 2025-01-07 14:57:05 - End Time 2025-01-07 17:57:05 [2025-01-07 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196570', 'tblTempUsageDetail_20' ) start [2025-01-07 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196570', 'tblTempUsageDetail_20' ) end [2025-01-07 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196570', 'tblTempVendorCDR_20' ) start [2025-01-07 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196570', 'tblTempVendorCDR_20' ) end [2025-01-07 17:57:20] Production.INFO: ProcessCDR(1,14196570,1,1,2) [2025-01-07 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196570', 'tblTempUsageDetail_20' ) start [2025-01-07 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196570', 'tblTempUsageDetail_20' ) end [2025-01-07 17:57:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:57:25] Production.INFO: ==2770== Releasing lock... [2025-01-07 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:57:25] Production.INFO: 61 MB #Memory Used# [2025-01-07 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:58:05 [end_date_ymd] => 2025-01-07 17:58:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 14:58:05' and `end` < '2025-01-07 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-01-07 17:58:19] Production.INFO: count ==4376 [2025-01-07 17:58:21] Production.ERROR: pbx CDR StartTime 2025-01-07 14:58:05 - End Time 2025-01-07 17:58:05 [2025-01-07 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196575', 'tblTempUsageDetail_20' ) start [2025-01-07 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196575', 'tblTempUsageDetail_20' ) end [2025-01-07 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196575', 'tblTempVendorCDR_20' ) start [2025-01-07 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196575', 'tblTempVendorCDR_20' ) end [2025-01-07 17:58:21] Production.INFO: ProcessCDR(1,14196575,1,1,2) [2025-01-07 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196575', 'tblTempUsageDetail_20' ) start [2025-01-07 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196575', 'tblTempUsageDetail_20' ) end [2025-01-07 17:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:58:24] Production.INFO: ==2878== Releasing lock... [2025-01-07 17:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:58:24] Production.INFO: 60.75 MB #Memory Used# [2025-01-07 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 14:59:05 [end_date_ymd] => 2025-01-07 17:59:05 [RateCDR] => 1 ) [2025-01-07 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 14:59:05' and `end` < '2025-01-07 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 17:59:19] Production.INFO: count ==4345 [2025-01-07 17:59:20] Production.ERROR: pbx CDR StartTime 2025-01-07 14:59:05 - End Time 2025-01-07 17:59:05 [2025-01-07 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196580', 'tblTempUsageDetail_20' ) start [2025-01-07 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196580', 'tblTempUsageDetail_20' ) end [2025-01-07 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196580', 'tblTempVendorCDR_20' ) start [2025-01-07 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196580', 'tblTempVendorCDR_20' ) end [2025-01-07 17:59:21] Production.INFO: ProcessCDR(1,14196580,1,1,2) [2025-01-07 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196580', 'tblTempUsageDetail_20' ) start [2025-01-07 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196580', 'tblTempUsageDetail_20' ) end [2025-01-07 17:59:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 17:59:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 17:59:26] Production.INFO: ==2981== Releasing lock... [2025-01-07 17:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 17:59:26] Production.INFO: 60.5 MB #Memory Used# [2025-01-07 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:00:05 [end_date_ymd] => 2025-01-07 18:00:05 [RateCDR] => 1 ) [2025-01-07 18:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:00:05' and `end` < '2025-01-07 18:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:00:19] Production.INFO: count ==4280 [2025-01-07 18:00:20] Production.ERROR: pbx CDR StartTime 2025-01-07 15:00:05 - End Time 2025-01-07 18:00:05 [2025-01-07 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196586', 'tblTempUsageDetail_20' ) start [2025-01-07 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196586', 'tblTempUsageDetail_20' ) end [2025-01-07 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196586', 'tblTempVendorCDR_20' ) start [2025-01-07 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196586', 'tblTempVendorCDR_20' ) end [2025-01-07 18:00:20] Production.INFO: ProcessCDR(1,14196586,1,1,2) [2025-01-07 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196586', 'tblTempUsageDetail_20' ) start [2025-01-07 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196586', 'tblTempUsageDetail_20' ) end [2025-01-07 18:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:00:25] Production.INFO: ==3091== Releasing lock... [2025-01-07 18:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:00:25] Production.INFO: 60 MB #Memory Used# [2025-01-07 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:01:06 [end_date_ymd] => 2025-01-07 18:01:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 15:01:06' and `end` < '2025-01-07 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-01-07 18:01:19] Production.INFO: count ==4186 [2025-01-07 18:01:21] Production.ERROR: pbx CDR StartTime 2025-01-07 15:01:06 - End Time 2025-01-07 18:01:06 [2025-01-07 18:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196591', 'tblTempUsageDetail_20' ) start [2025-01-07 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196591', 'tblTempUsageDetail_20' ) end [2025-01-07 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196591', 'tblTempVendorCDR_20' ) start [2025-01-07 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196591', 'tblTempVendorCDR_20' ) end [2025-01-07 18:01:21] Production.INFO: ProcessCDR(1,14196591,1,1,2) [2025-01-07 18:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196591', 'tblTempUsageDetail_20' ) start [2025-01-07 18:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196591', 'tblTempUsageDetail_20' ) end [2025-01-07 18:01:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:01:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:01:26] Production.INFO: ==3210== Releasing lock... [2025-01-07 18:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:01:26] Production.INFO: 59.25 MB #Memory Used# [2025-01-07 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:02:05 [end_date_ymd] => 2025-01-07 18:02:05 [RateCDR] => 1 ) [2025-01-07 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:02:05' and `end` < '2025-01-07 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:02:20] Production.INFO: count ==4143 [2025-01-07 18:02:21] Production.ERROR: pbx CDR StartTime 2025-01-07 15:02:05 - End Time 2025-01-07 18:02:05 [2025-01-07 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196596', 'tblTempUsageDetail_20' ) start [2025-01-07 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196596', 'tblTempUsageDetail_20' ) end [2025-01-07 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196596', 'tblTempVendorCDR_20' ) start [2025-01-07 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196596', 'tblTempVendorCDR_20' ) end [2025-01-07 18:02:22] Production.INFO: ProcessCDR(1,14196596,1,1,2) [2025-01-07 18:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196596', 'tblTempUsageDetail_20' ) start [2025-01-07 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196596', 'tblTempUsageDetail_20' ) end [2025-01-07 18:02:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:02:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:02:25] Production.INFO: ==3316== Releasing lock... [2025-01-07 18:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:02:25] Production.INFO: 59 MB #Memory Used# [2025-01-07 18:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:03:04 [end_date_ymd] => 2025-01-07 18:03:04 [RateCDR] => 1 ) [2025-01-07 18:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:03:04' and `end` < '2025-01-07 18:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:03:19] Production.INFO: count ==4104 [2025-01-07 18:03:20] Production.ERROR: pbx CDR StartTime 2025-01-07 15:03:04 - End Time 2025-01-07 18:03:04 [2025-01-07 18:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196601', 'tblTempUsageDetail_20' ) start [2025-01-07 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196601', 'tblTempUsageDetail_20' ) end [2025-01-07 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196601', 'tblTempVendorCDR_20' ) start [2025-01-07 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196601', 'tblTempVendorCDR_20' ) end [2025-01-07 18:03:20] Production.INFO: ProcessCDR(1,14196601,1,1,2) [2025-01-07 18:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196601', 'tblTempUsageDetail_20' ) start [2025-01-07 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196601', 'tblTempUsageDetail_20' ) end [2025-01-07 18:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:03:23] Production.INFO: ==3418== Releasing lock... [2025-01-07 18:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:03:23] Production.INFO: 58.75 MB #Memory Used# [2025-01-07 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:04:05 [end_date_ymd] => 2025-01-07 18:04:05 [RateCDR] => 1 ) [2025-01-07 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:04:05' and `end` < '2025-01-07 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:04:23] Production.INFO: count ==4066 [2025-01-07 18:04:24] Production.ERROR: pbx CDR StartTime 2025-01-07 15:04:05 - End Time 2025-01-07 18:04:05 [2025-01-07 18:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196606', 'tblTempUsageDetail_20' ) start [2025-01-07 18:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196606', 'tblTempUsageDetail_20' ) end [2025-01-07 18:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196606', 'tblTempVendorCDR_20' ) start [2025-01-07 18:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196606', 'tblTempVendorCDR_20' ) end [2025-01-07 18:04:24] Production.INFO: ProcessCDR(1,14196606,1,1,2) [2025-01-07 18:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196606', 'tblTempUsageDetail_20' ) start [2025-01-07 18:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196606', 'tblTempUsageDetail_20' ) end [2025-01-07 18:04:28] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:04:28] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:04:28] Production.INFO: ==3559== Releasing lock... [2025-01-07 18:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:04:28] Production.INFO: 58.5 MB #Memory Used# [2025-01-07 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:05:05 [end_date_ymd] => 2025-01-07 18:05:05 [RateCDR] => 1 ) [2025-01-07 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:05:05' and `end` < '2025-01-07 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:05:27] Production.INFO: count ==4051 [2025-01-07 18:05:29] Production.ERROR: pbx CDR StartTime 2025-01-07 15:05:05 - End Time 2025-01-07 18:05:05 [2025-01-07 18:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196611', 'tblTempUsageDetail_20' ) start [2025-01-07 18:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196611', 'tblTempUsageDetail_20' ) end [2025-01-07 18:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196611', 'tblTempVendorCDR_20' ) start [2025-01-07 18:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196611', 'tblTempVendorCDR_20' ) end [2025-01-07 18:05:29] Production.INFO: ProcessCDR(1,14196611,1,1,2) [2025-01-07 18:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196611', 'tblTempUsageDetail_20' ) start [2025-01-07 18:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196611', 'tblTempUsageDetail_20' ) end [2025-01-07 18:05:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:05:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:05:34] Production.INFO: ==3661== Releasing lock... [2025-01-07 18:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:05:34] Production.INFO: 58.5 MB #Memory Used# [2025-01-07 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:06:05 [end_date_ymd] => 2025-01-07 18:06:05 [RateCDR] => 1 ) [2025-01-07 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:06:05' and `end` < '2025-01-07 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:06:19] Production.INFO: count ==4025 [2025-01-07 18:06:20] Production.ERROR: pbx CDR StartTime 2025-01-07 15:06:05 - End Time 2025-01-07 18:06:05 [2025-01-07 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196616', 'tblTempUsageDetail_20' ) start [2025-01-07 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196616', 'tblTempUsageDetail_20' ) end [2025-01-07 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196616', 'tblTempVendorCDR_20' ) start [2025-01-07 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196616', 'tblTempVendorCDR_20' ) end [2025-01-07 18:06:20] Production.INFO: ProcessCDR(1,14196616,1,1,2) [2025-01-07 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196616', 'tblTempUsageDetail_20' ) start [2025-01-07 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196616', 'tblTempUsageDetail_20' ) end [2025-01-07 18:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:06:25] Production.INFO: ==3757== Releasing lock... [2025-01-07 18:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:06:25] Production.INFO: 58.25 MB #Memory Used# [2025-01-07 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:07:05 [end_date_ymd] => 2025-01-07 18:07:05 [RateCDR] => 1 ) [2025-01-07 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:07:05' and `end` < '2025-01-07 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:07:19] Production.INFO: count ==3981 [2025-01-07 18:07:21] Production.ERROR: pbx CDR StartTime 2025-01-07 15:07:05 - End Time 2025-01-07 18:07:05 [2025-01-07 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196621', 'tblTempUsageDetail_20' ) start [2025-01-07 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196621', 'tblTempUsageDetail_20' ) end [2025-01-07 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196621', 'tblTempVendorCDR_20' ) start [2025-01-07 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196621', 'tblTempVendorCDR_20' ) end [2025-01-07 18:07:21] Production.INFO: ProcessCDR(1,14196621,1,1,2) [2025-01-07 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196621', 'tblTempUsageDetail_20' ) start [2025-01-07 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196621', 'tblTempUsageDetail_20' ) end [2025-01-07 18:07:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:07:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:07:25] Production.INFO: ==3860== Releasing lock... [2025-01-07 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:07:25] Production.INFO: 57.75 MB #Memory Used# [2025-01-07 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:08:05 [end_date_ymd] => 2025-01-07 18:08:05 [RateCDR] => 1 ) [2025-01-07 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:08:05' and `end` < '2025-01-07 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:08:18] Production.INFO: count ==3943 [2025-01-07 18:08:19] Production.ERROR: pbx CDR StartTime 2025-01-07 15:08:05 - End Time 2025-01-07 18:08:05 [2025-01-07 18:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196626', 'tblTempUsageDetail_20' ) start [2025-01-07 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196626', 'tblTempUsageDetail_20' ) end [2025-01-07 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196626', 'tblTempVendorCDR_20' ) start [2025-01-07 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196626', 'tblTempVendorCDR_20' ) end [2025-01-07 18:08:20] Production.INFO: ProcessCDR(1,14196626,1,1,2) [2025-01-07 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196626', 'tblTempUsageDetail_20' ) start [2025-01-07 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196626', 'tblTempUsageDetail_20' ) end [2025-01-07 18:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:08:24] Production.INFO: ==3959== Releasing lock... [2025-01-07 18:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:08:24] Production.INFO: 57.5 MB #Memory Used# [2025-01-07 18:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:09:06 [end_date_ymd] => 2025-01-07 18:09:06 [RateCDR] => 1 ) [2025-01-07 18:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:09:06' and `end` < '2025-01-07 18:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:09:20] Production.INFO: count ==3917 [2025-01-07 18:09:21] Production.ERROR: pbx CDR StartTime 2025-01-07 15:09:06 - End Time 2025-01-07 18:09:06 [2025-01-07 18:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196631', 'tblTempUsageDetail_20' ) start [2025-01-07 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196631', 'tblTempUsageDetail_20' ) end [2025-01-07 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196631', 'tblTempVendorCDR_20' ) start [2025-01-07 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196631', 'tblTempVendorCDR_20' ) end [2025-01-07 18:09:21] Production.INFO: ProcessCDR(1,14196631,1,1,2) [2025-01-07 18:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196631', 'tblTempUsageDetail_20' ) start [2025-01-07 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196631', 'tblTempUsageDetail_20' ) end [2025-01-07 18:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:09:24] Production.INFO: ==4073== Releasing lock... [2025-01-07 18:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:09:24] Production.INFO: 57.25 MB #Memory Used# [2025-01-07 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:10:06 [end_date_ymd] => 2025-01-07 18:10:06 [RateCDR] => 1 ) [2025-01-07 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:10:06' and `end` < '2025-01-07 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:10:19] Production.INFO: count ==3897 [2025-01-07 18:10:21] Production.ERROR: pbx CDR StartTime 2025-01-07 15:10:06 - End Time 2025-01-07 18:10:06 [2025-01-07 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196637', 'tblTempUsageDetail_20' ) start [2025-01-07 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196637', 'tblTempUsageDetail_20' ) end [2025-01-07 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196637', 'tblTempVendorCDR_20' ) start [2025-01-07 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196637', 'tblTempVendorCDR_20' ) end [2025-01-07 18:10:21] Production.INFO: ProcessCDR(1,14196637,1,1,2) [2025-01-07 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196637', 'tblTempUsageDetail_20' ) start [2025-01-07 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196637', 'tblTempUsageDetail_20' ) end [2025-01-07 18:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:10:25] Production.INFO: ==4208== Releasing lock... [2025-01-07 18:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:10:25] Production.INFO: 57.25 MB #Memory Used# [2025-01-07 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:11:05 [end_date_ymd] => 2025-01-07 18:11:05 [RateCDR] => 1 ) [2025-01-07 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:11:05' and `end` < '2025-01-07 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:11:18] Production.INFO: count ==3808 [2025-01-07 18:11:20] Production.ERROR: pbx CDR StartTime 2025-01-07 15:11:05 - End Time 2025-01-07 18:11:05 [2025-01-07 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196642', 'tblTempUsageDetail_20' ) start [2025-01-07 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196642', 'tblTempUsageDetail_20' ) end [2025-01-07 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196642', 'tblTempVendorCDR_20' ) start [2025-01-07 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196642', 'tblTempVendorCDR_20' ) end [2025-01-07 18:11:20] Production.INFO: ProcessCDR(1,14196642,1,1,2) [2025-01-07 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196642', 'tblTempUsageDetail_20' ) start [2025-01-07 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196642', 'tblTempUsageDetail_20' ) end [2025-01-07 18:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:11:23] Production.INFO: ==4315== Releasing lock... [2025-01-07 18:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:11:23] Production.INFO: 56.75 MB #Memory Used# [2025-01-07 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:12:05 [end_date_ymd] => 2025-01-07 18:12:05 [RateCDR] => 1 ) [2025-01-07 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:12:05' and `end` < '2025-01-07 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:12:20] Production.INFO: count ==3788 [2025-01-07 18:12:21] Production.ERROR: pbx CDR StartTime 2025-01-07 15:12:05 - End Time 2025-01-07 18:12:05 [2025-01-07 18:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196647', 'tblTempUsageDetail_20' ) start [2025-01-07 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196647', 'tblTempUsageDetail_20' ) end [2025-01-07 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196647', 'tblTempVendorCDR_20' ) start [2025-01-07 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196647', 'tblTempVendorCDR_20' ) end [2025-01-07 18:12:21] Production.INFO: ProcessCDR(1,14196647,1,1,2) [2025-01-07 18:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196647', 'tblTempUsageDetail_20' ) start [2025-01-07 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196647', 'tblTempUsageDetail_20' ) end [2025-01-07 18:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:12:25] Production.INFO: ==4405== Releasing lock... [2025-01-07 18:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:12:25] Production.INFO: 57 MB #Memory Used# [2025-01-07 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:13:05 [end_date_ymd] => 2025-01-07 18:13:05 [RateCDR] => 1 ) [2025-01-07 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:13:05' and `end` < '2025-01-07 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:13:19] Production.INFO: count ==3773 [2025-01-07 18:13:21] Production.ERROR: pbx CDR StartTime 2025-01-07 15:13:05 - End Time 2025-01-07 18:13:05 [2025-01-07 18:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196652', 'tblTempUsageDetail_20' ) start [2025-01-07 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196652', 'tblTempUsageDetail_20' ) end [2025-01-07 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196652', 'tblTempVendorCDR_20' ) start [2025-01-07 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196652', 'tblTempVendorCDR_20' ) end [2025-01-07 18:13:21] Production.INFO: ProcessCDR(1,14196652,1,1,2) [2025-01-07 18:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196652', 'tblTempUsageDetail_20' ) start [2025-01-07 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196652', 'tblTempUsageDetail_20' ) end [2025-01-07 18:13:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:13:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:13:25] Production.INFO: ==4476== Releasing lock... [2025-01-07 18:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:13:25] Production.INFO: 57.25 MB #Memory Used# [2025-01-07 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:14:05 [end_date_ymd] => 2025-01-07 18:14:05 [RateCDR] => 1 ) [2025-01-07 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:14:05' and `end` < '2025-01-07 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:14:18] Production.INFO: count ==3755 [2025-01-07 18:14:20] Production.ERROR: pbx CDR StartTime 2025-01-07 15:14:05 - End Time 2025-01-07 18:14:05 [2025-01-07 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196657', 'tblTempUsageDetail_20' ) start [2025-01-07 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196657', 'tblTempUsageDetail_20' ) end [2025-01-07 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196657', 'tblTempVendorCDR_20' ) start [2025-01-07 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196657', 'tblTempVendorCDR_20' ) end [2025-01-07 18:14:20] Production.INFO: ProcessCDR(1,14196657,1,1,2) [2025-01-07 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196657', 'tblTempUsageDetail_20' ) start [2025-01-07 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196657', 'tblTempUsageDetail_20' ) end [2025-01-07 18:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:14:24] Production.INFO: ==4551== Releasing lock... [2025-01-07 18:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:14:24] Production.INFO: 56.5 MB #Memory Used# [2025-01-07 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:15:05 [end_date_ymd] => 2025-01-07 18:15:05 [RateCDR] => 1 ) [2025-01-07 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:15:05' and `end` < '2025-01-07 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:15:19] Production.INFO: count ==3755 [2025-01-07 18:15:20] Production.ERROR: pbx CDR StartTime 2025-01-07 15:15:05 - End Time 2025-01-07 18:15:05 [2025-01-07 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196662', 'tblTempUsageDetail_20' ) start [2025-01-07 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196662', 'tblTempUsageDetail_20' ) end [2025-01-07 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196662', 'tblTempVendorCDR_20' ) start [2025-01-07 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196662', 'tblTempVendorCDR_20' ) end [2025-01-07 18:15:20] Production.INFO: ProcessCDR(1,14196662,1,1,2) [2025-01-07 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196662', 'tblTempUsageDetail_20' ) start [2025-01-07 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196662', 'tblTempUsageDetail_20' ) end [2025-01-07 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:15:25] Production.INFO: ==4633== Releasing lock... [2025-01-07 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:15:25] Production.INFO: 56.25 MB #Memory Used# [2025-01-07 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:16:05 [end_date_ymd] => 2025-01-07 18:16:05 [RateCDR] => 1 ) [2025-01-07 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:16:05' and `end` < '2025-01-07 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:16:18] Production.INFO: count ==3734 [2025-01-07 18:16:19] Production.ERROR: pbx CDR StartTime 2025-01-07 15:16:05 - End Time 2025-01-07 18:16:05 [2025-01-07 18:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196667', 'tblTempUsageDetail_20' ) start [2025-01-07 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196667', 'tblTempUsageDetail_20' ) end [2025-01-07 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196667', 'tblTempVendorCDR_20' ) start [2025-01-07 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196667', 'tblTempVendorCDR_20' ) end [2025-01-07 18:16:19] Production.INFO: ProcessCDR(1,14196667,1,1,2) [2025-01-07 18:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196667', 'tblTempUsageDetail_20' ) start [2025-01-07 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196667', 'tblTempUsageDetail_20' ) end [2025-01-07 18:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:16:22] Production.INFO: ==4703== Releasing lock... [2025-01-07 18:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:16:22] Production.INFO: 56.5 MB #Memory Used# [2025-01-07 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:17:05 [end_date_ymd] => 2025-01-07 18:17:05 [RateCDR] => 1 ) [2025-01-07 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:17:05' and `end` < '2025-01-07 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:17:19] Production.INFO: count ==3717 [2025-01-07 18:17:20] Production.ERROR: pbx CDR StartTime 2025-01-07 15:17:05 - End Time 2025-01-07 18:17:05 [2025-01-07 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196672', 'tblTempUsageDetail_20' ) start [2025-01-07 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196672', 'tblTempUsageDetail_20' ) end [2025-01-07 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196672', 'tblTempVendorCDR_20' ) start [2025-01-07 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196672', 'tblTempVendorCDR_20' ) end [2025-01-07 18:17:20] Production.INFO: ProcessCDR(1,14196672,1,1,2) [2025-01-07 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196672', 'tblTempUsageDetail_20' ) start [2025-01-07 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196672', 'tblTempUsageDetail_20' ) end [2025-01-07 18:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:17:24] Production.INFO: ==4773== Releasing lock... [2025-01-07 18:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:17:24] Production.INFO: 56.5 MB #Memory Used# [2025-01-07 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:18:05 [end_date_ymd] => 2025-01-07 18:18:05 [RateCDR] => 1 ) [2025-01-07 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:18:05' and `end` < '2025-01-07 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:18:18] Production.INFO: count ==3694 [2025-01-07 18:18:19] Production.ERROR: pbx CDR StartTime 2025-01-07 15:18:05 - End Time 2025-01-07 18:18:05 [2025-01-07 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196677', 'tblTempUsageDetail_20' ) start [2025-01-07 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196677', 'tblTempUsageDetail_20' ) end [2025-01-07 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196677', 'tblTempVendorCDR_20' ) start [2025-01-07 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196677', 'tblTempVendorCDR_20' ) end [2025-01-07 18:18:20] Production.INFO: ProcessCDR(1,14196677,1,1,2) [2025-01-07 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196677', 'tblTempUsageDetail_20' ) start [2025-01-07 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196677', 'tblTempUsageDetail_20' ) end [2025-01-07 18:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:18:24] Production.INFO: ==4842== Releasing lock... [2025-01-07 18:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:18:24] Production.INFO: 55.75 MB #Memory Used# [2025-01-07 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:19:05 [end_date_ymd] => 2025-01-07 18:19:05 [RateCDR] => 1 ) [2025-01-07 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:19:05' and `end` < '2025-01-07 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:19:18] Production.INFO: count ==3678 [2025-01-07 18:19:20] Production.ERROR: pbx CDR StartTime 2025-01-07 15:19:05 - End Time 2025-01-07 18:19:05 [2025-01-07 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196682', 'tblTempUsageDetail_20' ) start [2025-01-07 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196682', 'tblTempUsageDetail_20' ) end [2025-01-07 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196682', 'tblTempVendorCDR_20' ) start [2025-01-07 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196682', 'tblTempVendorCDR_20' ) end [2025-01-07 18:19:20] Production.INFO: ProcessCDR(1,14196682,1,1,2) [2025-01-07 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196682', 'tblTempUsageDetail_20' ) start [2025-01-07 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196682', 'tblTempUsageDetail_20' ) end [2025-01-07 18:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:19:23] Production.INFO: ==4913== Releasing lock... [2025-01-07 18:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:19:23] Production.INFO: 56.25 MB #Memory Used# [2025-01-07 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:20:05 [end_date_ymd] => 2025-01-07 18:20:05 [RateCDR] => 1 ) [2025-01-07 18:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:20:05' and `end` < '2025-01-07 18:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:20:19] Production.INFO: count ==3659 [2025-01-07 18:20:20] Production.ERROR: pbx CDR StartTime 2025-01-07 15:20:05 - End Time 2025-01-07 18:20:05 [2025-01-07 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196688', 'tblTempUsageDetail_20' ) start [2025-01-07 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196688', 'tblTempUsageDetail_20' ) end [2025-01-07 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196688', 'tblTempVendorCDR_20' ) start [2025-01-07 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196688', 'tblTempVendorCDR_20' ) end [2025-01-07 18:20:20] Production.INFO: ProcessCDR(1,14196688,1,1,2) [2025-01-07 18:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196688', 'tblTempUsageDetail_20' ) start [2025-01-07 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196688', 'tblTempUsageDetail_20' ) end [2025-01-07 18:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:20:23] Production.INFO: ==5026== Releasing lock... [2025-01-07 18:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:20:23] Production.INFO: 56.25 MB #Memory Used# [2025-01-07 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:21:05 [end_date_ymd] => 2025-01-07 18:21:05 [RateCDR] => 1 ) [2025-01-07 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:21:05' and `end` < '2025-01-07 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:21:18] Production.INFO: count ==3583 [2025-01-07 18:21:20] Production.ERROR: pbx CDR StartTime 2025-01-07 15:21:05 - End Time 2025-01-07 18:21:05 [2025-01-07 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196693', 'tblTempUsageDetail_20' ) start [2025-01-07 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196693', 'tblTempUsageDetail_20' ) end [2025-01-07 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196693', 'tblTempVendorCDR_20' ) start [2025-01-07 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196693', 'tblTempVendorCDR_20' ) end [2025-01-07 18:21:20] Production.INFO: ProcessCDR(1,14196693,1,1,2) [2025-01-07 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196693', 'tblTempUsageDetail_20' ) start [2025-01-07 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196693', 'tblTempUsageDetail_20' ) end [2025-01-07 18:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:21:24] Production.INFO: ==5099== Releasing lock... [2025-01-07 18:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:21:24] Production.INFO: 55 MB #Memory Used# [2025-01-07 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:22:05 [end_date_ymd] => 2025-01-07 18:22:05 [RateCDR] => 1 ) [2025-01-07 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:22:05' and `end` < '2025-01-07 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:22:18] Production.INFO: count ==3559 [2025-01-07 18:22:19] Production.ERROR: pbx CDR StartTime 2025-01-07 15:22:05 - End Time 2025-01-07 18:22:05 [2025-01-07 18:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196698', 'tblTempUsageDetail_20' ) start [2025-01-07 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196698', 'tblTempUsageDetail_20' ) end [2025-01-07 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196698', 'tblTempVendorCDR_20' ) start [2025-01-07 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196698', 'tblTempVendorCDR_20' ) end [2025-01-07 18:22:19] Production.INFO: ProcessCDR(1,14196698,1,1,2) [2025-01-07 18:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196698', 'tblTempUsageDetail_20' ) start [2025-01-07 18:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196698', 'tblTempUsageDetail_20' ) end [2025-01-07 18:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:22:22] Production.INFO: ==5173== Releasing lock... [2025-01-07 18:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:22:22] Production.INFO: 55.5 MB #Memory Used# [2025-01-07 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:23:05 [end_date_ymd] => 2025-01-07 18:23:05 [RateCDR] => 1 ) [2025-01-07 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:23:05' and `end` < '2025-01-07 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:23:20] Production.INFO: count ==3546 [2025-01-07 18:23:21] Production.ERROR: pbx CDR StartTime 2025-01-07 15:23:05 - End Time 2025-01-07 18:23:05 [2025-01-07 18:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196703', 'tblTempUsageDetail_20' ) start [2025-01-07 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196703', 'tblTempUsageDetail_20' ) end [2025-01-07 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196703', 'tblTempVendorCDR_20' ) start [2025-01-07 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196703', 'tblTempVendorCDR_20' ) end [2025-01-07 18:23:22] Production.INFO: ProcessCDR(1,14196703,1,1,2) [2025-01-07 18:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196703', 'tblTempUsageDetail_20' ) start [2025-01-07 18:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196703', 'tblTempUsageDetail_20' ) end [2025-01-07 18:23:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:23:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:23:26] Production.INFO: ==5244== Releasing lock... [2025-01-07 18:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:23:26] Production.INFO: 54.5 MB #Memory Used# [2025-01-07 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:24:05 [end_date_ymd] => 2025-01-07 18:24:05 [RateCDR] => 1 ) [2025-01-07 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:24:05' and `end` < '2025-01-07 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:24:19] Production.INFO: count ==3523 [2025-01-07 18:24:20] Production.ERROR: pbx CDR StartTime 2025-01-07 15:24:05 - End Time 2025-01-07 18:24:05 [2025-01-07 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196708', 'tblTempUsageDetail_20' ) start [2025-01-07 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196708', 'tblTempUsageDetail_20' ) end [2025-01-07 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196708', 'tblTempVendorCDR_20' ) start [2025-01-07 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196708', 'tblTempVendorCDR_20' ) end [2025-01-07 18:24:21] Production.INFO: ProcessCDR(1,14196708,1,1,2) [2025-01-07 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196708', 'tblTempUsageDetail_20' ) start [2025-01-07 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196708', 'tblTempUsageDetail_20' ) end [2025-01-07 18:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:24:24] Production.INFO: ==5320== Releasing lock... [2025-01-07 18:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:24:24] Production.INFO: 55 MB #Memory Used# [2025-01-07 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:25:05 [end_date_ymd] => 2025-01-07 18:25:05 [RateCDR] => 1 ) [2025-01-07 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:25:05' and `end` < '2025-01-07 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:25:19] Production.INFO: count ==3509 [2025-01-07 18:25:20] Production.ERROR: pbx CDR StartTime 2025-01-07 15:25:05 - End Time 2025-01-07 18:25:05 [2025-01-07 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196713', 'tblTempUsageDetail_20' ) start [2025-01-07 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196713', 'tblTempUsageDetail_20' ) end [2025-01-07 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196713', 'tblTempVendorCDR_20' ) start [2025-01-07 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196713', 'tblTempVendorCDR_20' ) end [2025-01-07 18:25:20] Production.INFO: ProcessCDR(1,14196713,1,1,2) [2025-01-07 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196713', 'tblTempUsageDetail_20' ) start [2025-01-07 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196713', 'tblTempUsageDetail_20' ) end [2025-01-07 18:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:25:23] Production.INFO: ==5394== Releasing lock... [2025-01-07 18:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:25:23] Production.INFO: 54.5 MB #Memory Used# [2025-01-07 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:26:05 [end_date_ymd] => 2025-01-07 18:26:05 [RateCDR] => 1 ) [2025-01-07 18:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:26:05' and `end` < '2025-01-07 18:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:26:19] Production.INFO: count ==3498 [2025-01-07 18:26:21] Production.ERROR: pbx CDR StartTime 2025-01-07 15:26:05 - End Time 2025-01-07 18:26:05 [2025-01-07 18:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196718', 'tblTempUsageDetail_20' ) start [2025-01-07 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196718', 'tblTempUsageDetail_20' ) end [2025-01-07 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196718', 'tblTempVendorCDR_20' ) start [2025-01-07 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196718', 'tblTempVendorCDR_20' ) end [2025-01-07 18:26:21] Production.INFO: ProcessCDR(1,14196718,1,1,2) [2025-01-07 18:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196718', 'tblTempUsageDetail_20' ) start [2025-01-07 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196718', 'tblTempUsageDetail_20' ) end [2025-01-07 18:26:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:26:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:26:24] Production.INFO: ==5462== Releasing lock... [2025-01-07 18:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:26:24] Production.INFO: 54.5 MB #Memory Used# [2025-01-07 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:27:05 [end_date_ymd] => 2025-01-07 18:27:05 [RateCDR] => 1 ) [2025-01-07 18:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:27:05' and `end` < '2025-01-07 18:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:27:21] Production.INFO: count ==3499 [2025-01-07 18:27:22] Production.ERROR: pbx CDR StartTime 2025-01-07 15:27:05 - End Time 2025-01-07 18:27:05 [2025-01-07 18:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196723', 'tblTempUsageDetail_20' ) start [2025-01-07 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196723', 'tblTempUsageDetail_20' ) end [2025-01-07 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196723', 'tblTempVendorCDR_20' ) start [2025-01-07 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196723', 'tblTempVendorCDR_20' ) end [2025-01-07 18:27:22] Production.INFO: ProcessCDR(1,14196723,1,1,2) [2025-01-07 18:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196723', 'tblTempUsageDetail_20' ) start [2025-01-07 18:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196723', 'tblTempUsageDetail_20' ) end [2025-01-07 18:27:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:27:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:27:26] Production.INFO: ==5538== Releasing lock... [2025-01-07 18:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:27:26] Production.INFO: 54.25 MB #Memory Used# [2025-01-07 18:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:28:06 [end_date_ymd] => 2025-01-07 18:28:06 [RateCDR] => 1 ) [2025-01-07 18:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:28:06' and `end` < '2025-01-07 18:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:28:24] Production.INFO: count ==3496 [2025-01-07 18:28:26] Production.ERROR: pbx CDR StartTime 2025-01-07 15:28:06 - End Time 2025-01-07 18:28:06 [2025-01-07 18:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196728', 'tblTempUsageDetail_20' ) start [2025-01-07 18:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196728', 'tblTempUsageDetail_20' ) end [2025-01-07 18:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196728', 'tblTempVendorCDR_20' ) start [2025-01-07 18:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196728', 'tblTempVendorCDR_20' ) end [2025-01-07 18:28:26] Production.INFO: ProcessCDR(1,14196728,1,1,2) [2025-01-07 18:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196728', 'tblTempUsageDetail_20' ) start [2025-01-07 18:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196728', 'tblTempUsageDetail_20' ) end [2025-01-07 18:28:29] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:28:29] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:28:29] Production.INFO: ==5609== Releasing lock... [2025-01-07 18:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:28:29] Production.INFO: 54.5 MB #Memory Used# [2025-01-07 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:29:05 [end_date_ymd] => 2025-01-07 18:29:05 [RateCDR] => 1 ) [2025-01-07 18:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:29:05' and `end` < '2025-01-07 18:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:29:20] Production.INFO: count ==3487 [2025-01-07 18:29:21] Production.ERROR: pbx CDR StartTime 2025-01-07 15:29:05 - End Time 2025-01-07 18:29:05 [2025-01-07 18:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196733', 'tblTempUsageDetail_20' ) start [2025-01-07 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196733', 'tblTempUsageDetail_20' ) end [2025-01-07 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196733', 'tblTempVendorCDR_20' ) start [2025-01-07 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196733', 'tblTempVendorCDR_20' ) end [2025-01-07 18:29:21] Production.INFO: ProcessCDR(1,14196733,1,1,2) [2025-01-07 18:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196733', 'tblTempUsageDetail_20' ) start [2025-01-07 18:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196733', 'tblTempUsageDetail_20' ) end [2025-01-07 18:29:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:29:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:29:25] Production.INFO: ==5677== Releasing lock... [2025-01-07 18:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:29:25] Production.INFO: 55.25 MB #Memory Used# [2025-01-07 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:30:06 [end_date_ymd] => 2025-01-07 18:30:06 [RateCDR] => 1 ) [2025-01-07 18:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:30:06' and `end` < '2025-01-07 18:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:30:21] Production.INFO: count ==3481 [2025-01-07 18:30:22] Production.ERROR: pbx CDR StartTime 2025-01-07 15:30:06 - End Time 2025-01-07 18:30:06 [2025-01-07 18:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196739', 'tblTempUsageDetail_20' ) start [2025-01-07 18:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196739', 'tblTempUsageDetail_20' ) end [2025-01-07 18:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196739', 'tblTempVendorCDR_20' ) start [2025-01-07 18:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196739', 'tblTempVendorCDR_20' ) end [2025-01-07 18:30:22] Production.INFO: ProcessCDR(1,14196739,1,1,2) [2025-01-07 18:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196739', 'tblTempUsageDetail_20' ) start [2025-01-07 18:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196739', 'tblTempUsageDetail_20' ) end [2025-01-07 18:30:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:30:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:30:26] Production.INFO: ==5750== Releasing lock... [2025-01-07 18:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:30:26] Production.INFO: 55.5 MB #Memory Used# [2025-01-07 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:31:05 [end_date_ymd] => 2025-01-07 18:31:05 [RateCDR] => 1 ) [2025-01-07 18:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:31:05' and `end` < '2025-01-07 18:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:31:25] Production.INFO: count ==3474 [2025-01-07 18:31:26] Production.ERROR: pbx CDR StartTime 2025-01-07 15:31:05 - End Time 2025-01-07 18:31:05 [2025-01-07 18:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196744', 'tblTempUsageDetail_20' ) start [2025-01-07 18:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196744', 'tblTempUsageDetail_20' ) end [2025-01-07 18:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196744', 'tblTempVendorCDR_20' ) start [2025-01-07 18:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196744', 'tblTempVendorCDR_20' ) end [2025-01-07 18:31:26] Production.INFO: ProcessCDR(1,14196744,1,1,2) [2025-01-07 18:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196744', 'tblTempUsageDetail_20' ) start [2025-01-07 18:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196744', 'tblTempUsageDetail_20' ) end [2025-01-07 18:31:30] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:31:30] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:31:30] Production.INFO: ==5823== Releasing lock... [2025-01-07 18:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:31:30] Production.INFO: 54.75 MB #Memory Used# [2025-01-07 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:32:05 [end_date_ymd] => 2025-01-07 18:32:05 [RateCDR] => 1 ) [2025-01-07 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:32:05' and `end` < '2025-01-07 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:32:28] Production.INFO: count ==3475 [2025-01-07 18:32:29] Production.ERROR: pbx CDR StartTime 2025-01-07 15:32:05 - End Time 2025-01-07 18:32:05 [2025-01-07 18:32:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196749', 'tblTempUsageDetail_20' ) start [2025-01-07 18:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196749', 'tblTempUsageDetail_20' ) end [2025-01-07 18:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196749', 'tblTempVendorCDR_20' ) start [2025-01-07 18:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196749', 'tblTempVendorCDR_20' ) end [2025-01-07 18:32:29] Production.INFO: ProcessCDR(1,14196749,1,1,2) [2025-01-07 18:32:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:32:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:32:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:32:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196749', 'tblTempUsageDetail_20' ) start [2025-01-07 18:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196749', 'tblTempUsageDetail_20' ) end [2025-01-07 18:32:34] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:32:34] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:32:34] Production.INFO: ==5895== Releasing lock... [2025-01-07 18:32:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:32:34] Production.INFO: 54.75 MB #Memory Used# [2025-01-07 18:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:33:04 [end_date_ymd] => 2025-01-07 18:33:04 [RateCDR] => 1 ) [2025-01-07 18:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:33:04' and `end` < '2025-01-07 18:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:33:20] Production.INFO: count ==3468 [2025-01-07 18:33:21] Production.ERROR: pbx CDR StartTime 2025-01-07 15:33:04 - End Time 2025-01-07 18:33:04 [2025-01-07 18:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196754', 'tblTempUsageDetail_20' ) start [2025-01-07 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196754', 'tblTempUsageDetail_20' ) end [2025-01-07 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196754', 'tblTempVendorCDR_20' ) start [2025-01-07 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196754', 'tblTempVendorCDR_20' ) end [2025-01-07 18:33:21] Production.INFO: ProcessCDR(1,14196754,1,1,2) [2025-01-07 18:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196754', 'tblTempUsageDetail_20' ) start [2025-01-07 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196754', 'tblTempUsageDetail_20' ) end [2025-01-07 18:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:33:24] Production.INFO: ==5965== Releasing lock... [2025-01-07 18:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:33:24] Production.INFO: 54.5 MB #Memory Used# [2025-01-07 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:34:05 [end_date_ymd] => 2025-01-07 18:34:05 [RateCDR] => 1 ) [2025-01-07 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:34:05' and `end` < '2025-01-07 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:34:22] Production.INFO: count ==3479 [2025-01-07 18:34:23] Production.ERROR: pbx CDR StartTime 2025-01-07 15:34:05 - End Time 2025-01-07 18:34:05 [2025-01-07 18:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196759', 'tblTempUsageDetail_20' ) start [2025-01-07 18:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196759', 'tblTempUsageDetail_20' ) end [2025-01-07 18:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196759', 'tblTempVendorCDR_20' ) start [2025-01-07 18:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196759', 'tblTempVendorCDR_20' ) end [2025-01-07 18:34:23] Production.INFO: ProcessCDR(1,14196759,1,1,2) [2025-01-07 18:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196759', 'tblTempUsageDetail_20' ) start [2025-01-07 18:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196759', 'tblTempUsageDetail_20' ) end [2025-01-07 18:34:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:34:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:34:26] Production.INFO: ==6036== Releasing lock... [2025-01-07 18:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:34:26] Production.INFO: 54.75 MB #Memory Used# [2025-01-07 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:35:05 [end_date_ymd] => 2025-01-07 18:35:05 [RateCDR] => 1 ) [2025-01-07 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:35:05' and `end` < '2025-01-07 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:35:18] Production.INFO: count ==3474 [2025-01-07 18:35:19] Production.ERROR: pbx CDR StartTime 2025-01-07 15:35:05 - End Time 2025-01-07 18:35:05 [2025-01-07 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196764', 'tblTempUsageDetail_20' ) start [2025-01-07 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196764', 'tblTempUsageDetail_20' ) end [2025-01-07 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196764', 'tblTempVendorCDR_20' ) start [2025-01-07 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196764', 'tblTempVendorCDR_20' ) end [2025-01-07 18:35:19] Production.INFO: ProcessCDR(1,14196764,1,1,2) [2025-01-07 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196764', 'tblTempUsageDetail_20' ) start [2025-01-07 18:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196764', 'tblTempUsageDetail_20' ) end [2025-01-07 18:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:35:22] Production.INFO: ==6146== Releasing lock... [2025-01-07 18:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:35:22] Production.INFO: 54.5 MB #Memory Used# [2025-01-07 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:36:05 [end_date_ymd] => 2025-01-07 18:36:05 [RateCDR] => 1 ) [2025-01-07 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:36:05' and `end` < '2025-01-07 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:36:18] Production.INFO: count ==3451 [2025-01-07 18:36:20] Production.ERROR: pbx CDR StartTime 2025-01-07 15:36:05 - End Time 2025-01-07 18:36:05 [2025-01-07 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196769', 'tblTempUsageDetail_20' ) start [2025-01-07 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196769', 'tblTempUsageDetail_20' ) end [2025-01-07 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196769', 'tblTempVendorCDR_20' ) start [2025-01-07 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196769', 'tblTempVendorCDR_20' ) end [2025-01-07 18:36:20] Production.INFO: ProcessCDR(1,14196769,1,1,2) [2025-01-07 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196769', 'tblTempUsageDetail_20' ) start [2025-01-07 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196769', 'tblTempUsageDetail_20' ) end [2025-01-07 18:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:36:23] Production.INFO: ==6217== Releasing lock... [2025-01-07 18:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:36:23] Production.INFO: 55.25 MB #Memory Used# [2025-01-07 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:37:05 [end_date_ymd] => 2025-01-07 18:37:05 [RateCDR] => 1 ) [2025-01-07 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:37:05' and `end` < '2025-01-07 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:37:19] Production.INFO: count ==3441 [2025-01-07 18:37:20] Production.ERROR: pbx CDR StartTime 2025-01-07 15:37:05 - End Time 2025-01-07 18:37:05 [2025-01-07 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196774', 'tblTempUsageDetail_20' ) start [2025-01-07 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196774', 'tblTempUsageDetail_20' ) end [2025-01-07 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196774', 'tblTempVendorCDR_20' ) start [2025-01-07 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196774', 'tblTempVendorCDR_20' ) end [2025-01-07 18:37:20] Production.INFO: ProcessCDR(1,14196774,1,1,2) [2025-01-07 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196774', 'tblTempUsageDetail_20' ) start [2025-01-07 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196774', 'tblTempUsageDetail_20' ) end [2025-01-07 18:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:37:23] Production.INFO: ==6292== Releasing lock... [2025-01-07 18:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:37:23] Production.INFO: 54 MB #Memory Used# [2025-01-07 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:38:05 [end_date_ymd] => 2025-01-07 18:38:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 15:38:05' and `end` < '2025-01-07 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-01-07 18:38:19] Production.INFO: count ==3432 [2025-01-07 18:38:20] Production.ERROR: pbx CDR StartTime 2025-01-07 15:38:05 - End Time 2025-01-07 18:38:05 [2025-01-07 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196778', 'tblTempUsageDetail_20' ) start [2025-01-07 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196778', 'tblTempUsageDetail_20' ) end [2025-01-07 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196778', 'tblTempVendorCDR_20' ) start [2025-01-07 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196778', 'tblTempVendorCDR_20' ) end [2025-01-07 18:38:20] Production.INFO: ProcessCDR(1,14196778,1,1,2) [2025-01-07 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196778', 'tblTempUsageDetail_20' ) start [2025-01-07 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196778', 'tblTempUsageDetail_20' ) end [2025-01-07 18:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:38:23] Production.INFO: ==6364== Releasing lock... [2025-01-07 18:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:38:23] Production.INFO: 54.5 MB #Memory Used# [2025-01-07 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:39:05 [end_date_ymd] => 2025-01-07 18:39:05 [RateCDR] => 1 ) [2025-01-07 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:39:05' and `end` < '2025-01-07 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:39:18] Production.INFO: count ==3419 [2025-01-07 18:39:19] Production.ERROR: pbx CDR StartTime 2025-01-07 15:39:05 - End Time 2025-01-07 18:39:05 [2025-01-07 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196784', 'tblTempUsageDetail_20' ) start [2025-01-07 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196784', 'tblTempUsageDetail_20' ) end [2025-01-07 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196784', 'tblTempVendorCDR_20' ) start [2025-01-07 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196784', 'tblTempVendorCDR_20' ) end [2025-01-07 18:39:19] Production.INFO: ProcessCDR(1,14196784,1,1,2) [2025-01-07 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196784', 'tblTempUsageDetail_20' ) start [2025-01-07 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196784', 'tblTempUsageDetail_20' ) end [2025-01-07 18:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:39:22] Production.INFO: ==6434== Releasing lock... [2025-01-07 18:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:39:22] Production.INFO: 54 MB #Memory Used# [2025-01-07 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:40:06 [end_date_ymd] => 2025-01-07 18:40:06 [RateCDR] => 1 ) [2025-01-07 18:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:40:06' and `end` < '2025-01-07 18:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:40:19] Production.INFO: count ==3406 [2025-01-07 18:40:20] Production.ERROR: pbx CDR StartTime 2025-01-07 15:40:06 - End Time 2025-01-07 18:40:06 [2025-01-07 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196789', 'tblTempUsageDetail_20' ) start [2025-01-07 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196789', 'tblTempUsageDetail_20' ) end [2025-01-07 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196789', 'tblTempVendorCDR_20' ) start [2025-01-07 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196789', 'tblTempVendorCDR_20' ) end [2025-01-07 18:40:20] Production.INFO: ProcessCDR(1,14196789,1,1,2) [2025-01-07 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196789', 'tblTempUsageDetail_20' ) start [2025-01-07 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196789', 'tblTempUsageDetail_20' ) end [2025-01-07 18:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:40:23] Production.INFO: ==6509== Releasing lock... [2025-01-07 18:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:40:23] Production.INFO: 54.25 MB #Memory Used# [2025-01-07 18:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:41:04 [end_date_ymd] => 2025-01-07 18:41:04 [RateCDR] => 1 ) [2025-01-07 18:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:41:04' and `end` < '2025-01-07 18:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:41:18] Production.INFO: count ==3313 [2025-01-07 18:41:19] Production.ERROR: pbx CDR StartTime 2025-01-07 15:41:04 - End Time 2025-01-07 18:41:04 [2025-01-07 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196795', 'tblTempUsageDetail_20' ) start [2025-01-07 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196795', 'tblTempUsageDetail_20' ) end [2025-01-07 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196795', 'tblTempVendorCDR_20' ) start [2025-01-07 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196795', 'tblTempVendorCDR_20' ) end [2025-01-07 18:41:19] Production.INFO: ProcessCDR(1,14196795,1,1,2) [2025-01-07 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196795', 'tblTempUsageDetail_20' ) start [2025-01-07 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196795', 'tblTempUsageDetail_20' ) end [2025-01-07 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:41:23] Production.INFO: ==6583== Releasing lock... [2025-01-07 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:41:23] Production.INFO: 53.25 MB #Memory Used# [2025-01-07 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:42:05 [end_date_ymd] => 2025-01-07 18:42:05 [RateCDR] => 1 ) [2025-01-07 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:42:05' and `end` < '2025-01-07 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:42:18] Production.INFO: count ==3301 [2025-01-07 18:42:20] Production.ERROR: pbx CDR StartTime 2025-01-07 15:42:05 - End Time 2025-01-07 18:42:05 [2025-01-07 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196800', 'tblTempUsageDetail_20' ) start [2025-01-07 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196800', 'tblTempUsageDetail_20' ) end [2025-01-07 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196800', 'tblTempVendorCDR_20' ) start [2025-01-07 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196800', 'tblTempVendorCDR_20' ) end [2025-01-07 18:42:20] Production.INFO: ProcessCDR(1,14196800,1,1,2) [2025-01-07 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196800', 'tblTempUsageDetail_20' ) start [2025-01-07 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196800', 'tblTempUsageDetail_20' ) end [2025-01-07 18:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:42:24] Production.INFO: ==6691== Releasing lock... [2025-01-07 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:42:24] Production.INFO: 53 MB #Memory Used# [2025-01-07 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:43:05 [end_date_ymd] => 2025-01-07 18:43:05 [RateCDR] => 1 ) [2025-01-07 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:43:05' and `end` < '2025-01-07 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:43:18] Production.INFO: count ==3282 [2025-01-07 18:43:19] Production.ERROR: pbx CDR StartTime 2025-01-07 15:43:05 - End Time 2025-01-07 18:43:05 [2025-01-07 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196805', 'tblTempUsageDetail_20' ) start [2025-01-07 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196805', 'tblTempUsageDetail_20' ) end [2025-01-07 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196805', 'tblTempVendorCDR_20' ) start [2025-01-07 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196805', 'tblTempVendorCDR_20' ) end [2025-01-07 18:43:20] Production.INFO: ProcessCDR(1,14196805,1,1,2) [2025-01-07 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196805', 'tblTempUsageDetail_20' ) start [2025-01-07 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196805', 'tblTempUsageDetail_20' ) end [2025-01-07 18:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:43:24] Production.INFO: ==6801== Releasing lock... [2025-01-07 18:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:43:24] Production.INFO: 53 MB #Memory Used# [2025-01-07 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:44:05 [end_date_ymd] => 2025-01-07 18:44:05 [RateCDR] => 1 ) [2025-01-07 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:44:05' and `end` < '2025-01-07 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:44:18] Production.INFO: count ==3268 [2025-01-07 18:44:19] Production.ERROR: pbx CDR StartTime 2025-01-07 15:44:05 - End Time 2025-01-07 18:44:05 [2025-01-07 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196810', 'tblTempUsageDetail_20' ) start [2025-01-07 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196810', 'tblTempUsageDetail_20' ) end [2025-01-07 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196810', 'tblTempVendorCDR_20' ) start [2025-01-07 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196810', 'tblTempVendorCDR_20' ) end [2025-01-07 18:44:19] Production.INFO: ProcessCDR(1,14196810,1,1,2) [2025-01-07 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196810', 'tblTempUsageDetail_20' ) start [2025-01-07 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196810', 'tblTempUsageDetail_20' ) end [2025-01-07 18:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:44:23] Production.INFO: ==6885== Releasing lock... [2025-01-07 18:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:44:23] Production.INFO: 52.5 MB #Memory Used# [2025-01-07 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:45:05 [end_date_ymd] => 2025-01-07 18:45:05 [RateCDR] => 1 ) [2025-01-07 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:45:05' and `end` < '2025-01-07 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:45:19] Production.INFO: count ==3246 [2025-01-07 18:45:20] Production.ERROR: pbx CDR StartTime 2025-01-07 15:45:05 - End Time 2025-01-07 18:45:05 [2025-01-07 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196815', 'tblTempUsageDetail_20' ) start [2025-01-07 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196815', 'tblTempUsageDetail_20' ) end [2025-01-07 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196815', 'tblTempVendorCDR_20' ) start [2025-01-07 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196815', 'tblTempVendorCDR_20' ) end [2025-01-07 18:45:20] Production.INFO: ProcessCDR(1,14196815,1,1,2) [2025-01-07 18:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196815', 'tblTempUsageDetail_20' ) start [2025-01-07 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196815', 'tblTempUsageDetail_20' ) end [2025-01-07 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:45:24] Production.INFO: ==6957== Releasing lock... [2025-01-07 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:45:24] Production.INFO: 52.25 MB #Memory Used# [2025-01-07 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:46:05 [end_date_ymd] => 2025-01-07 18:46:05 [RateCDR] => 1 ) [2025-01-07 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:46:05' and `end` < '2025-01-07 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:46:19] Production.INFO: count ==3240 [2025-01-07 18:46:20] Production.ERROR: pbx CDR StartTime 2025-01-07 15:46:05 - End Time 2025-01-07 18:46:05 [2025-01-07 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196820', 'tblTempUsageDetail_20' ) start [2025-01-07 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196820', 'tblTempUsageDetail_20' ) end [2025-01-07 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196820', 'tblTempVendorCDR_20' ) start [2025-01-07 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196820', 'tblTempVendorCDR_20' ) end [2025-01-07 18:46:20] Production.INFO: ProcessCDR(1,14196820,1,1,2) [2025-01-07 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196820', 'tblTempUsageDetail_20' ) start [2025-01-07 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196820', 'tblTempUsageDetail_20' ) end [2025-01-07 18:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:46:23] Production.INFO: ==7027== Releasing lock... [2025-01-07 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:46:23] Production.INFO: 52.25 MB #Memory Used# [2025-01-07 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:47:05 [end_date_ymd] => 2025-01-07 18:47:05 [RateCDR] => 1 ) [2025-01-07 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:47:05' and `end` < '2025-01-07 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:47:19] Production.INFO: count ==3208 [2025-01-07 18:47:20] Production.ERROR: pbx CDR StartTime 2025-01-07 15:47:05 - End Time 2025-01-07 18:47:05 [2025-01-07 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196825', 'tblTempUsageDetail_20' ) start [2025-01-07 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196825', 'tblTempUsageDetail_20' ) end [2025-01-07 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196825', 'tblTempVendorCDR_20' ) start [2025-01-07 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196825', 'tblTempVendorCDR_20' ) end [2025-01-07 18:47:20] Production.INFO: ProcessCDR(1,14196825,1,1,2) [2025-01-07 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196825', 'tblTempUsageDetail_20' ) start [2025-01-07 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196825', 'tblTempUsageDetail_20' ) end [2025-01-07 18:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:47:23] Production.INFO: ==7098== Releasing lock... [2025-01-07 18:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:47:23] Production.INFO: 52 MB #Memory Used# [2025-01-07 18:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:48:04 [end_date_ymd] => 2025-01-07 18:48:04 [RateCDR] => 1 ) [2025-01-07 18:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:48:04' and `end` < '2025-01-07 18:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:48:18] Production.INFO: count ==3194 [2025-01-07 18:48:19] Production.ERROR: pbx CDR StartTime 2025-01-07 15:48:04 - End Time 2025-01-07 18:48:04 [2025-01-07 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196830', 'tblTempUsageDetail_20' ) start [2025-01-07 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196830', 'tblTempUsageDetail_20' ) end [2025-01-07 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196830', 'tblTempVendorCDR_20' ) start [2025-01-07 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196830', 'tblTempVendorCDR_20' ) end [2025-01-07 18:48:19] Production.INFO: ProcessCDR(1,14196830,1,1,2) [2025-01-07 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196830', 'tblTempUsageDetail_20' ) start [2025-01-07 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196830', 'tblTempUsageDetail_20' ) end [2025-01-07 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:48:23] Production.INFO: ==7170== Releasing lock... [2025-01-07 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:48:23] Production.INFO: 52.25 MB #Memory Used# [2025-01-07 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:49:05 [end_date_ymd] => 2025-01-07 18:49:05 [RateCDR] => 1 ) [2025-01-07 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:49:05' and `end` < '2025-01-07 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:49:20] Production.INFO: count ==3158 [2025-01-07 18:49:22] Production.ERROR: pbx CDR StartTime 2025-01-07 15:49:05 - End Time 2025-01-07 18:49:05 [2025-01-07 18:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196835', 'tblTempUsageDetail_20' ) start [2025-01-07 18:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196835', 'tblTempUsageDetail_20' ) end [2025-01-07 18:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196835', 'tblTempVendorCDR_20' ) start [2025-01-07 18:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196835', 'tblTempVendorCDR_20' ) end [2025-01-07 18:49:22] Production.INFO: ProcessCDR(1,14196835,1,1,2) [2025-01-07 18:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196835', 'tblTempUsageDetail_20' ) start [2025-01-07 18:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196835', 'tblTempUsageDetail_20' ) end [2025-01-07 18:49:26] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:49:26] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:49:26] Production.INFO: ==7240== Releasing lock... [2025-01-07 18:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:49:26] Production.INFO: 51.5 MB #Memory Used# [2025-01-07 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:50:05 [end_date_ymd] => 2025-01-07 18:50:05 [RateCDR] => 1 ) [2025-01-07 18:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:50:05' and `end` < '2025-01-07 18:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:50:18] Production.INFO: count ==3143 [2025-01-07 18:50:19] Production.ERROR: pbx CDR StartTime 2025-01-07 15:50:05 - End Time 2025-01-07 18:50:05 [2025-01-07 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196841', 'tblTempUsageDetail_20' ) start [2025-01-07 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196841', 'tblTempUsageDetail_20' ) end [2025-01-07 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196841', 'tblTempVendorCDR_20' ) start [2025-01-07 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196841', 'tblTempVendorCDR_20' ) end [2025-01-07 18:50:19] Production.INFO: ProcessCDR(1,14196841,1,1,2) [2025-01-07 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196841', 'tblTempUsageDetail_20' ) start [2025-01-07 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196841', 'tblTempUsageDetail_20' ) end [2025-01-07 18:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:50:23] Production.INFO: ==7313== Releasing lock... [2025-01-07 18:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:50:23] Production.INFO: 51.5 MB #Memory Used# [2025-01-07 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:51:05 [end_date_ymd] => 2025-01-07 18:51:05 [RateCDR] => 1 ) [2025-01-07 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:51:05' and `end` < '2025-01-07 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:51:18] Production.INFO: count ==3090 [2025-01-07 18:51:19] Production.ERROR: pbx CDR StartTime 2025-01-07 15:51:05 - End Time 2025-01-07 18:51:05 [2025-01-07 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196846', 'tblTempUsageDetail_20' ) start [2025-01-07 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196846', 'tblTempUsageDetail_20' ) end [2025-01-07 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196846', 'tblTempVendorCDR_20' ) start [2025-01-07 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196846', 'tblTempVendorCDR_20' ) end [2025-01-07 18:51:19] Production.INFO: ProcessCDR(1,14196846,1,1,2) [2025-01-07 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196846', 'tblTempUsageDetail_20' ) start [2025-01-07 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196846', 'tblTempUsageDetail_20' ) end [2025-01-07 18:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:51:22] Production.INFO: ==7431== Releasing lock... [2025-01-07 18:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:51:22] Production.INFO: 52.25 MB #Memory Used# [2025-01-07 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:52:05 [end_date_ymd] => 2025-01-07 18:52:05 [RateCDR] => 1 ) [2025-01-07 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:52:05' and `end` < '2025-01-07 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:52:18] Production.INFO: count ==3063 [2025-01-07 18:52:19] Production.ERROR: pbx CDR StartTime 2025-01-07 15:52:05 - End Time 2025-01-07 18:52:05 [2025-01-07 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196851', 'tblTempUsageDetail_20' ) start [2025-01-07 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196851', 'tblTempUsageDetail_20' ) end [2025-01-07 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196851', 'tblTempVendorCDR_20' ) start [2025-01-07 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196851', 'tblTempVendorCDR_20' ) end [2025-01-07 18:52:19] Production.INFO: ProcessCDR(1,14196851,1,1,2) [2025-01-07 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196851', 'tblTempUsageDetail_20' ) start [2025-01-07 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196851', 'tblTempUsageDetail_20' ) end [2025-01-07 18:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:52:23] Production.INFO: ==7504== Releasing lock... [2025-01-07 18:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:52:23] Production.INFO: 50.75 MB #Memory Used# [2025-01-07 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:53:05 [end_date_ymd] => 2025-01-07 18:53:05 [RateCDR] => 1 ) [2025-01-07 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:53:05' and `end` < '2025-01-07 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:53:18] Production.INFO: count ==3057 [2025-01-07 18:53:19] Production.ERROR: pbx CDR StartTime 2025-01-07 15:53:05 - End Time 2025-01-07 18:53:05 [2025-01-07 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196856', 'tblTempUsageDetail_20' ) start [2025-01-07 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196856', 'tblTempUsageDetail_20' ) end [2025-01-07 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196856', 'tblTempVendorCDR_20' ) start [2025-01-07 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196856', 'tblTempVendorCDR_20' ) end [2025-01-07 18:53:19] Production.INFO: ProcessCDR(1,14196856,1,1,2) [2025-01-07 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196856', 'tblTempUsageDetail_20' ) start [2025-01-07 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196856', 'tblTempUsageDetail_20' ) end [2025-01-07 18:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:53:23] Production.INFO: ==7574== Releasing lock... [2025-01-07 18:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:53:23] Production.INFO: 50.75 MB #Memory Used# [2025-01-07 18:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:54:06 [end_date_ymd] => 2025-01-07 18:54:06 [RateCDR] => 1 ) [2025-01-07 18:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:54:06' and `end` < '2025-01-07 18:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:54:19] Production.INFO: count ==3055 [2025-01-07 18:54:20] Production.ERROR: pbx CDR StartTime 2025-01-07 15:54:06 - End Time 2025-01-07 18:54:06 [2025-01-07 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196861', 'tblTempUsageDetail_20' ) start [2025-01-07 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196861', 'tblTempUsageDetail_20' ) end [2025-01-07 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196861', 'tblTempVendorCDR_20' ) start [2025-01-07 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196861', 'tblTempVendorCDR_20' ) end [2025-01-07 18:54:20] Production.INFO: ProcessCDR(1,14196861,1,1,2) [2025-01-07 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196861', 'tblTempUsageDetail_20' ) start [2025-01-07 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196861', 'tblTempUsageDetail_20' ) end [2025-01-07 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:54:23] Production.INFO: ==7647== Releasing lock... [2025-01-07 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:54:23] Production.INFO: 50.75 MB #Memory Used# [2025-01-07 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:55:05 [end_date_ymd] => 2025-01-07 18:55:05 [RateCDR] => 1 ) [2025-01-07 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:55:05' and `end` < '2025-01-07 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:55:26] Production.INFO: count ==3040 [2025-01-07 18:55:27] Production.ERROR: pbx CDR StartTime 2025-01-07 15:55:05 - End Time 2025-01-07 18:55:05 [2025-01-07 18:55:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196866', 'tblTempUsageDetail_20' ) start [2025-01-07 18:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196866', 'tblTempUsageDetail_20' ) end [2025-01-07 18:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196866', 'tblTempVendorCDR_20' ) start [2025-01-07 18:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196866', 'tblTempVendorCDR_20' ) end [2025-01-07 18:55:27] Production.INFO: ProcessCDR(1,14196866,1,1,2) [2025-01-07 18:55:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:55:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:55:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:55:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196866', 'tblTempUsageDetail_20' ) start [2025-01-07 18:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196866', 'tblTempUsageDetail_20' ) end [2025-01-07 18:55:31] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:55:31] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:55:31] Production.INFO: ==7716== Releasing lock... [2025-01-07 18:55:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:55:31] Production.INFO: 50.75 MB #Memory Used# [2025-01-07 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:56:05 [end_date_ymd] => 2025-01-07 18:56:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 15:56:05' and `end` < '2025-01-07 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-01-07 18:56:19] Production.INFO: count ==3016 [2025-01-07 18:56:19] Production.ERROR: pbx CDR StartTime 2025-01-07 15:56:05 - End Time 2025-01-07 18:56:05 [2025-01-07 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196871', 'tblTempUsageDetail_20' ) start [2025-01-07 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196871', 'tblTempUsageDetail_20' ) end [2025-01-07 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196871', 'tblTempVendorCDR_20' ) start [2025-01-07 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196871', 'tblTempVendorCDR_20' ) end [2025-01-07 18:56:20] Production.INFO: ProcessCDR(1,14196871,1,1,2) [2025-01-07 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196871', 'tblTempUsageDetail_20' ) start [2025-01-07 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196871', 'tblTempUsageDetail_20' ) end [2025-01-07 18:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:56:23] Production.INFO: ==7787== Releasing lock... [2025-01-07 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:56:23] Production.INFO: 50.5 MB #Memory Used# [2025-01-07 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:57:05 [end_date_ymd] => 2025-01-07 18:57:05 [RateCDR] => 1 ) [2025-01-07 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:57:05' and `end` < '2025-01-07 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:57:18] Production.INFO: count ==3009 [2025-01-07 18:57:19] Production.ERROR: pbx CDR StartTime 2025-01-07 15:57:05 - End Time 2025-01-07 18:57:05 [2025-01-07 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196876', 'tblTempUsageDetail_20' ) start [2025-01-07 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196876', 'tblTempUsageDetail_20' ) end [2025-01-07 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196876', 'tblTempVendorCDR_20' ) start [2025-01-07 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196876', 'tblTempVendorCDR_20' ) end [2025-01-07 18:57:19] Production.INFO: ProcessCDR(1,14196876,1,1,2) [2025-01-07 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196876', 'tblTempUsageDetail_20' ) start [2025-01-07 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196876', 'tblTempUsageDetail_20' ) end [2025-01-07 18:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:57:23] Production.INFO: ==7857== Releasing lock... [2025-01-07 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:57:23] Production.INFO: 50.5 MB #Memory Used# [2025-01-07 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:58:05 [end_date_ymd] => 2025-01-07 18:58:05 [RateCDR] => 1 ) [2025-01-07 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:58:05' and `end` < '2025-01-07 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:58:18] Production.INFO: count ==3002 [2025-01-07 18:58:19] Production.ERROR: pbx CDR StartTime 2025-01-07 15:58:05 - End Time 2025-01-07 18:58:05 [2025-01-07 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196880', 'tblTempUsageDetail_20' ) start [2025-01-07 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196880', 'tblTempUsageDetail_20' ) end [2025-01-07 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196880', 'tblTempVendorCDR_20' ) start [2025-01-07 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196880', 'tblTempVendorCDR_20' ) end [2025-01-07 18:58:19] Production.INFO: ProcessCDR(1,14196880,1,1,2) [2025-01-07 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196880', 'tblTempUsageDetail_20' ) start [2025-01-07 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196880', 'tblTempUsageDetail_20' ) end [2025-01-07 18:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:58:22] Production.INFO: ==7928== Releasing lock... [2025-01-07 18:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:58:22] Production.INFO: 50.5 MB #Memory Used# [2025-01-07 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 15:59:05 [end_date_ymd] => 2025-01-07 18:59:05 [RateCDR] => 1 ) [2025-01-07 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 15:59:05' and `end` < '2025-01-07 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 18:59:19] Production.INFO: count ==2974 [2025-01-07 18:59:19] Production.ERROR: pbx CDR StartTime 2025-01-07 15:59:05 - End Time 2025-01-07 18:59:05 [2025-01-07 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196886', 'tblTempUsageDetail_20' ) start [2025-01-07 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196886', 'tblTempUsageDetail_20' ) end [2025-01-07 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196886', 'tblTempVendorCDR_20' ) start [2025-01-07 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196886', 'tblTempVendorCDR_20' ) end [2025-01-07 18:59:19] Production.INFO: ProcessCDR(1,14196886,1,1,2) [2025-01-07 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196886', 'tblTempUsageDetail_20' ) start [2025-01-07 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196886', 'tblTempUsageDetail_20' ) end [2025-01-07 18:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 18:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 18:59:23] Production.INFO: ==8001== Releasing lock... [2025-01-07 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 18:59:23] Production.INFO: 50 MB #Memory Used# [2025-01-07 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:00:05 [end_date_ymd] => 2025-01-07 19:00:05 [RateCDR] => 1 ) [2025-01-07 19:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:00:05' and `end` < '2025-01-07 19:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:00:19] Production.INFO: count ==2962 [2025-01-07 19:00:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:00:05 - End Time 2025-01-07 19:00:05 [2025-01-07 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196892', 'tblTempUsageDetail_20' ) start [2025-01-07 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196892', 'tblTempUsageDetail_20' ) end [2025-01-07 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196892', 'tblTempVendorCDR_20' ) start [2025-01-07 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196892', 'tblTempVendorCDR_20' ) end [2025-01-07 19:00:20] Production.INFO: ProcessCDR(1,14196892,1,1,2) [2025-01-07 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196892', 'tblTempUsageDetail_20' ) start [2025-01-07 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196892', 'tblTempUsageDetail_20' ) end [2025-01-07 19:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:00:23] Production.INFO: ==8073== Releasing lock... [2025-01-07 19:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:00:23] Production.INFO: 50.25 MB #Memory Used# [2025-01-07 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:01:05 [end_date_ymd] => 2025-01-07 19:01:05 [RateCDR] => 1 ) [2025-01-07 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:01:05' and `end` < '2025-01-07 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:01:18] Production.INFO: count ==2876 [2025-01-07 19:01:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:01:05 - End Time 2025-01-07 19:01:05 [2025-01-07 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196897', 'tblTempUsageDetail_20' ) start [2025-01-07 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196897', 'tblTempUsageDetail_20' ) end [2025-01-07 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196897', 'tblTempVendorCDR_20' ) start [2025-01-07 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196897', 'tblTempVendorCDR_20' ) end [2025-01-07 19:01:19] Production.INFO: ProcessCDR(1,14196897,1,1,2) [2025-01-07 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196897', 'tblTempUsageDetail_20' ) start [2025-01-07 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196897', 'tblTempUsageDetail_20' ) end [2025-01-07 19:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:01:24] Production.INFO: ==8237== Releasing lock... [2025-01-07 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:01:24] Production.INFO: 49.75 MB #Memory Used# [2025-01-07 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:02:05 [end_date_ymd] => 2025-01-07 19:02:05 [RateCDR] => 1 ) [2025-01-07 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:02:05' and `end` < '2025-01-07 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:02:18] Production.INFO: count ==2846 [2025-01-07 19:02:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:02:05 - End Time 2025-01-07 19:02:05 [2025-01-07 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196902', 'tblTempUsageDetail_20' ) start [2025-01-07 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196902', 'tblTempUsageDetail_20' ) end [2025-01-07 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196902', 'tblTempVendorCDR_20' ) start [2025-01-07 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196902', 'tblTempVendorCDR_20' ) end [2025-01-07 19:02:19] Production.INFO: ProcessCDR(1,14196902,1,1,2) [2025-01-07 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196902', 'tblTempUsageDetail_20' ) start [2025-01-07 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196902', 'tblTempUsageDetail_20' ) end [2025-01-07 19:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:02:22] Production.INFO: ==8306== Releasing lock... [2025-01-07 19:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:02:22] Production.INFO: 49.5 MB #Memory Used# [2025-01-07 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:03:05 [end_date_ymd] => 2025-01-07 19:03:05 [RateCDR] => 1 ) [2025-01-07 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:03:05' and `end` < '2025-01-07 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:03:19] Production.INFO: count ==2824 [2025-01-07 19:03:20] Production.ERROR: pbx CDR StartTime 2025-01-07 16:03:05 - End Time 2025-01-07 19:03:05 [2025-01-07 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196907', 'tblTempUsageDetail_20' ) start [2025-01-07 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196907', 'tblTempUsageDetail_20' ) end [2025-01-07 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196907', 'tblTempVendorCDR_20' ) start [2025-01-07 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196907', 'tblTempVendorCDR_20' ) end [2025-01-07 19:03:20] Production.INFO: ProcessCDR(1,14196907,1,1,2) [2025-01-07 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196907', 'tblTempUsageDetail_20' ) start [2025-01-07 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196907', 'tblTempUsageDetail_20' ) end [2025-01-07 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:03:23] Production.INFO: ==8376== Releasing lock... [2025-01-07 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:03:23] Production.INFO: 49.25 MB #Memory Used# [2025-01-07 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:04:05 [end_date_ymd] => 2025-01-07 19:04:05 [RateCDR] => 1 ) [2025-01-07 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:04:05' and `end` < '2025-01-07 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:04:19] Production.INFO: count ==2805 [2025-01-07 19:04:20] Production.ERROR: pbx CDR StartTime 2025-01-07 16:04:05 - End Time 2025-01-07 19:04:05 [2025-01-07 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196912', 'tblTempUsageDetail_20' ) start [2025-01-07 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196912', 'tblTempUsageDetail_20' ) end [2025-01-07 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196912', 'tblTempVendorCDR_20' ) start [2025-01-07 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196912', 'tblTempVendorCDR_20' ) end [2025-01-07 19:04:20] Production.INFO: ProcessCDR(1,14196912,1,1,2) [2025-01-07 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196912', 'tblTempUsageDetail_20' ) start [2025-01-07 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196912', 'tblTempUsageDetail_20' ) end [2025-01-07 19:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:04:23] Production.INFO: ==8454== Releasing lock... [2025-01-07 19:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:04:23] Production.INFO: 49.5 MB #Memory Used# [2025-01-07 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:05:05 [end_date_ymd] => 2025-01-07 19:05:05 [RateCDR] => 1 ) [2025-01-07 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:05:05' and `end` < '2025-01-07 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:05:19] Production.INFO: count ==2801 [2025-01-07 19:05:20] Production.ERROR: pbx CDR StartTime 2025-01-07 16:05:05 - End Time 2025-01-07 19:05:05 [2025-01-07 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196917', 'tblTempUsageDetail_20' ) start [2025-01-07 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196917', 'tblTempUsageDetail_20' ) end [2025-01-07 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196917', 'tblTempVendorCDR_20' ) start [2025-01-07 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196917', 'tblTempVendorCDR_20' ) end [2025-01-07 19:05:20] Production.INFO: ProcessCDR(1,14196917,1,1,2) [2025-01-07 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196917', 'tblTempUsageDetail_20' ) start [2025-01-07 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196917', 'tblTempUsageDetail_20' ) end [2025-01-07 19:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:05:24] Production.INFO: ==8607== Releasing lock... [2025-01-07 19:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:05:24] Production.INFO: 49 MB #Memory Used# [2025-01-07 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:06:05 [end_date_ymd] => 2025-01-07 19:06:05 [RateCDR] => 1 ) [2025-01-07 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:06:05' and `end` < '2025-01-07 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:06:19] Production.INFO: count ==2790 [2025-01-07 19:06:20] Production.ERROR: pbx CDR StartTime 2025-01-07 16:06:05 - End Time 2025-01-07 19:06:05 [2025-01-07 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196922', 'tblTempUsageDetail_20' ) start [2025-01-07 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196922', 'tblTempUsageDetail_20' ) end [2025-01-07 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196922', 'tblTempVendorCDR_20' ) start [2025-01-07 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196922', 'tblTempVendorCDR_20' ) end [2025-01-07 19:06:20] Production.INFO: ProcessCDR(1,14196922,1,1,2) [2025-01-07 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196922', 'tblTempUsageDetail_20' ) start [2025-01-07 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196922', 'tblTempUsageDetail_20' ) end [2025-01-07 19:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:06:23] Production.INFO: ==8677== Releasing lock... [2025-01-07 19:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:06:23] Production.INFO: 49 MB #Memory Used# [2025-01-07 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:07:05 [end_date_ymd] => 2025-01-07 19:07:05 [RateCDR] => 1 ) [2025-01-07 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:07:05' and `end` < '2025-01-07 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:07:19] Production.INFO: count ==2782 [2025-01-07 19:07:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:07:05 - End Time 2025-01-07 19:07:05 [2025-01-07 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196927', 'tblTempUsageDetail_20' ) start [2025-01-07 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196927', 'tblTempUsageDetail_20' ) end [2025-01-07 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196927', 'tblTempVendorCDR_20' ) start [2025-01-07 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196927', 'tblTempVendorCDR_20' ) end [2025-01-07 19:07:19] Production.INFO: ProcessCDR(1,14196927,1,1,2) [2025-01-07 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196927', 'tblTempUsageDetail_20' ) start [2025-01-07 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196927', 'tblTempUsageDetail_20' ) end [2025-01-07 19:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:07:23] Production.INFO: ==8789== Releasing lock... [2025-01-07 19:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:07:23] Production.INFO: 49 MB #Memory Used# [2025-01-07 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:08:05 [end_date_ymd] => 2025-01-07 19:08:05 [RateCDR] => 1 ) [2025-01-07 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:08:05' and `end` < '2025-01-07 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:08:18] Production.INFO: count ==2769 [2025-01-07 19:08:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:08:05 - End Time 2025-01-07 19:08:05 [2025-01-07 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196932', 'tblTempUsageDetail_20' ) start [2025-01-07 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196932', 'tblTempUsageDetail_20' ) end [2025-01-07 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196932', 'tblTempVendorCDR_20' ) start [2025-01-07 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196932', 'tblTempVendorCDR_20' ) end [2025-01-07 19:08:19] Production.INFO: ProcessCDR(1,14196932,1,1,2) [2025-01-07 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196932', 'tblTempUsageDetail_20' ) start [2025-01-07 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196932', 'tblTempUsageDetail_20' ) end [2025-01-07 19:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:08:23] Production.INFO: ==8937== Releasing lock... [2025-01-07 19:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:08:23] Production.INFO: 49.75 MB #Memory Used# [2025-01-07 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:09:05 [end_date_ymd] => 2025-01-07 19:09:05 [RateCDR] => 1 ) [2025-01-07 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:09:05' and `end` < '2025-01-07 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:09:18] Production.INFO: count ==2759 [2025-01-07 19:09:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:09:05 - End Time 2025-01-07 19:09:05 [2025-01-07 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196937', 'tblTempUsageDetail_20' ) start [2025-01-07 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196937', 'tblTempUsageDetail_20' ) end [2025-01-07 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196937', 'tblTempVendorCDR_20' ) start [2025-01-07 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196937', 'tblTempVendorCDR_20' ) end [2025-01-07 19:09:19] Production.INFO: ProcessCDR(1,14196937,1,1,2) [2025-01-07 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196937', 'tblTempUsageDetail_20' ) start [2025-01-07 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196937', 'tblTempUsageDetail_20' ) end [2025-01-07 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:09:23] Production.INFO: ==9259== Releasing lock... [2025-01-07 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:09:23] Production.INFO: 48.75 MB #Memory Used# [2025-01-07 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:10:05 [end_date_ymd] => 2025-01-07 19:10:05 [RateCDR] => 1 ) [2025-01-07 19:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:10:05' and `end` < '2025-01-07 19:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:10:19] Production.INFO: count ==2748 [2025-01-07 19:10:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:10:05 - End Time 2025-01-07 19:10:05 [2025-01-07 19:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196943', 'tblTempUsageDetail_20' ) start [2025-01-07 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196943', 'tblTempUsageDetail_20' ) end [2025-01-07 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196943', 'tblTempVendorCDR_20' ) start [2025-01-07 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196943', 'tblTempVendorCDR_20' ) end [2025-01-07 19:10:19] Production.INFO: ProcessCDR(1,14196943,1,1,2) [2025-01-07 19:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196943', 'tblTempUsageDetail_20' ) start [2025-01-07 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196943', 'tblTempUsageDetail_20' ) end [2025-01-07 19:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:10:23] Production.INFO: ==9333== Releasing lock... [2025-01-07 19:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:10:23] Production.INFO: 48.75 MB #Memory Used# [2025-01-07 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:11:05 [end_date_ymd] => 2025-01-07 19:11:05 [RateCDR] => 1 ) [2025-01-07 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:11:05' and `end` < '2025-01-07 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:11:18] Production.INFO: count ==2687 [2025-01-07 19:11:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:11:05 - End Time 2025-01-07 19:11:05 [2025-01-07 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196948', 'tblTempUsageDetail_20' ) start [2025-01-07 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196948', 'tblTempUsageDetail_20' ) end [2025-01-07 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196948', 'tblTempVendorCDR_20' ) start [2025-01-07 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196948', 'tblTempVendorCDR_20' ) end [2025-01-07 19:11:19] Production.INFO: ProcessCDR(1,14196948,1,1,2) [2025-01-07 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196948', 'tblTempUsageDetail_20' ) start [2025-01-07 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196948', 'tblTempUsageDetail_20' ) end [2025-01-07 19:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:11:22] Production.INFO: ==9404== Releasing lock... [2025-01-07 19:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:11:22] Production.INFO: 48.25 MB #Memory Used# [2025-01-07 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:12:05 [end_date_ymd] => 2025-01-07 19:12:05 [RateCDR] => 1 ) [2025-01-07 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:12:05' and `end` < '2025-01-07 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:12:19] Production.INFO: count ==2680 [2025-01-07 19:12:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:12:05 - End Time 2025-01-07 19:12:05 [2025-01-07 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196953', 'tblTempUsageDetail_20' ) start [2025-01-07 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196953', 'tblTempUsageDetail_20' ) end [2025-01-07 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196953', 'tblTempVendorCDR_20' ) start [2025-01-07 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196953', 'tblTempVendorCDR_20' ) end [2025-01-07 19:12:19] Production.INFO: ProcessCDR(1,14196953,1,1,2) [2025-01-07 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196953', 'tblTempUsageDetail_20' ) start [2025-01-07 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196953', 'tblTempUsageDetail_20' ) end [2025-01-07 19:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:12:22] Production.INFO: ==9554== Releasing lock... [2025-01-07 19:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:12:22] Production.INFO: 48.5 MB #Memory Used# [2025-01-07 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:13:05 [end_date_ymd] => 2025-01-07 19:13:05 [RateCDR] => 1 ) [2025-01-07 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:13:05' and `end` < '2025-01-07 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:13:18] Production.INFO: count ==2675 [2025-01-07 19:13:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:13:05 - End Time 2025-01-07 19:13:05 [2025-01-07 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196958', 'tblTempUsageDetail_20' ) start [2025-01-07 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196958', 'tblTempUsageDetail_20' ) end [2025-01-07 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196958', 'tblTempVendorCDR_20' ) start [2025-01-07 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196958', 'tblTempVendorCDR_20' ) end [2025-01-07 19:13:19] Production.INFO: ProcessCDR(1,14196958,1,1,2) [2025-01-07 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196958', 'tblTempUsageDetail_20' ) start [2025-01-07 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196958', 'tblTempUsageDetail_20' ) end [2025-01-07 19:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:13:22] Production.INFO: ==9626== Releasing lock... [2025-01-07 19:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:13:22] Production.INFO: 48.25 MB #Memory Used# [2025-01-07 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:14:05 [end_date_ymd] => 2025-01-07 19:14:05 [RateCDR] => 1 ) [2025-01-07 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:14:05' and `end` < '2025-01-07 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:14:19] Production.INFO: count ==2668 [2025-01-07 19:14:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:14:05 - End Time 2025-01-07 19:14:05 [2025-01-07 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196963', 'tblTempUsageDetail_20' ) start [2025-01-07 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196963', 'tblTempUsageDetail_20' ) end [2025-01-07 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196963', 'tblTempVendorCDR_20' ) start [2025-01-07 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196963', 'tblTempVendorCDR_20' ) end [2025-01-07 19:14:19] Production.INFO: ProcessCDR(1,14196963,1,1,2) [2025-01-07 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196963', 'tblTempUsageDetail_20' ) start [2025-01-07 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196963', 'tblTempUsageDetail_20' ) end [2025-01-07 19:14:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:14:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:14:25] Production.INFO: ==9696== Releasing lock... [2025-01-07 19:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:14:25] Production.INFO: 48 MB #Memory Used# [2025-01-07 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:15:05 [end_date_ymd] => 2025-01-07 19:15:05 [RateCDR] => 1 ) [2025-01-07 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:15:05' and `end` < '2025-01-07 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:15:19] Production.INFO: count ==2649 [2025-01-07 19:15:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:15:05 - End Time 2025-01-07 19:15:05 [2025-01-07 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196968', 'tblTempUsageDetail_20' ) start [2025-01-07 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196968', 'tblTempUsageDetail_20' ) end [2025-01-07 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196968', 'tblTempVendorCDR_20' ) start [2025-01-07 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196968', 'tblTempVendorCDR_20' ) end [2025-01-07 19:15:20] Production.INFO: ProcessCDR(1,14196968,1,1,2) [2025-01-07 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196968', 'tblTempUsageDetail_20' ) start [2025-01-07 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196968', 'tblTempUsageDetail_20' ) end [2025-01-07 19:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:15:23] Production.INFO: ==9845== Releasing lock... [2025-01-07 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:15:23] Production.INFO: 48 MB #Memory Used# [2025-01-07 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:16:05 [end_date_ymd] => 2025-01-07 19:16:05 [RateCDR] => 1 ) [2025-01-07 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:16:05' and `end` < '2025-01-07 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:16:18] Production.INFO: count ==2634 [2025-01-07 19:16:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:16:05 - End Time 2025-01-07 19:16:05 [2025-01-07 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196973', 'tblTempUsageDetail_20' ) start [2025-01-07 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196973', 'tblTempUsageDetail_20' ) end [2025-01-07 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196973', 'tblTempVendorCDR_20' ) start [2025-01-07 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196973', 'tblTempVendorCDR_20' ) end [2025-01-07 19:16:19] Production.INFO: ProcessCDR(1,14196973,1,1,2) [2025-01-07 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196973', 'tblTempUsageDetail_20' ) start [2025-01-07 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196973', 'tblTempUsageDetail_20' ) end [2025-01-07 19:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:16:23] Production.INFO: ==9914== Releasing lock... [2025-01-07 19:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:16:23] Production.INFO: 47.75 MB #Memory Used# [2025-01-07 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:17:05 [end_date_ymd] => 2025-01-07 19:17:05 [RateCDR] => 1 ) [2025-01-07 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:17:05' and `end` < '2025-01-07 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:17:21] Production.INFO: count ==2616 [2025-01-07 19:17:21] Production.ERROR: pbx CDR StartTime 2025-01-07 16:17:05 - End Time 2025-01-07 19:17:05 [2025-01-07 19:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196978', 'tblTempUsageDetail_20' ) start [2025-01-07 19:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196978', 'tblTempUsageDetail_20' ) end [2025-01-07 19:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196978', 'tblTempVendorCDR_20' ) start [2025-01-07 19:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196978', 'tblTempVendorCDR_20' ) end [2025-01-07 19:17:22] Production.INFO: ProcessCDR(1,14196978,1,1,2) [2025-01-07 19:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196978', 'tblTempUsageDetail_20' ) start [2025-01-07 19:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196978', 'tblTempUsageDetail_20' ) end [2025-01-07 19:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:17:25] Production.INFO: ==9987== Releasing lock... [2025-01-07 19:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:17:25] Production.INFO: 47.75 MB #Memory Used# [2025-01-07 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:18:05 [end_date_ymd] => 2025-01-07 19:18:05 [RateCDR] => 1 ) [2025-01-07 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:18:05' and `end` < '2025-01-07 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:18:18] Production.INFO: count ==2608 [2025-01-07 19:18:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:18:05 - End Time 2025-01-07 19:18:05 [2025-01-07 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196983', 'tblTempUsageDetail_20' ) start [2025-01-07 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196983', 'tblTempUsageDetail_20' ) end [2025-01-07 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196983', 'tblTempVendorCDR_20' ) start [2025-01-07 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196983', 'tblTempVendorCDR_20' ) end [2025-01-07 19:18:19] Production.INFO: ProcessCDR(1,14196983,1,1,2) [2025-01-07 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196983', 'tblTempUsageDetail_20' ) start [2025-01-07 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196983', 'tblTempUsageDetail_20' ) end [2025-01-07 19:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:18:22] Production.INFO: ==10063== Releasing lock... [2025-01-07 19:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:18:22] Production.INFO: 47.75 MB #Memory Used# [2025-01-07 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:19:05 [end_date_ymd] => 2025-01-07 19:19:05 [RateCDR] => 1 ) [2025-01-07 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:19:05' and `end` < '2025-01-07 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:19:18] Production.INFO: count ==2582 [2025-01-07 19:19:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:19:05 - End Time 2025-01-07 19:19:05 [2025-01-07 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196988', 'tblTempUsageDetail_20' ) start [2025-01-07 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196988', 'tblTempUsageDetail_20' ) end [2025-01-07 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196988', 'tblTempVendorCDR_20' ) start [2025-01-07 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196988', 'tblTempVendorCDR_20' ) end [2025-01-07 19:19:19] Production.INFO: ProcessCDR(1,14196988,1,1,2) [2025-01-07 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196988', 'tblTempUsageDetail_20' ) start [2025-01-07 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196988', 'tblTempUsageDetail_20' ) end [2025-01-07 19:19:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:19:24] Production.INFO: ==10133== Releasing lock... [2025-01-07 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:19:24] Production.INFO: 47.75 MB #Memory Used# [2025-01-07 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:20:06 [end_date_ymd] => 2025-01-07 19:20:06 [RateCDR] => 1 ) [2025-01-07 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:20:06' and `end` < '2025-01-07 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:20:19] Production.INFO: count ==2568 [2025-01-07 19:20:20] Production.ERROR: pbx CDR StartTime 2025-01-07 16:20:06 - End Time 2025-01-07 19:20:06 [2025-01-07 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196994', 'tblTempUsageDetail_20' ) start [2025-01-07 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196994', 'tblTempUsageDetail_20' ) end [2025-01-07 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196994', 'tblTempVendorCDR_20' ) start [2025-01-07 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196994', 'tblTempVendorCDR_20' ) end [2025-01-07 19:20:20] Production.INFO: ProcessCDR(1,14196994,1,1,2) [2025-01-07 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196994', 'tblTempUsageDetail_20' ) start [2025-01-07 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196994', 'tblTempUsageDetail_20' ) end [2025-01-07 19:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:20:24] Production.INFO: ==10206== Releasing lock... [2025-01-07 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:20:24] Production.INFO: 47.25 MB #Memory Used# [2025-01-07 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:21:05 [end_date_ymd] => 2025-01-07 19:21:05 [RateCDR] => 1 ) [2025-01-07 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:21:05' and `end` < '2025-01-07 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:21:18] Production.INFO: count ==2518 [2025-01-07 19:21:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:21:05 - End Time 2025-01-07 19:21:05 [2025-01-07 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196999', 'tblTempUsageDetail_20' ) start [2025-01-07 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14196999', 'tblTempUsageDetail_20' ) end [2025-01-07 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196999', 'tblTempVendorCDR_20' ) start [2025-01-07 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14196999', 'tblTempVendorCDR_20' ) end [2025-01-07 19:21:19] Production.INFO: ProcessCDR(1,14196999,1,1,2) [2025-01-07 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14196999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14196999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14196999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14196999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196999', 'tblTempUsageDetail_20' ) start [2025-01-07 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14196999', 'tblTempUsageDetail_20' ) end [2025-01-07 19:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:21:24] Production.INFO: ==10286== Releasing lock... [2025-01-07 19:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:21:24] Production.INFO: 47.25 MB #Memory Used# [2025-01-07 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:22:05 [end_date_ymd] => 2025-01-07 19:22:05 [RateCDR] => 1 ) [2025-01-07 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:22:05' and `end` < '2025-01-07 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:22:18] Production.INFO: count ==2513 [2025-01-07 19:22:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:22:05 - End Time 2025-01-07 19:22:05 [2025-01-07 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197004', 'tblTempUsageDetail_20' ) start [2025-01-07 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197004', 'tblTempUsageDetail_20' ) end [2025-01-07 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197004', 'tblTempVendorCDR_20' ) start [2025-01-07 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197004', 'tblTempVendorCDR_20' ) end [2025-01-07 19:22:19] Production.INFO: ProcessCDR(1,14197004,1,1,2) [2025-01-07 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197004', 'tblTempUsageDetail_20' ) start [2025-01-07 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197004', 'tblTempUsageDetail_20' ) end [2025-01-07 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:22:23] Production.INFO: ==10396== Releasing lock... [2025-01-07 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:22:23] Production.INFO: 47 MB #Memory Used# [2025-01-07 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:23:05 [end_date_ymd] => 2025-01-07 19:23:05 [RateCDR] => 1 ) [2025-01-07 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:23:05' and `end` < '2025-01-07 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:23:18] Production.INFO: count ==2499 [2025-01-07 19:23:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:23:05 - End Time 2025-01-07 19:23:05 [2025-01-07 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197009', 'tblTempUsageDetail_20' ) start [2025-01-07 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197009', 'tblTempUsageDetail_20' ) end [2025-01-07 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197009', 'tblTempVendorCDR_20' ) start [2025-01-07 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197009', 'tblTempVendorCDR_20' ) end [2025-01-07 19:23:19] Production.INFO: ProcessCDR(1,14197009,1,1,2) [2025-01-07 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197009', 'tblTempUsageDetail_20' ) start [2025-01-07 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197009', 'tblTempUsageDetail_20' ) end [2025-01-07 19:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:23:24] Production.INFO: ==10466== Releasing lock... [2025-01-07 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:23:24] Production.INFO: 46.75 MB #Memory Used# [2025-01-07 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:24:06 [end_date_ymd] => 2025-01-07 19:24:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 16:24:06' and `end` < '2025-01-07 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-01-07 19:24:20] Production.INFO: count ==2491 [2025-01-07 19:24:21] Production.ERROR: pbx CDR StartTime 2025-01-07 16:24:06 - End Time 2025-01-07 19:24:06 [2025-01-07 19:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197014', 'tblTempUsageDetail_20' ) start [2025-01-07 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197014', 'tblTempUsageDetail_20' ) end [2025-01-07 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197014', 'tblTempVendorCDR_20' ) start [2025-01-07 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197014', 'tblTempVendorCDR_20' ) end [2025-01-07 19:24:21] Production.INFO: ProcessCDR(1,14197014,1,1,2) [2025-01-07 19:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197014', 'tblTempUsageDetail_20' ) start [2025-01-07 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197014', 'tblTempUsageDetail_20' ) end [2025-01-07 19:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:24:25] Production.INFO: ==10538== Releasing lock... [2025-01-07 19:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:24:25] Production.INFO: 46.75 MB #Memory Used# [2025-01-07 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:25:05 [end_date_ymd] => 2025-01-07 19:25:05 [RateCDR] => 1 ) [2025-01-07 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:25:05' and `end` < '2025-01-07 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:25:18] Production.INFO: count ==2488 [2025-01-07 19:25:18] Production.ERROR: pbx CDR StartTime 2025-01-07 16:25:05 - End Time 2025-01-07 19:25:05 [2025-01-07 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197019', 'tblTempUsageDetail_20' ) start [2025-01-07 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197019', 'tblTempUsageDetail_20' ) end [2025-01-07 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197019', 'tblTempVendorCDR_20' ) start [2025-01-07 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197019', 'tblTempVendorCDR_20' ) end [2025-01-07 19:25:19] Production.INFO: ProcessCDR(1,14197019,1,1,2) [2025-01-07 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197019', 'tblTempUsageDetail_20' ) start [2025-01-07 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197019', 'tblTempUsageDetail_20' ) end [2025-01-07 19:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:25:22] Production.INFO: ==10607== Releasing lock... [2025-01-07 19:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:25:22] Production.INFO: 46.75 MB #Memory Used# [2025-01-07 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:26:05 [end_date_ymd] => 2025-01-07 19:26:05 [RateCDR] => 1 ) [2025-01-07 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:26:05' and `end` < '2025-01-07 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:26:20] Production.INFO: count ==2472 [2025-01-07 19:26:20] Production.ERROR: pbx CDR StartTime 2025-01-07 16:26:05 - End Time 2025-01-07 19:26:05 [2025-01-07 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197024', 'tblTempUsageDetail_20' ) start [2025-01-07 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197024', 'tblTempUsageDetail_20' ) end [2025-01-07 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197024', 'tblTempVendorCDR_20' ) start [2025-01-07 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197024', 'tblTempVendorCDR_20' ) end [2025-01-07 19:26:21] Production.INFO: ProcessCDR(1,14197024,1,1,2) [2025-01-07 19:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197024', 'tblTempUsageDetail_20' ) start [2025-01-07 19:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197024', 'tblTempUsageDetail_20' ) end [2025-01-07 19:26:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:26:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:26:25] Production.INFO: ==10678== Releasing lock... [2025-01-07 19:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:26:25] Production.INFO: 46.5 MB #Memory Used# [2025-01-07 19:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:27:04 [end_date_ymd] => 2025-01-07 19:27:04 [RateCDR] => 1 ) [2025-01-07 19:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:27:04' and `end` < '2025-01-07 19:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:27:17] Production.INFO: count ==2451 [2025-01-07 19:27:18] Production.ERROR: pbx CDR StartTime 2025-01-07 16:27:04 - End Time 2025-01-07 19:27:04 [2025-01-07 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197029', 'tblTempUsageDetail_20' ) start [2025-01-07 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197029', 'tblTempUsageDetail_20' ) end [2025-01-07 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197029', 'tblTempVendorCDR_20' ) start [2025-01-07 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197029', 'tblTempVendorCDR_20' ) end [2025-01-07 19:27:18] Production.INFO: ProcessCDR(1,14197029,1,1,2) [2025-01-07 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197029', 'tblTempUsageDetail_20' ) start [2025-01-07 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197029', 'tblTempUsageDetail_20' ) end [2025-01-07 19:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:27:23] Production.INFO: ==10747== Releasing lock... [2025-01-07 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:27:23] Production.INFO: 46.5 MB #Memory Used# [2025-01-07 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:28:05 [end_date_ymd] => 2025-01-07 19:28:05 [RateCDR] => 1 ) [2025-01-07 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:28:05' and `end` < '2025-01-07 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:28:18] Production.INFO: count ==2432 [2025-01-07 19:28:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:28:05 - End Time 2025-01-07 19:28:05 [2025-01-07 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197034', 'tblTempUsageDetail_20' ) start [2025-01-07 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197034', 'tblTempUsageDetail_20' ) end [2025-01-07 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197034', 'tblTempVendorCDR_20' ) start [2025-01-07 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197034', 'tblTempVendorCDR_20' ) end [2025-01-07 19:28:19] Production.INFO: ProcessCDR(1,14197034,1,1,2) [2025-01-07 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197034', 'tblTempUsageDetail_20' ) start [2025-01-07 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197034', 'tblTempUsageDetail_20' ) end [2025-01-07 19:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:28:22] Production.INFO: ==10818== Releasing lock... [2025-01-07 19:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:28:22] Production.INFO: 46.25 MB #Memory Used# [2025-01-07 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:29:05 [end_date_ymd] => 2025-01-07 19:29:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 16:29:05' and `end` < '2025-01-07 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-01-07 19:29:18] Production.INFO: count ==2404 [2025-01-07 19:29:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:29:05 - End Time 2025-01-07 19:29:05 [2025-01-07 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197039', 'tblTempUsageDetail_20' ) start [2025-01-07 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197039', 'tblTempUsageDetail_20' ) end [2025-01-07 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197039', 'tblTempVendorCDR_20' ) start [2025-01-07 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197039', 'tblTempVendorCDR_20' ) end [2025-01-07 19:29:19] Production.INFO: ProcessCDR(1,14197039,1,1,2) [2025-01-07 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197039', 'tblTempUsageDetail_20' ) start [2025-01-07 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197039', 'tblTempUsageDetail_20' ) end [2025-01-07 19:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:29:24] Production.INFO: ==10891== Releasing lock... [2025-01-07 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:29:24] Production.INFO: 46.25 MB #Memory Used# [2025-01-07 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:30:06 [end_date_ymd] => 2025-01-07 19:30:06 [RateCDR] => 1 ) [2025-01-07 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:30:06' and `end` < '2025-01-07 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:30:19] Production.INFO: count ==2393 [2025-01-07 19:30:20] Production.ERROR: pbx CDR StartTime 2025-01-07 16:30:06 - End Time 2025-01-07 19:30:06 [2025-01-07 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197045', 'tblTempUsageDetail_20' ) start [2025-01-07 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197045', 'tblTempUsageDetail_20' ) end [2025-01-07 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197045', 'tblTempVendorCDR_20' ) start [2025-01-07 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197045', 'tblTempVendorCDR_20' ) end [2025-01-07 19:30:20] Production.INFO: ProcessCDR(1,14197045,1,1,2) [2025-01-07 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197045', 'tblTempUsageDetail_20' ) start [2025-01-07 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197045', 'tblTempUsageDetail_20' ) end [2025-01-07 19:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:30:23] Production.INFO: ==10966== Releasing lock... [2025-01-07 19:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:30:23] Production.INFO: 46.25 MB #Memory Used# [2025-01-07 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:31:05 [end_date_ymd] => 2025-01-07 19:31:05 [RateCDR] => 1 ) [2025-01-07 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:31:05' and `end` < '2025-01-07 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:31:18] Production.INFO: count ==2340 [2025-01-07 19:31:18] Production.ERROR: pbx CDR StartTime 2025-01-07 16:31:05 - End Time 2025-01-07 19:31:05 [2025-01-07 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197050', 'tblTempUsageDetail_20' ) start [2025-01-07 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197050', 'tblTempUsageDetail_20' ) end [2025-01-07 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197050', 'tblTempVendorCDR_20' ) start [2025-01-07 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197050', 'tblTempVendorCDR_20' ) end [2025-01-07 19:31:18] Production.INFO: ProcessCDR(1,14197050,1,1,2) [2025-01-07 19:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197050', 'tblTempUsageDetail_20' ) start [2025-01-07 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197050', 'tblTempUsageDetail_20' ) end [2025-01-07 19:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:31:23] Production.INFO: ==11041== Releasing lock... [2025-01-07 19:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:31:23] Production.INFO: 45.75 MB #Memory Used# [2025-01-07 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:32:05 [end_date_ymd] => 2025-01-07 19:32:05 [RateCDR] => 1 ) [2025-01-07 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:32:05' and `end` < '2025-01-07 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:32:19] Production.INFO: count ==2300 [2025-01-07 19:32:20] Production.ERROR: pbx CDR StartTime 2025-01-07 16:32:05 - End Time 2025-01-07 19:32:05 [2025-01-07 19:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197055', 'tblTempUsageDetail_20' ) start [2025-01-07 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197055', 'tblTempUsageDetail_20' ) end [2025-01-07 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197055', 'tblTempVendorCDR_20' ) start [2025-01-07 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197055', 'tblTempVendorCDR_20' ) end [2025-01-07 19:32:20] Production.INFO: ProcessCDR(1,14197055,1,1,2) [2025-01-07 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197055', 'tblTempUsageDetail_20' ) start [2025-01-07 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197055', 'tblTempUsageDetail_20' ) end [2025-01-07 19:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:32:24] Production.INFO: ==11117== Releasing lock... [2025-01-07 19:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:32:24] Production.INFO: 45.25 MB #Memory Used# [2025-01-07 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:33:05 [end_date_ymd] => 2025-01-07 19:33:05 [RateCDR] => 1 ) [2025-01-07 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:33:05' and `end` < '2025-01-07 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:33:18] Production.INFO: count ==2275 [2025-01-07 19:33:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:33:05 - End Time 2025-01-07 19:33:05 [2025-01-07 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197060', 'tblTempUsageDetail_20' ) start [2025-01-07 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197060', 'tblTempUsageDetail_20' ) end [2025-01-07 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197060', 'tblTempVendorCDR_20' ) start [2025-01-07 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197060', 'tblTempVendorCDR_20' ) end [2025-01-07 19:33:19] Production.INFO: ProcessCDR(1,14197060,1,1,2) [2025-01-07 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197060', 'tblTempUsageDetail_20' ) start [2025-01-07 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197060', 'tblTempUsageDetail_20' ) end [2025-01-07 19:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:33:23] Production.INFO: ==11187== Releasing lock... [2025-01-07 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:33:23] Production.INFO: 45.5 MB #Memory Used# [2025-01-07 19:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:34:06 [end_date_ymd] => 2025-01-07 19:34:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 16:34:06' and `end` < '2025-01-07 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-01-07 19:34:19] Production.INFO: count ==2272 [2025-01-07 19:34:20] Production.ERROR: pbx CDR StartTime 2025-01-07 16:34:06 - End Time 2025-01-07 19:34:06 [2025-01-07 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197065', 'tblTempUsageDetail_20' ) start [2025-01-07 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197065', 'tblTempUsageDetail_20' ) end [2025-01-07 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197065', 'tblTempVendorCDR_20' ) start [2025-01-07 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197065', 'tblTempVendorCDR_20' ) end [2025-01-07 19:34:20] Production.INFO: ProcessCDR(1,14197065,1,1,2) [2025-01-07 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197065', 'tblTempUsageDetail_20' ) start [2025-01-07 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197065', 'tblTempUsageDetail_20' ) end [2025-01-07 19:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:34:24] Production.INFO: ==11260== Releasing lock... [2025-01-07 19:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:34:24] Production.INFO: 45 MB #Memory Used# [2025-01-07 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:35:05 [end_date_ymd] => 2025-01-07 19:35:05 [RateCDR] => 1 ) [2025-01-07 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:35:05' and `end` < '2025-01-07 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:35:18] Production.INFO: count ==2264 [2025-01-07 19:35:18] Production.ERROR: pbx CDR StartTime 2025-01-07 16:35:05 - End Time 2025-01-07 19:35:05 [2025-01-07 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197070', 'tblTempUsageDetail_20' ) start [2025-01-07 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197070', 'tblTempUsageDetail_20' ) end [2025-01-07 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197070', 'tblTempVendorCDR_20' ) start [2025-01-07 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197070', 'tblTempVendorCDR_20' ) end [2025-01-07 19:35:18] Production.INFO: ProcessCDR(1,14197070,1,1,2) [2025-01-07 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197070', 'tblTempUsageDetail_20' ) start [2025-01-07 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197070', 'tblTempUsageDetail_20' ) end [2025-01-07 19:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:35:21] Production.INFO: ==11330== Releasing lock... [2025-01-07 19:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:35:21] Production.INFO: 45 MB #Memory Used# [2025-01-07 19:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:36:06 [end_date_ymd] => 2025-01-07 19:36:06 [RateCDR] => 1 ) [2025-01-07 19:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:36:06' and `end` < '2025-01-07 19:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:36:19] Production.INFO: count ==2260 [2025-01-07 19:36:20] Production.ERROR: pbx CDR StartTime 2025-01-07 16:36:06 - End Time 2025-01-07 19:36:06 [2025-01-07 19:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197075', 'tblTempUsageDetail_20' ) start [2025-01-07 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197075', 'tblTempUsageDetail_20' ) end [2025-01-07 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197075', 'tblTempVendorCDR_20' ) start [2025-01-07 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197075', 'tblTempVendorCDR_20' ) end [2025-01-07 19:36:20] Production.INFO: ProcessCDR(1,14197075,1,1,2) [2025-01-07 19:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197075', 'tblTempUsageDetail_20' ) start [2025-01-07 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197075', 'tblTempUsageDetail_20' ) end [2025-01-07 19:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:36:23] Production.INFO: ==11401== Releasing lock... [2025-01-07 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:36:23] Production.INFO: 45 MB #Memory Used# [2025-01-07 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:37:05 [end_date_ymd] => 2025-01-07 19:37:05 [RateCDR] => 1 ) [2025-01-07 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:37:05' and `end` < '2025-01-07 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:37:18] Production.INFO: count ==2257 [2025-01-07 19:37:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:37:05 - End Time 2025-01-07 19:37:05 [2025-01-07 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197080', 'tblTempUsageDetail_20' ) start [2025-01-07 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197080', 'tblTempUsageDetail_20' ) end [2025-01-07 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197080', 'tblTempVendorCDR_20' ) start [2025-01-07 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197080', 'tblTempVendorCDR_20' ) end [2025-01-07 19:37:19] Production.INFO: ProcessCDR(1,14197080,1,1,2) [2025-01-07 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197080', 'tblTempUsageDetail_20' ) start [2025-01-07 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197080', 'tblTempUsageDetail_20' ) end [2025-01-07 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:37:24] Production.INFO: ==11471== Releasing lock... [2025-01-07 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:37:24] Production.INFO: 45 MB #Memory Used# [2025-01-07 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:38:05 [end_date_ymd] => 2025-01-07 19:38:05 [RateCDR] => 1 ) [2025-01-07 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:38:05' and `end` < '2025-01-07 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:38:20] Production.INFO: count ==2239 [2025-01-07 19:38:20] Production.ERROR: pbx CDR StartTime 2025-01-07 16:38:05 - End Time 2025-01-07 19:38:05 [2025-01-07 19:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197085', 'tblTempUsageDetail_20' ) start [2025-01-07 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197085', 'tblTempUsageDetail_20' ) end [2025-01-07 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197085', 'tblTempVendorCDR_20' ) start [2025-01-07 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197085', 'tblTempVendorCDR_20' ) end [2025-01-07 19:38:20] Production.INFO: ProcessCDR(1,14197085,1,1,2) [2025-01-07 19:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197085', 'tblTempUsageDetail_20' ) start [2025-01-07 19:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197085', 'tblTempUsageDetail_20' ) end [2025-01-07 19:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:38:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:38:25] Production.INFO: ==11587== Releasing lock... [2025-01-07 19:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:38:25] Production.INFO: 45 MB #Memory Used# [2025-01-07 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:39:05 [end_date_ymd] => 2025-01-07 19:39:05 [RateCDR] => 1 ) [2025-01-07 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:39:05' and `end` < '2025-01-07 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:39:18] Production.INFO: count ==2229 [2025-01-07 19:39:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:39:05 - End Time 2025-01-07 19:39:05 [2025-01-07 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197090', 'tblTempUsageDetail_20' ) start [2025-01-07 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197090', 'tblTempUsageDetail_20' ) end [2025-01-07 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197090', 'tblTempVendorCDR_20' ) start [2025-01-07 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197090', 'tblTempVendorCDR_20' ) end [2025-01-07 19:39:19] Production.INFO: ProcessCDR(1,14197090,1,1,2) [2025-01-07 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197090', 'tblTempUsageDetail_20' ) start [2025-01-07 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197090', 'tblTempUsageDetail_20' ) end [2025-01-07 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:39:22] Production.INFO: ==11657== Releasing lock... [2025-01-07 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:39:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-07 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:40:06 [end_date_ymd] => 2025-01-07 19:40:06 [RateCDR] => 1 ) [2025-01-07 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:40:06' and `end` < '2025-01-07 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:40:19] Production.INFO: count ==2205 [2025-01-07 19:40:20] Production.ERROR: pbx CDR StartTime 2025-01-07 16:40:06 - End Time 2025-01-07 19:40:06 [2025-01-07 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197096', 'tblTempUsageDetail_20' ) start [2025-01-07 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197096', 'tblTempUsageDetail_20' ) end [2025-01-07 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197096', 'tblTempVendorCDR_20' ) start [2025-01-07 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197096', 'tblTempVendorCDR_20' ) end [2025-01-07 19:40:20] Production.INFO: ProcessCDR(1,14197096,1,1,2) [2025-01-07 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197096', 'tblTempUsageDetail_20' ) start [2025-01-07 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197096', 'tblTempUsageDetail_20' ) end [2025-01-07 19:40:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:40:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:40:25] Production.INFO: ==11730== Releasing lock... [2025-01-07 19:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:40:25] Production.INFO: 44.75 MB #Memory Used# [2025-01-07 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:41:05 [end_date_ymd] => 2025-01-07 19:41:05 [RateCDR] => 1 ) [2025-01-07 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:41:05' and `end` < '2025-01-07 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:41:18] Production.INFO: count ==2127 [2025-01-07 19:41:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:41:05 - End Time 2025-01-07 19:41:05 [2025-01-07 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197101', 'tblTempUsageDetail_20' ) start [2025-01-07 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197101', 'tblTempUsageDetail_20' ) end [2025-01-07 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197101', 'tblTempVendorCDR_20' ) start [2025-01-07 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197101', 'tblTempVendorCDR_20' ) end [2025-01-07 19:41:19] Production.INFO: ProcessCDR(1,14197101,1,1,2) [2025-01-07 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197101', 'tblTempUsageDetail_20' ) start [2025-01-07 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197101', 'tblTempUsageDetail_20' ) end [2025-01-07 19:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:41:22] Production.INFO: ==11803== Releasing lock... [2025-01-07 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:41:22] Production.INFO: 44 MB #Memory Used# [2025-01-07 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:42:05 [end_date_ymd] => 2025-01-07 19:42:05 [RateCDR] => 1 ) [2025-01-07 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:42:05' and `end` < '2025-01-07 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:42:19] Production.INFO: count ==2123 [2025-01-07 19:42:20] Production.ERROR: pbx CDR StartTime 2025-01-07 16:42:05 - End Time 2025-01-07 19:42:05 [2025-01-07 19:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197106', 'tblTempUsageDetail_20' ) start [2025-01-07 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197106', 'tblTempUsageDetail_20' ) end [2025-01-07 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197106', 'tblTempVendorCDR_20' ) start [2025-01-07 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197106', 'tblTempVendorCDR_20' ) end [2025-01-07 19:42:20] Production.INFO: ProcessCDR(1,14197106,1,1,2) [2025-01-07 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197106', 'tblTempUsageDetail_20' ) start [2025-01-07 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197106', 'tblTempUsageDetail_20' ) end [2025-01-07 19:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:42:24] Production.INFO: ==11875== Releasing lock... [2025-01-07 19:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:42:24] Production.INFO: 44 MB #Memory Used# [2025-01-07 19:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:43:04 [end_date_ymd] => 2025-01-07 19:43:04 [RateCDR] => 1 ) [2025-01-07 19:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:43:04' and `end` < '2025-01-07 19:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:43:18] Production.INFO: count ==2099 [2025-01-07 19:43:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:43:04 - End Time 2025-01-07 19:43:04 [2025-01-07 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197111', 'tblTempUsageDetail_20' ) start [2025-01-07 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197111', 'tblTempUsageDetail_20' ) end [2025-01-07 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197111', 'tblTempVendorCDR_20' ) start [2025-01-07 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197111', 'tblTempVendorCDR_20' ) end [2025-01-07 19:43:19] Production.INFO: ProcessCDR(1,14197111,1,1,2) [2025-01-07 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197111', 'tblTempUsageDetail_20' ) start [2025-01-07 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197111', 'tblTempUsageDetail_20' ) end [2025-01-07 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:43:22] Production.INFO: ==11949== Releasing lock... [2025-01-07 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:43:22] Production.INFO: 44 MB #Memory Used# [2025-01-07 19:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:44:06 [end_date_ymd] => 2025-01-07 19:44:06 [RateCDR] => 1 ) [2025-01-07 19:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:44:06' and `end` < '2025-01-07 19:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:44:20] Production.INFO: count ==2089 [2025-01-07 19:44:20] Production.ERROR: pbx CDR StartTime 2025-01-07 16:44:06 - End Time 2025-01-07 19:44:06 [2025-01-07 19:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197116', 'tblTempUsageDetail_20' ) start [2025-01-07 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197116', 'tblTempUsageDetail_20' ) end [2025-01-07 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197116', 'tblTempVendorCDR_20' ) start [2025-01-07 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197116', 'tblTempVendorCDR_20' ) end [2025-01-07 19:44:20] Production.INFO: ProcessCDR(1,14197116,1,1,2) [2025-01-07 19:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197116', 'tblTempUsageDetail_20' ) start [2025-01-07 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197116', 'tblTempUsageDetail_20' ) end [2025-01-07 19:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:44:23] Production.INFO: ==12019== Releasing lock... [2025-01-07 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:44:23] Production.INFO: 43.75 MB #Memory Used# [2025-01-07 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:45:05 [end_date_ymd] => 2025-01-07 19:45:05 [RateCDR] => 1 ) [2025-01-07 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:45:05' and `end` < '2025-01-07 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:45:18] Production.INFO: count ==2050 [2025-01-07 19:45:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:45:05 - End Time 2025-01-07 19:45:05 [2025-01-07 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197121', 'tblTempUsageDetail_20' ) start [2025-01-07 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197121', 'tblTempUsageDetail_20' ) end [2025-01-07 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197121', 'tblTempVendorCDR_20' ) start [2025-01-07 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197121', 'tblTempVendorCDR_20' ) end [2025-01-07 19:45:19] Production.INFO: ProcessCDR(1,14197121,1,1,2) [2025-01-07 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197121', 'tblTempUsageDetail_20' ) start [2025-01-07 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197121', 'tblTempUsageDetail_20' ) end [2025-01-07 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:45:24] Production.INFO: ==12094== Releasing lock... [2025-01-07 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:45:24] Production.INFO: 43.75 MB #Memory Used# [2025-01-07 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:46:05 [end_date_ymd] => 2025-01-07 19:46:05 [RateCDR] => 1 ) [2025-01-07 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:46:05' and `end` < '2025-01-07 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:46:19] Production.INFO: count ==2037 [2025-01-07 19:46:20] Production.ERROR: pbx CDR StartTime 2025-01-07 16:46:05 - End Time 2025-01-07 19:46:05 [2025-01-07 19:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197126', 'tblTempUsageDetail_20' ) start [2025-01-07 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197126', 'tblTempUsageDetail_20' ) end [2025-01-07 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197126', 'tblTempVendorCDR_20' ) start [2025-01-07 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197126', 'tblTempVendorCDR_20' ) end [2025-01-07 19:46:20] Production.INFO: ProcessCDR(1,14197126,1,1,2) [2025-01-07 19:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197126', 'tblTempUsageDetail_20' ) start [2025-01-07 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197126', 'tblTempUsageDetail_20' ) end [2025-01-07 19:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:46:23] Production.INFO: ==12166== Releasing lock... [2025-01-07 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:46:23] Production.INFO: 43 MB #Memory Used# [2025-01-07 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:47:05 [end_date_ymd] => 2025-01-07 19:47:05 [RateCDR] => 1 ) [2025-01-07 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:47:05' and `end` < '2025-01-07 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:47:19] Production.INFO: count ==2030 [2025-01-07 19:47:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:47:05 - End Time 2025-01-07 19:47:05 [2025-01-07 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197131', 'tblTempUsageDetail_20' ) start [2025-01-07 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197131', 'tblTempUsageDetail_20' ) end [2025-01-07 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197131', 'tblTempVendorCDR_20' ) start [2025-01-07 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197131', 'tblTempVendorCDR_20' ) end [2025-01-07 19:47:19] Production.INFO: ProcessCDR(1,14197131,1,1,2) [2025-01-07 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197131', 'tblTempUsageDetail_20' ) start [2025-01-07 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197131', 'tblTempUsageDetail_20' ) end [2025-01-07 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:47:22] Production.INFO: ==12239== Releasing lock... [2025-01-07 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:47:22] Production.INFO: 43 MB #Memory Used# [2025-01-07 19:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:48:06 [end_date_ymd] => 2025-01-07 19:48:06 [RateCDR] => 1 ) [2025-01-07 19:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:48:06' and `end` < '2025-01-07 19:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:48:20] Production.INFO: count ==2017 [2025-01-07 19:48:21] Production.ERROR: pbx CDR StartTime 2025-01-07 16:48:06 - End Time 2025-01-07 19:48:06 [2025-01-07 19:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197136', 'tblTempUsageDetail_20' ) start [2025-01-07 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197136', 'tblTempUsageDetail_20' ) end [2025-01-07 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197136', 'tblTempVendorCDR_20' ) start [2025-01-07 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197136', 'tblTempVendorCDR_20' ) end [2025-01-07 19:48:21] Production.INFO: ProcessCDR(1,14197136,1,1,2) [2025-01-07 19:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197136', 'tblTempUsageDetail_20' ) start [2025-01-07 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197136', 'tblTempUsageDetail_20' ) end [2025-01-07 19:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:48:24] Production.INFO: ==12312== Releasing lock... [2025-01-07 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:48:24] Production.INFO: 43.25 MB #Memory Used# [2025-01-07 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:49:05 [end_date_ymd] => 2025-01-07 19:49:05 [RateCDR] => 1 ) [2025-01-07 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:49:05' and `end` < '2025-01-07 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:49:18] Production.INFO: count ==1994 [2025-01-07 19:49:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:49:05 - End Time 2025-01-07 19:49:05 [2025-01-07 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197141', 'tblTempUsageDetail_20' ) start [2025-01-07 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197141', 'tblTempUsageDetail_20' ) end [2025-01-07 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197141', 'tblTempVendorCDR_20' ) start [2025-01-07 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197141', 'tblTempVendorCDR_20' ) end [2025-01-07 19:49:19] Production.INFO: ProcessCDR(1,14197141,1,1,2) [2025-01-07 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197141', 'tblTempUsageDetail_20' ) start [2025-01-07 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197141', 'tblTempUsageDetail_20' ) end [2025-01-07 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:49:22] Production.INFO: ==12383== Releasing lock... [2025-01-07 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:49:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-07 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:50:06 [end_date_ymd] => 2025-01-07 19:50:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 16:50:06' and `end` < '2025-01-07 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-01-07 19:50:19] Production.INFO: count ==1968 [2025-01-07 19:50:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:50:06 - End Time 2025-01-07 19:50:06 [2025-01-07 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197146', 'tblTempUsageDetail_20' ) start [2025-01-07 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197146', 'tblTempUsageDetail_20' ) end [2025-01-07 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197146', 'tblTempVendorCDR_20' ) start [2025-01-07 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197146', 'tblTempVendorCDR_20' ) end [2025-01-07 19:50:19] Production.INFO: ProcessCDR(1,14197146,1,1,2) [2025-01-07 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197146', 'tblTempUsageDetail_20' ) start [2025-01-07 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197146', 'tblTempUsageDetail_20' ) end [2025-01-07 19:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:50:23] Production.INFO: ==12457== Releasing lock... [2025-01-07 19:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:50:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-07 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:51:05 [end_date_ymd] => 2025-01-07 19:51:05 [RateCDR] => 1 ) [2025-01-07 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:51:05' and `end` < '2025-01-07 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:51:19] Production.INFO: count ==1895 [2025-01-07 19:51:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:51:05 - End Time 2025-01-07 19:51:05 [2025-01-07 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197152', 'tblTempUsageDetail_20' ) start [2025-01-07 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197152', 'tblTempUsageDetail_20' ) end [2025-01-07 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197152', 'tblTempVendorCDR_20' ) start [2025-01-07 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197152', 'tblTempVendorCDR_20' ) end [2025-01-07 19:51:19] Production.INFO: ProcessCDR(1,14197152,1,1,2) [2025-01-07 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197152', 'tblTempUsageDetail_20' ) start [2025-01-07 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197152', 'tblTempUsageDetail_20' ) end [2025-01-07 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:51:23] Production.INFO: ==12529== Releasing lock... [2025-01-07 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:51:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-07 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:52:05 [end_date_ymd] => 2025-01-07 19:52:05 [RateCDR] => 1 ) [2025-01-07 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:52:05' and `end` < '2025-01-07 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:52:19] Production.INFO: count ==1860 [2025-01-07 19:52:20] Production.ERROR: pbx CDR StartTime 2025-01-07 16:52:05 - End Time 2025-01-07 19:52:05 [2025-01-07 19:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197157', 'tblTempUsageDetail_20' ) start [2025-01-07 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197157', 'tblTempUsageDetail_20' ) end [2025-01-07 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197157', 'tblTempVendorCDR_20' ) start [2025-01-07 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197157', 'tblTempVendorCDR_20' ) end [2025-01-07 19:52:20] Production.INFO: ProcessCDR(1,14197157,1,1,2) [2025-01-07 19:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197157', 'tblTempUsageDetail_20' ) start [2025-01-07 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197157', 'tblTempUsageDetail_20' ) end [2025-01-07 19:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:52:23] Production.INFO: ==12600== Releasing lock... [2025-01-07 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:52:23] Production.INFO: 42 MB #Memory Used# [2025-01-07 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:53:05 [end_date_ymd] => 2025-01-07 19:53:05 [RateCDR] => 1 ) [2025-01-07 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:53:05' and `end` < '2025-01-07 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:53:19] Production.INFO: count ==1856 [2025-01-07 19:53:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:53:05 - End Time 2025-01-07 19:53:05 [2025-01-07 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197162', 'tblTempUsageDetail_20' ) start [2025-01-07 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197162', 'tblTempUsageDetail_20' ) end [2025-01-07 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197162', 'tblTempVendorCDR_20' ) start [2025-01-07 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197162', 'tblTempVendorCDR_20' ) end [2025-01-07 19:53:19] Production.INFO: ProcessCDR(1,14197162,1,1,2) [2025-01-07 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197162', 'tblTempUsageDetail_20' ) start [2025-01-07 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197162', 'tblTempUsageDetail_20' ) end [2025-01-07 19:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:53:24] Production.INFO: ==12708== Releasing lock... [2025-01-07 19:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:53:24] Production.INFO: 42 MB #Memory Used# [2025-01-07 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:54:05 [end_date_ymd] => 2025-01-07 19:54:05 [RateCDR] => 1 ) [2025-01-07 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:54:05' and `end` < '2025-01-07 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:54:18] Production.INFO: count ==1842 [2025-01-07 19:54:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:54:05 - End Time 2025-01-07 19:54:05 [2025-01-07 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197167', 'tblTempUsageDetail_20' ) start [2025-01-07 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197167', 'tblTempUsageDetail_20' ) end [2025-01-07 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197167', 'tblTempVendorCDR_20' ) start [2025-01-07 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197167', 'tblTempVendorCDR_20' ) end [2025-01-07 19:54:19] Production.INFO: ProcessCDR(1,14197167,1,1,2) [2025-01-07 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197167', 'tblTempUsageDetail_20' ) start [2025-01-07 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197167', 'tblTempUsageDetail_20' ) end [2025-01-07 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:54:22] Production.INFO: ==12782== Releasing lock... [2025-01-07 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:54:22] Production.INFO: 42 MB #Memory Used# [2025-01-07 19:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:55:04 [end_date_ymd] => 2025-01-07 19:55:04 [RateCDR] => 1 ) [2025-01-07 19:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:55:04' and `end` < '2025-01-07 19:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:55:18] Production.INFO: count ==1830 [2025-01-07 19:55:18] Production.ERROR: pbx CDR StartTime 2025-01-07 16:55:04 - End Time 2025-01-07 19:55:04 [2025-01-07 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197172', 'tblTempUsageDetail_20' ) start [2025-01-07 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197172', 'tblTempUsageDetail_20' ) end [2025-01-07 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197172', 'tblTempVendorCDR_20' ) start [2025-01-07 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197172', 'tblTempVendorCDR_20' ) end [2025-01-07 19:55:18] Production.INFO: ProcessCDR(1,14197172,1,1,2) [2025-01-07 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197172', 'tblTempUsageDetail_20' ) start [2025-01-07 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197172', 'tblTempUsageDetail_20' ) end [2025-01-07 19:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:55:21] Production.INFO: ==12851== Releasing lock... [2025-01-07 19:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:55:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-07 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:56:05 [end_date_ymd] => 2025-01-07 19:56:05 [RateCDR] => 1 ) [2025-01-07 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:56:05' and `end` < '2025-01-07 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:56:19] Production.INFO: count ==1788 [2025-01-07 19:56:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:56:05 - End Time 2025-01-07 19:56:05 [2025-01-07 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197177', 'tblTempUsageDetail_20' ) start [2025-01-07 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197177', 'tblTempUsageDetail_20' ) end [2025-01-07 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197177', 'tblTempVendorCDR_20' ) start [2025-01-07 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197177', 'tblTempVendorCDR_20' ) end [2025-01-07 19:56:19] Production.INFO: ProcessCDR(1,14197177,1,1,2) [2025-01-07 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197177', 'tblTempUsageDetail_20' ) start [2025-01-07 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197177', 'tblTempUsageDetail_20' ) end [2025-01-07 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:56:22] Production.INFO: ==12921== Releasing lock... [2025-01-07 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:56:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-07 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:57:05 [end_date_ymd] => 2025-01-07 19:57:05 [RateCDR] => 1 ) [2025-01-07 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:57:05' and `end` < '2025-01-07 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:57:18] Production.INFO: count ==1774 [2025-01-07 19:57:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:57:05 - End Time 2025-01-07 19:57:05 [2025-01-07 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197182', 'tblTempUsageDetail_20' ) start [2025-01-07 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197182', 'tblTempUsageDetail_20' ) end [2025-01-07 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197182', 'tblTempVendorCDR_20' ) start [2025-01-07 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197182', 'tblTempVendorCDR_20' ) end [2025-01-07 19:57:19] Production.INFO: ProcessCDR(1,14197182,1,1,2) [2025-01-07 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197182', 'tblTempUsageDetail_20' ) start [2025-01-07 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197182', 'tblTempUsageDetail_20' ) end [2025-01-07 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:57:22] Production.INFO: ==12990== Releasing lock... [2025-01-07 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:57:22] Production.INFO: 41 MB #Memory Used# [2025-01-07 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:58:05 [end_date_ymd] => 2025-01-07 19:58:05 [RateCDR] => 1 ) [2025-01-07 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:58:05' and `end` < '2025-01-07 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:58:19] Production.INFO: count ==1758 [2025-01-07 19:58:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:58:05 - End Time 2025-01-07 19:58:05 [2025-01-07 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197187', 'tblTempUsageDetail_20' ) start [2025-01-07 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197187', 'tblTempUsageDetail_20' ) end [2025-01-07 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197187', 'tblTempVendorCDR_20' ) start [2025-01-07 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197187', 'tblTempVendorCDR_20' ) end [2025-01-07 19:58:19] Production.INFO: ProcessCDR(1,14197187,1,1,2) [2025-01-07 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197187', 'tblTempUsageDetail_20' ) start [2025-01-07 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197187', 'tblTempUsageDetail_20' ) end [2025-01-07 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:58:23] Production.INFO: ==13060== Releasing lock... [2025-01-07 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:58:23] Production.INFO: 41 MB #Memory Used# [2025-01-07 19:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 16:59:06 [end_date_ymd] => 2025-01-07 19:59:06 [RateCDR] => 1 ) [2025-01-07 19:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 16:59:06' and `end` < '2025-01-07 19:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 19:59:19] Production.INFO: count ==1740 [2025-01-07 19:59:19] Production.ERROR: pbx CDR StartTime 2025-01-07 16:59:06 - End Time 2025-01-07 19:59:06 [2025-01-07 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197192', 'tblTempUsageDetail_20' ) start [2025-01-07 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197192', 'tblTempUsageDetail_20' ) end [2025-01-07 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197192', 'tblTempVendorCDR_20' ) start [2025-01-07 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197192', 'tblTempVendorCDR_20' ) end [2025-01-07 19:59:19] Production.INFO: ProcessCDR(1,14197192,1,1,2) [2025-01-07 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197192', 'tblTempUsageDetail_20' ) start [2025-01-07 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197192', 'tblTempUsageDetail_20' ) end [2025-01-07 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 19:59:22] Production.INFO: ==13136== Releasing lock... [2025-01-07 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 19:59:22] Production.INFO: 41 MB #Memory Used# [2025-01-07 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:00:06 [end_date_ymd] => 2025-01-07 20:00:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 17:00:06' and `end` < '2025-01-07 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-01-07 20:00:19] Production.INFO: count ==1735 [2025-01-07 20:00:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:00:06 - End Time 2025-01-07 20:00:06 [2025-01-07 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197197', 'tblTempUsageDetail_20' ) start [2025-01-07 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197197', 'tblTempUsageDetail_20' ) end [2025-01-07 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197197', 'tblTempVendorCDR_20' ) start [2025-01-07 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197197', 'tblTempVendorCDR_20' ) end [2025-01-07 20:00:19] Production.INFO: ProcessCDR(1,14197197,1,1,2) [2025-01-07 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197197', 'tblTempUsageDetail_20' ) start [2025-01-07 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197197', 'tblTempUsageDetail_20' ) end [2025-01-07 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:00:24] Production.INFO: ==13209== Releasing lock... [2025-01-07 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:00:24] Production.INFO: 41 MB #Memory Used# [2025-01-07 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:01:05 [end_date_ymd] => 2025-01-07 20:01:05 [RateCDR] => 1 ) [2025-01-07 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:01:05' and `end` < '2025-01-07 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:01:18] Production.INFO: count ==1692 [2025-01-07 20:01:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:01:05 - End Time 2025-01-07 20:01:05 [2025-01-07 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197203', 'tblTempUsageDetail_20' ) start [2025-01-07 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197203', 'tblTempUsageDetail_20' ) end [2025-01-07 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197203', 'tblTempVendorCDR_20' ) start [2025-01-07 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197203', 'tblTempVendorCDR_20' ) end [2025-01-07 20:01:19] Production.INFO: ProcessCDR(1,14197203,1,1,2) [2025-01-07 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197203', 'tblTempUsageDetail_20' ) start [2025-01-07 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197203', 'tblTempUsageDetail_20' ) end [2025-01-07 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:01:22] Production.INFO: ==13336== Releasing lock... [2025-01-07 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:01:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-07 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:02:04 [end_date_ymd] => 2025-01-07 20:02:04 [RateCDR] => 1 ) [2025-01-07 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:02:04' and `end` < '2025-01-07 20:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:02:18] Production.INFO: count ==1694 [2025-01-07 20:02:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:02:04 - End Time 2025-01-07 20:02:04 [2025-01-07 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197208', 'tblTempUsageDetail_20' ) start [2025-01-07 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197208', 'tblTempUsageDetail_20' ) end [2025-01-07 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197208', 'tblTempVendorCDR_20' ) start [2025-01-07 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197208', 'tblTempVendorCDR_20' ) end [2025-01-07 20:02:18] Production.INFO: ProcessCDR(1,14197208,1,1,2) [2025-01-07 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197208', 'tblTempUsageDetail_20' ) start [2025-01-07 20:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197208', 'tblTempUsageDetail_20' ) end [2025-01-07 20:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:02:21] Production.INFO: ==13405== Releasing lock... [2025-01-07 20:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:02:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-07 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:03:05 [end_date_ymd] => 2025-01-07 20:03:05 [RateCDR] => 1 ) [2025-01-07 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:03:05' and `end` < '2025-01-07 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:03:19] Production.INFO: count ==1687 [2025-01-07 20:03:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:03:05 - End Time 2025-01-07 20:03:05 [2025-01-07 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197213', 'tblTempUsageDetail_20' ) start [2025-01-07 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197213', 'tblTempUsageDetail_20' ) end [2025-01-07 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197213', 'tblTempVendorCDR_20' ) start [2025-01-07 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197213', 'tblTempVendorCDR_20' ) end [2025-01-07 20:03:19] Production.INFO: ProcessCDR(1,14197213,1,1,2) [2025-01-07 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197213', 'tblTempUsageDetail_20' ) start [2025-01-07 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197213', 'tblTempUsageDetail_20' ) end [2025-01-07 20:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:03:22] Production.INFO: ==13476== Releasing lock... [2025-01-07 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:03:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-07 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:04:05 [end_date_ymd] => 2025-01-07 20:04:05 [RateCDR] => 1 ) [2025-01-07 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:04:05' and `end` < '2025-01-07 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:04:18] Production.INFO: count ==1684 [2025-01-07 20:04:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:04:05 - End Time 2025-01-07 20:04:05 [2025-01-07 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197218', 'tblTempUsageDetail_20' ) start [2025-01-07 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197218', 'tblTempUsageDetail_20' ) end [2025-01-07 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197218', 'tblTempVendorCDR_20' ) start [2025-01-07 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197218', 'tblTempVendorCDR_20' ) end [2025-01-07 20:04:18] Production.INFO: ProcessCDR(1,14197218,1,1,2) [2025-01-07 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197218', 'tblTempUsageDetail_20' ) start [2025-01-07 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197218', 'tblTempUsageDetail_20' ) end [2025-01-07 20:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:04:23] Production.INFO: ==13547== Releasing lock... [2025-01-07 20:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:04:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-07 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:05:05 [end_date_ymd] => 2025-01-07 20:05:05 [RateCDR] => 1 ) [2025-01-07 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:05:05' and `end` < '2025-01-07 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:05:18] Production.INFO: count ==1680 [2025-01-07 20:05:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:05:05 - End Time 2025-01-07 20:05:05 [2025-01-07 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197223', 'tblTempUsageDetail_20' ) start [2025-01-07 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197223', 'tblTempUsageDetail_20' ) end [2025-01-07 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197223', 'tblTempVendorCDR_20' ) start [2025-01-07 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197223', 'tblTempVendorCDR_20' ) end [2025-01-07 20:05:19] Production.INFO: ProcessCDR(1,14197223,1,1,2) [2025-01-07 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197223', 'tblTempUsageDetail_20' ) start [2025-01-07 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197223', 'tblTempUsageDetail_20' ) end [2025-01-07 20:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:05:23] Production.INFO: ==13617== Releasing lock... [2025-01-07 20:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:05:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-07 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:06:05 [end_date_ymd] => 2025-01-07 20:06:05 [RateCDR] => 1 ) [2025-01-07 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:06:05' and `end` < '2025-01-07 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:06:18] Production.INFO: count ==1660 [2025-01-07 20:06:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:06:05 - End Time 2025-01-07 20:06:05 [2025-01-07 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197228', 'tblTempUsageDetail_20' ) start [2025-01-07 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197228', 'tblTempUsageDetail_20' ) end [2025-01-07 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197228', 'tblTempVendorCDR_20' ) start [2025-01-07 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197228', 'tblTempVendorCDR_20' ) end [2025-01-07 20:06:19] Production.INFO: ProcessCDR(1,14197228,1,1,2) [2025-01-07 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197228', 'tblTempUsageDetail_20' ) start [2025-01-07 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197228', 'tblTempUsageDetail_20' ) end [2025-01-07 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:06:22] Production.INFO: ==13687== Releasing lock... [2025-01-07 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:06:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-07 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:07:05 [end_date_ymd] => 2025-01-07 20:07:05 [RateCDR] => 1 ) [2025-01-07 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:07:05' and `end` < '2025-01-07 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:07:18] Production.INFO: count ==1632 [2025-01-07 20:07:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:07:05 - End Time 2025-01-07 20:07:05 [2025-01-07 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197233', 'tblTempUsageDetail_20' ) start [2025-01-07 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197233', 'tblTempUsageDetail_20' ) end [2025-01-07 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197233', 'tblTempVendorCDR_20' ) start [2025-01-07 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197233', 'tblTempVendorCDR_20' ) end [2025-01-07 20:07:19] Production.INFO: ProcessCDR(1,14197233,1,1,2) [2025-01-07 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197233', 'tblTempUsageDetail_20' ) start [2025-01-07 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197233', 'tblTempUsageDetail_20' ) end [2025-01-07 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:07:22] Production.INFO: ==13763== Releasing lock... [2025-01-07 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:07:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-07 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:08:05 [end_date_ymd] => 2025-01-07 20:08:05 [RateCDR] => 1 ) [2025-01-07 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:08:05' and `end` < '2025-01-07 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:08:18] Production.INFO: count ==1618 [2025-01-07 20:08:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:08:05 - End Time 2025-01-07 20:08:05 [2025-01-07 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197238', 'tblTempUsageDetail_20' ) start [2025-01-07 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197238', 'tblTempUsageDetail_20' ) end [2025-01-07 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197238', 'tblTempVendorCDR_20' ) start [2025-01-07 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197238', 'tblTempVendorCDR_20' ) end [2025-01-07 20:08:19] Production.INFO: ProcessCDR(1,14197238,1,1,2) [2025-01-07 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197238', 'tblTempUsageDetail_20' ) start [2025-01-07 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197238', 'tblTempUsageDetail_20' ) end [2025-01-07 20:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:08:22] Production.INFO: ==13835== Releasing lock... [2025-01-07 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:08:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-07 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:09:05 [end_date_ymd] => 2025-01-07 20:09:05 [RateCDR] => 1 ) [2025-01-07 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:09:05' and `end` < '2025-01-07 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:09:18] Production.INFO: count ==1616 [2025-01-07 20:09:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:09:05 - End Time 2025-01-07 20:09:05 [2025-01-07 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197243', 'tblTempUsageDetail_20' ) start [2025-01-07 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197243', 'tblTempUsageDetail_20' ) end [2025-01-07 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197243', 'tblTempVendorCDR_20' ) start [2025-01-07 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197243', 'tblTempVendorCDR_20' ) end [2025-01-07 20:09:19] Production.INFO: ProcessCDR(1,14197243,1,1,2) [2025-01-07 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197243', 'tblTempUsageDetail_20' ) start [2025-01-07 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197243', 'tblTempUsageDetail_20' ) end [2025-01-07 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:09:22] Production.INFO: ==13944== Releasing lock... [2025-01-07 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:09:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-07 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:10:05 [end_date_ymd] => 2025-01-07 20:10:05 [RateCDR] => 1 ) [2025-01-07 20:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:10:05' and `end` < '2025-01-07 20:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:10:18] Production.INFO: count ==1614 [2025-01-07 20:10:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:10:05 - End Time 2025-01-07 20:10:05 [2025-01-07 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197249', 'tblTempUsageDetail_20' ) start [2025-01-07 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197249', 'tblTempUsageDetail_20' ) end [2025-01-07 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197249', 'tblTempVendorCDR_20' ) start [2025-01-07 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197249', 'tblTempVendorCDR_20' ) end [2025-01-07 20:10:19] Production.INFO: ProcessCDR(1,14197249,1,1,2) [2025-01-07 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197249', 'tblTempUsageDetail_20' ) start [2025-01-07 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197249', 'tblTempUsageDetail_20' ) end [2025-01-07 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:10:23] Production.INFO: ==14016== Releasing lock... [2025-01-07 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:10:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-07 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:11:05 [end_date_ymd] => 2025-01-07 20:11:05 [RateCDR] => 1 ) [2025-01-07 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:11:05' and `end` < '2025-01-07 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:11:18] Production.INFO: count ==1560 [2025-01-07 20:11:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:11:05 - End Time 2025-01-07 20:11:05 [2025-01-07 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197254', 'tblTempUsageDetail_20' ) start [2025-01-07 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197254', 'tblTempUsageDetail_20' ) end [2025-01-07 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197254', 'tblTempVendorCDR_20' ) start [2025-01-07 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197254', 'tblTempVendorCDR_20' ) end [2025-01-07 20:11:18] Production.INFO: ProcessCDR(1,14197254,1,1,2) [2025-01-07 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197254', 'tblTempUsageDetail_20' ) start [2025-01-07 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197254', 'tblTempUsageDetail_20' ) end [2025-01-07 20:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:11:23] Production.INFO: ==14089== Releasing lock... [2025-01-07 20:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:11:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-07 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:12:06 [end_date_ymd] => 2025-01-07 20:12:06 [RateCDR] => 1 ) [2025-01-07 20:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:12:06' and `end` < '2025-01-07 20:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:12:19] Production.INFO: count ==1557 [2025-01-07 20:12:20] Production.ERROR: pbx CDR StartTime 2025-01-07 17:12:06 - End Time 2025-01-07 20:12:06 [2025-01-07 20:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197259', 'tblTempUsageDetail_20' ) start [2025-01-07 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197259', 'tblTempUsageDetail_20' ) end [2025-01-07 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197259', 'tblTempVendorCDR_20' ) start [2025-01-07 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197259', 'tblTempVendorCDR_20' ) end [2025-01-07 20:12:20] Production.INFO: ProcessCDR(1,14197259,1,1,2) [2025-01-07 20:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197259', 'tblTempUsageDetail_20' ) start [2025-01-07 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197259', 'tblTempUsageDetail_20' ) end [2025-01-07 20:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:12:23] Production.INFO: ==14161== Releasing lock... [2025-01-07 20:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:12:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-07 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:13:05 [end_date_ymd] => 2025-01-07 20:13:05 [RateCDR] => 1 ) [2025-01-07 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:13:05' and `end` < '2025-01-07 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:13:18] Production.INFO: count ==1558 [2025-01-07 20:13:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:13:05 - End Time 2025-01-07 20:13:05 [2025-01-07 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197264', 'tblTempUsageDetail_20' ) start [2025-01-07 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197264', 'tblTempUsageDetail_20' ) end [2025-01-07 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197264', 'tblTempVendorCDR_20' ) start [2025-01-07 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197264', 'tblTempVendorCDR_20' ) end [2025-01-07 20:13:19] Production.INFO: ProcessCDR(1,14197264,1,1,2) [2025-01-07 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197264', 'tblTempUsageDetail_20' ) start [2025-01-07 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197264', 'tblTempUsageDetail_20' ) end [2025-01-07 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:13:22] Production.INFO: ==14232== Releasing lock... [2025-01-07 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:13:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-07 20:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:14:06 [end_date_ymd] => 2025-01-07 20:14:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 17:14:06' and `end` < '2025-01-07 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-01-07 20:14:19] Production.INFO: count ==1556 [2025-01-07 20:14:20] Production.ERROR: pbx CDR StartTime 2025-01-07 17:14:06 - End Time 2025-01-07 20:14:06 [2025-01-07 20:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197269', 'tblTempUsageDetail_20' ) start [2025-01-07 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197269', 'tblTempUsageDetail_20' ) end [2025-01-07 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197269', 'tblTempVendorCDR_20' ) start [2025-01-07 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197269', 'tblTempVendorCDR_20' ) end [2025-01-07 20:14:20] Production.INFO: ProcessCDR(1,14197269,1,1,2) [2025-01-07 20:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197269', 'tblTempUsageDetail_20' ) start [2025-01-07 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197269', 'tblTempUsageDetail_20' ) end [2025-01-07 20:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:14:23] Production.INFO: ==14305== Releasing lock... [2025-01-07 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:14:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-07 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:15:05 [end_date_ymd] => 2025-01-07 20:15:05 [RateCDR] => 1 ) [2025-01-07 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:15:05' and `end` < '2025-01-07 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:15:18] Production.INFO: count ==1546 [2025-01-07 20:15:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:15:05 - End Time 2025-01-07 20:15:05 [2025-01-07 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197274', 'tblTempUsageDetail_20' ) start [2025-01-07 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197274', 'tblTempUsageDetail_20' ) end [2025-01-07 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197274', 'tblTempVendorCDR_20' ) start [2025-01-07 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197274', 'tblTempVendorCDR_20' ) end [2025-01-07 20:15:18] Production.INFO: ProcessCDR(1,14197274,1,1,2) [2025-01-07 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197274', 'tblTempUsageDetail_20' ) start [2025-01-07 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197274', 'tblTempUsageDetail_20' ) end [2025-01-07 20:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:15:21] Production.INFO: ==14388== Releasing lock... [2025-01-07 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:15:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-07 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:16:05 [end_date_ymd] => 2025-01-07 20:16:05 [RateCDR] => 1 ) [2025-01-07 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:16:05' and `end` < '2025-01-07 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:16:18] Production.INFO: count ==1543 [2025-01-07 20:16:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:16:05 - End Time 2025-01-07 20:16:05 [2025-01-07 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197279', 'tblTempUsageDetail_20' ) start [2025-01-07 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197279', 'tblTempUsageDetail_20' ) end [2025-01-07 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197279', 'tblTempVendorCDR_20' ) start [2025-01-07 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197279', 'tblTempVendorCDR_20' ) end [2025-01-07 20:16:19] Production.INFO: ProcessCDR(1,14197279,1,1,2) [2025-01-07 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197279', 'tblTempUsageDetail_20' ) start [2025-01-07 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197279', 'tblTempUsageDetail_20' ) end [2025-01-07 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:16:22] Production.INFO: ==14488== Releasing lock... [2025-01-07 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:16:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-07 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:17:05 [end_date_ymd] => 2025-01-07 20:17:05 [RateCDR] => 1 ) [2025-01-07 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:17:05' and `end` < '2025-01-07 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:17:18] Production.INFO: count ==1540 [2025-01-07 20:17:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:17:05 - End Time 2025-01-07 20:17:05 [2025-01-07 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197284', 'tblTempUsageDetail_20' ) start [2025-01-07 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197284', 'tblTempUsageDetail_20' ) end [2025-01-07 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197284', 'tblTempVendorCDR_20' ) start [2025-01-07 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197284', 'tblTempVendorCDR_20' ) end [2025-01-07 20:17:19] Production.INFO: ProcessCDR(1,14197284,1,1,2) [2025-01-07 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197284', 'tblTempUsageDetail_20' ) start [2025-01-07 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197284', 'tblTempUsageDetail_20' ) end [2025-01-07 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:17:22] Production.INFO: ==14584== Releasing lock... [2025-01-07 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:17:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-07 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:18:05 [end_date_ymd] => 2025-01-07 20:18:05 [RateCDR] => 1 ) [2025-01-07 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:18:05' and `end` < '2025-01-07 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:18:18] Production.INFO: count ==1539 [2025-01-07 20:18:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:18:05 - End Time 2025-01-07 20:18:05 [2025-01-07 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197289', 'tblTempUsageDetail_20' ) start [2025-01-07 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197289', 'tblTempUsageDetail_20' ) end [2025-01-07 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197289', 'tblTempVendorCDR_20' ) start [2025-01-07 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197289', 'tblTempVendorCDR_20' ) end [2025-01-07 20:18:19] Production.INFO: ProcessCDR(1,14197289,1,1,2) [2025-01-07 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197289', 'tblTempUsageDetail_20' ) start [2025-01-07 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197289', 'tblTempUsageDetail_20' ) end [2025-01-07 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:18:23] Production.INFO: ==14694== Releasing lock... [2025-01-07 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:18:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-07 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:19:05 [end_date_ymd] => 2025-01-07 20:19:05 [RateCDR] => 1 ) [2025-01-07 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:19:05' and `end` < '2025-01-07 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:19:18] Production.INFO: count ==1520 [2025-01-07 20:19:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:19:05 - End Time 2025-01-07 20:19:05 [2025-01-07 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197294', 'tblTempUsageDetail_20' ) start [2025-01-07 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197294', 'tblTempUsageDetail_20' ) end [2025-01-07 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197294', 'tblTempVendorCDR_20' ) start [2025-01-07 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197294', 'tblTempVendorCDR_20' ) end [2025-01-07 20:19:18] Production.INFO: ProcessCDR(1,14197294,1,1,2) [2025-01-07 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197294', 'tblTempUsageDetail_20' ) start [2025-01-07 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197294', 'tblTempUsageDetail_20' ) end [2025-01-07 20:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:19:21] Production.INFO: ==14797== Releasing lock... [2025-01-07 20:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:19:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-07 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:20:06 [end_date_ymd] => 2025-01-07 20:20:06 [RateCDR] => 1 ) [2025-01-07 20:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:20:06' and `end` < '2025-01-07 20:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:20:19] Production.INFO: count ==1520 [2025-01-07 20:20:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:20:06 - End Time 2025-01-07 20:20:06 [2025-01-07 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197300', 'tblTempUsageDetail_20' ) start [2025-01-07 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197300', 'tblTempUsageDetail_20' ) end [2025-01-07 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197300', 'tblTempVendorCDR_20' ) start [2025-01-07 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197300', 'tblTempVendorCDR_20' ) end [2025-01-07 20:20:19] Production.INFO: ProcessCDR(1,14197300,1,1,2) [2025-01-07 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197300', 'tblTempUsageDetail_20' ) start [2025-01-07 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197300', 'tblTempUsageDetail_20' ) end [2025-01-07 20:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:20:22] Production.INFO: ==14896== Releasing lock... [2025-01-07 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:20:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-07 20:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:21:04 [end_date_ymd] => 2025-01-07 20:21:04 [RateCDR] => 1 ) [2025-01-07 20:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:21:04' and `end` < '2025-01-07 20:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:21:18] Production.INFO: count ==1482 [2025-01-07 20:21:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:21:04 - End Time 2025-01-07 20:21:04 [2025-01-07 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197305', 'tblTempUsageDetail_20' ) start [2025-01-07 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197305', 'tblTempUsageDetail_20' ) end [2025-01-07 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197305', 'tblTempVendorCDR_20' ) start [2025-01-07 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197305', 'tblTempVendorCDR_20' ) end [2025-01-07 20:21:18] Production.INFO: ProcessCDR(1,14197305,1,1,2) [2025-01-07 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197305', 'tblTempUsageDetail_20' ) start [2025-01-07 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197305', 'tblTempUsageDetail_20' ) end [2025-01-07 20:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:21:21] Production.INFO: ==15000== Releasing lock... [2025-01-07 20:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:21:21] Production.INFO: 39 MB #Memory Used# [2025-01-07 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:22:05 [end_date_ymd] => 2025-01-07 20:22:05 [RateCDR] => 1 ) [2025-01-07 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:22:05' and `end` < '2025-01-07 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:22:19] Production.INFO: count ==1459 [2025-01-07 20:22:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:22:05 - End Time 2025-01-07 20:22:05 [2025-01-07 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197310', 'tblTempUsageDetail_20' ) start [2025-01-07 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197310', 'tblTempUsageDetail_20' ) end [2025-01-07 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197310', 'tblTempVendorCDR_20' ) start [2025-01-07 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197310', 'tblTempVendorCDR_20' ) end [2025-01-07 20:22:19] Production.INFO: ProcessCDR(1,14197310,1,1,2) [2025-01-07 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197310', 'tblTempUsageDetail_20' ) start [2025-01-07 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197310', 'tblTempUsageDetail_20' ) end [2025-01-07 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:22:22] Production.INFO: ==15100== Releasing lock... [2025-01-07 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:22:22] Production.INFO: 39 MB #Memory Used# [2025-01-07 20:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:23:04 [end_date_ymd] => 2025-01-07 20:23:04 [RateCDR] => 1 ) [2025-01-07 20:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:23:04' and `end` < '2025-01-07 20:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:23:17] Production.INFO: count ==1444 [2025-01-07 20:23:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:23:04 - End Time 2025-01-07 20:23:04 [2025-01-07 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197315', 'tblTempUsageDetail_20' ) start [2025-01-07 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197315', 'tblTempUsageDetail_20' ) end [2025-01-07 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197315', 'tblTempVendorCDR_20' ) start [2025-01-07 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197315', 'tblTempVendorCDR_20' ) end [2025-01-07 20:23:18] Production.INFO: ProcessCDR(1,14197315,1,1,2) [2025-01-07 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197315', 'tblTempUsageDetail_20' ) start [2025-01-07 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197315', 'tblTempUsageDetail_20' ) end [2025-01-07 20:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:23:21] Production.INFO: ==15194== Releasing lock... [2025-01-07 20:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:23:21] Production.INFO: 39 MB #Memory Used# [2025-01-07 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:24:05 [end_date_ymd] => 2025-01-07 20:24:05 [RateCDR] => 1 ) [2025-01-07 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:24:05' and `end` < '2025-01-07 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:24:18] Production.INFO: count ==1429 [2025-01-07 20:24:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:24:05 - End Time 2025-01-07 20:24:05 [2025-01-07 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197320', 'tblTempUsageDetail_20' ) start [2025-01-07 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197320', 'tblTempUsageDetail_20' ) end [2025-01-07 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197320', 'tblTempVendorCDR_20' ) start [2025-01-07 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197320', 'tblTempVendorCDR_20' ) end [2025-01-07 20:24:19] Production.INFO: ProcessCDR(1,14197320,1,1,2) [2025-01-07 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197320', 'tblTempUsageDetail_20' ) start [2025-01-07 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197320', 'tblTempUsageDetail_20' ) end [2025-01-07 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:24:22] Production.INFO: ==15296== Releasing lock... [2025-01-07 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:24:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-07 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:25:05 [end_date_ymd] => 2025-01-07 20:25:05 [RateCDR] => 1 ) [2025-01-07 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:25:05' and `end` < '2025-01-07 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:25:18] Production.INFO: count ==1415 [2025-01-07 20:25:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:25:05 - End Time 2025-01-07 20:25:05 [2025-01-07 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197325', 'tblTempUsageDetail_20' ) start [2025-01-07 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197325', 'tblTempUsageDetail_20' ) end [2025-01-07 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197325', 'tblTempVendorCDR_20' ) start [2025-01-07 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197325', 'tblTempVendorCDR_20' ) end [2025-01-07 20:25:18] Production.INFO: ProcessCDR(1,14197325,1,1,2) [2025-01-07 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197325', 'tblTempUsageDetail_20' ) start [2025-01-07 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197325', 'tblTempUsageDetail_20' ) end [2025-01-07 20:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:25:21] Production.INFO: ==15432== Releasing lock... [2025-01-07 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:25:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-07 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:26:05 [end_date_ymd] => 2025-01-07 20:26:05 [RateCDR] => 1 ) [2025-01-07 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:26:05' and `end` < '2025-01-07 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:26:19] Production.INFO: count ==1413 [2025-01-07 20:26:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:26:05 - End Time 2025-01-07 20:26:05 [2025-01-07 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197330', 'tblTempUsageDetail_20' ) start [2025-01-07 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197330', 'tblTempUsageDetail_20' ) end [2025-01-07 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197330', 'tblTempVendorCDR_20' ) start [2025-01-07 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197330', 'tblTempVendorCDR_20' ) end [2025-01-07 20:26:19] Production.INFO: ProcessCDR(1,14197330,1,1,2) [2025-01-07 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197330', 'tblTempUsageDetail_20' ) start [2025-01-07 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197330', 'tblTempUsageDetail_20' ) end [2025-01-07 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:26:22] Production.INFO: ==15534== Releasing lock... [2025-01-07 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:26:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-07 20:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:27:04 [end_date_ymd] => 2025-01-07 20:27:04 [RateCDR] => 1 ) [2025-01-07 20:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:27:04' and `end` < '2025-01-07 20:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:27:17] Production.INFO: count ==1398 [2025-01-07 20:27:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:27:04 - End Time 2025-01-07 20:27:04 [2025-01-07 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197335', 'tblTempUsageDetail_20' ) start [2025-01-07 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197335', 'tblTempUsageDetail_20' ) end [2025-01-07 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197335', 'tblTempVendorCDR_20' ) start [2025-01-07 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197335', 'tblTempVendorCDR_20' ) end [2025-01-07 20:27:18] Production.INFO: ProcessCDR(1,14197335,1,1,2) [2025-01-07 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197335', 'tblTempUsageDetail_20' ) start [2025-01-07 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197335', 'tblTempUsageDetail_20' ) end [2025-01-07 20:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:27:21] Production.INFO: ==15637== Releasing lock... [2025-01-07 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:27:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-07 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:28:05 [end_date_ymd] => 2025-01-07 20:28:05 [RateCDR] => 1 ) [2025-01-07 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:28:05' and `end` < '2025-01-07 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:28:18] Production.INFO: count ==1398 [2025-01-07 20:28:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:28:05 - End Time 2025-01-07 20:28:05 [2025-01-07 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197340', 'tblTempUsageDetail_20' ) start [2025-01-07 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197340', 'tblTempUsageDetail_20' ) end [2025-01-07 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197340', 'tblTempVendorCDR_20' ) start [2025-01-07 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197340', 'tblTempVendorCDR_20' ) end [2025-01-07 20:28:18] Production.INFO: ProcessCDR(1,14197340,1,1,2) [2025-01-07 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197340', 'tblTempUsageDetail_20' ) start [2025-01-07 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197340', 'tblTempUsageDetail_20' ) end [2025-01-07 20:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:28:21] Production.INFO: ==15738== Releasing lock... [2025-01-07 20:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:28:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-07 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:29:05 [end_date_ymd] => 2025-01-07 20:29:05 [RateCDR] => 1 ) [2025-01-07 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:29:05' and `end` < '2025-01-07 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:29:18] Production.INFO: count ==1400 [2025-01-07 20:29:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:29:05 - End Time 2025-01-07 20:29:05 [2025-01-07 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197345', 'tblTempUsageDetail_20' ) start [2025-01-07 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197345', 'tblTempUsageDetail_20' ) end [2025-01-07 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197345', 'tblTempVendorCDR_20' ) start [2025-01-07 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197345', 'tblTempVendorCDR_20' ) end [2025-01-07 20:29:18] Production.INFO: ProcessCDR(1,14197345,1,1,2) [2025-01-07 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197345', 'tblTempUsageDetail_20' ) start [2025-01-07 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197345', 'tblTempUsageDetail_20' ) end [2025-01-07 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:29:23] Production.INFO: ==15836== Releasing lock... [2025-01-07 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:29:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-07 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:30:05 [end_date_ymd] => 2025-01-07 20:30:05 [RateCDR] => 1 ) [2025-01-07 20:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:30:05' and `end` < '2025-01-07 20:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:30:18] Production.INFO: count ==1398 [2025-01-07 20:30:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:30:05 - End Time 2025-01-07 20:30:05 [2025-01-07 20:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197351', 'tblTempUsageDetail_20' ) start [2025-01-07 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197351', 'tblTempUsageDetail_20' ) end [2025-01-07 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197351', 'tblTempVendorCDR_20' ) start [2025-01-07 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197351', 'tblTempVendorCDR_20' ) end [2025-01-07 20:30:19] Production.INFO: ProcessCDR(1,14197351,1,1,2) [2025-01-07 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197351', 'tblTempUsageDetail_20' ) start [2025-01-07 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197351', 'tblTempUsageDetail_20' ) end [2025-01-07 20:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:30:22] Production.INFO: ==15936== Releasing lock... [2025-01-07 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:30:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-07 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:31:05 [end_date_ymd] => 2025-01-07 20:31:05 [RateCDR] => 1 ) [2025-01-07 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:31:05' and `end` < '2025-01-07 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:31:18] Production.INFO: count ==1363 [2025-01-07 20:31:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:31:05 - End Time 2025-01-07 20:31:05 [2025-01-07 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197356', 'tblTempUsageDetail_20' ) start [2025-01-07 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197356', 'tblTempUsageDetail_20' ) end [2025-01-07 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197356', 'tblTempVendorCDR_20' ) start [2025-01-07 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197356', 'tblTempVendorCDR_20' ) end [2025-01-07 20:31:18] Production.INFO: ProcessCDR(1,14197356,1,1,2) [2025-01-07 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197356', 'tblTempUsageDetail_20' ) start [2025-01-07 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197356', 'tblTempUsageDetail_20' ) end [2025-01-07 20:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:31:23] Production.INFO: ==16038== Releasing lock... [2025-01-07 20:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:31:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-07 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:32:05 [end_date_ymd] => 2025-01-07 20:32:05 [RateCDR] => 1 ) [2025-01-07 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:32:05' and `end` < '2025-01-07 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:32:18] Production.INFO: count ==1360 [2025-01-07 20:32:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:32:05 - End Time 2025-01-07 20:32:05 [2025-01-07 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197361', 'tblTempUsageDetail_20' ) start [2025-01-07 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197361', 'tblTempUsageDetail_20' ) end [2025-01-07 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197361', 'tblTempVendorCDR_20' ) start [2025-01-07 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197361', 'tblTempVendorCDR_20' ) end [2025-01-07 20:32:19] Production.INFO: ProcessCDR(1,14197361,1,1,2) [2025-01-07 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197361', 'tblTempUsageDetail_20' ) start [2025-01-07 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197361', 'tblTempUsageDetail_20' ) end [2025-01-07 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:32:23] Production.INFO: ==16138== Releasing lock... [2025-01-07 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:32:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-07 20:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:33:06 [end_date_ymd] => 2025-01-07 20:33:06 [RateCDR] => 1 ) [2025-01-07 20:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:33:06' and `end` < '2025-01-07 20:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:33:20] Production.INFO: count ==1356 [2025-01-07 20:33:20] Production.ERROR: pbx CDR StartTime 2025-01-07 17:33:06 - End Time 2025-01-07 20:33:06 [2025-01-07 20:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197366', 'tblTempUsageDetail_20' ) start [2025-01-07 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197366', 'tblTempUsageDetail_20' ) end [2025-01-07 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197366', 'tblTempVendorCDR_20' ) start [2025-01-07 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197366', 'tblTempVendorCDR_20' ) end [2025-01-07 20:33:20] Production.INFO: ProcessCDR(1,14197366,1,1,2) [2025-01-07 20:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197366', 'tblTempUsageDetail_20' ) start [2025-01-07 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197366', 'tblTempUsageDetail_20' ) end [2025-01-07 20:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:33:23] Production.INFO: ==16236== Releasing lock... [2025-01-07 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:33:23] Production.INFO: 38 MB #Memory Used# [2025-01-07 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:34:05 [end_date_ymd] => 2025-01-07 20:34:05 [RateCDR] => 1 ) [2025-01-07 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:34:05' and `end` < '2025-01-07 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:34:18] Production.INFO: count ==1346 [2025-01-07 20:34:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:34:05 - End Time 2025-01-07 20:34:05 [2025-01-07 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197371', 'tblTempUsageDetail_20' ) start [2025-01-07 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197371', 'tblTempUsageDetail_20' ) end [2025-01-07 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197371', 'tblTempVendorCDR_20' ) start [2025-01-07 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197371', 'tblTempVendorCDR_20' ) end [2025-01-07 20:34:18] Production.INFO: ProcessCDR(1,14197371,1,1,2) [2025-01-07 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197371', 'tblTempUsageDetail_20' ) start [2025-01-07 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197371', 'tblTempUsageDetail_20' ) end [2025-01-07 20:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:34:21] Production.INFO: ==16332== Releasing lock... [2025-01-07 20:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:34:21] Production.INFO: 38 MB #Memory Used# [2025-01-07 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:35:05 [end_date_ymd] => 2025-01-07 20:35:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 17:35:05' and `end` < '2025-01-07 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-01-07 20:35:18] Production.INFO: count ==1340 [2025-01-07 20:35:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:35:05 - End Time 2025-01-07 20:35:05 [2025-01-07 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197376', 'tblTempUsageDetail_20' ) start [2025-01-07 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197376', 'tblTempUsageDetail_20' ) end [2025-01-07 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197376', 'tblTempVendorCDR_20' ) start [2025-01-07 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197376', 'tblTempVendorCDR_20' ) end [2025-01-07 20:35:19] Production.INFO: ProcessCDR(1,14197376,1,1,2) [2025-01-07 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197376', 'tblTempUsageDetail_20' ) start [2025-01-07 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197376', 'tblTempUsageDetail_20' ) end [2025-01-07 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:35:22] Production.INFO: ==16431== Releasing lock... [2025-01-07 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:35:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-07 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:36:06 [end_date_ymd] => 2025-01-07 20:36:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 17:36:06' and `end` < '2025-01-07 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-01-07 20:36:19] Production.INFO: count ==1337 [2025-01-07 20:36:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:36:06 - End Time 2025-01-07 20:36:06 [2025-01-07 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197381', 'tblTempUsageDetail_20' ) start [2025-01-07 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197381', 'tblTempUsageDetail_20' ) end [2025-01-07 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197381', 'tblTempVendorCDR_20' ) start [2025-01-07 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197381', 'tblTempVendorCDR_20' ) end [2025-01-07 20:36:19] Production.INFO: ProcessCDR(1,14197381,1,1,2) [2025-01-07 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197381', 'tblTempUsageDetail_20' ) start [2025-01-07 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197381', 'tblTempUsageDetail_20' ) end [2025-01-07 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:36:22] Production.INFO: ==16530== Releasing lock... [2025-01-07 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:36:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-07 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:37:05 [end_date_ymd] => 2025-01-07 20:37:05 [RateCDR] => 1 ) [2025-01-07 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:37:05' and `end` < '2025-01-07 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:37:18] Production.INFO: count ==1342 [2025-01-07 20:37:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:37:05 - End Time 2025-01-07 20:37:05 [2025-01-07 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197386', 'tblTempUsageDetail_20' ) start [2025-01-07 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197386', 'tblTempUsageDetail_20' ) end [2025-01-07 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197386', 'tblTempVendorCDR_20' ) start [2025-01-07 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197386', 'tblTempVendorCDR_20' ) end [2025-01-07 20:37:18] Production.INFO: ProcessCDR(1,14197386,1,1,2) [2025-01-07 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197386', 'tblTempUsageDetail_20' ) start [2025-01-07 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197386', 'tblTempUsageDetail_20' ) end [2025-01-07 20:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:37:22] Production.INFO: ==16614== Releasing lock... [2025-01-07 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:37:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-07 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:38:05 [end_date_ymd] => 2025-01-07 20:38:05 [RateCDR] => 1 ) [2025-01-07 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:38:05' and `end` < '2025-01-07 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:38:18] Production.INFO: count ==1326 [2025-01-07 20:38:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:38:05 - End Time 2025-01-07 20:38:05 [2025-01-07 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197391', 'tblTempUsageDetail_20' ) start [2025-01-07 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197391', 'tblTempUsageDetail_20' ) end [2025-01-07 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197391', 'tblTempVendorCDR_20' ) start [2025-01-07 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197391', 'tblTempVendorCDR_20' ) end [2025-01-07 20:38:18] Production.INFO: ProcessCDR(1,14197391,1,1,2) [2025-01-07 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197391', 'tblTempUsageDetail_20' ) start [2025-01-07 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197391', 'tblTempUsageDetail_20' ) end [2025-01-07 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:38:22] Production.INFO: ==16685== Releasing lock... [2025-01-07 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:38:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-07 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:39:05 [end_date_ymd] => 2025-01-07 20:39:05 [RateCDR] => 1 ) [2025-01-07 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:39:05' and `end` < '2025-01-07 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:39:19] Production.INFO: count ==1326 [2025-01-07 20:39:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:39:05 - End Time 2025-01-07 20:39:05 [2025-01-07 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197396', 'tblTempUsageDetail_20' ) start [2025-01-07 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197396', 'tblTempUsageDetail_20' ) end [2025-01-07 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197396', 'tblTempVendorCDR_20' ) start [2025-01-07 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197396', 'tblTempVendorCDR_20' ) end [2025-01-07 20:39:19] Production.INFO: ProcessCDR(1,14197396,1,1,2) [2025-01-07 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197396', 'tblTempUsageDetail_20' ) start [2025-01-07 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197396', 'tblTempUsageDetail_20' ) end [2025-01-07 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:39:22] Production.INFO: ==16754== Releasing lock... [2025-01-07 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:39:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-07 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:40:05 [end_date_ymd] => 2025-01-07 20:40:05 [RateCDR] => 1 ) [2025-01-07 20:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:40:05' and `end` < '2025-01-07 20:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:40:18] Production.INFO: count ==1323 [2025-01-07 20:40:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:40:05 - End Time 2025-01-07 20:40:05 [2025-01-07 20:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197402', 'tblTempUsageDetail_20' ) start [2025-01-07 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197402', 'tblTempUsageDetail_20' ) end [2025-01-07 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197402', 'tblTempVendorCDR_20' ) start [2025-01-07 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197402', 'tblTempVendorCDR_20' ) end [2025-01-07 20:40:18] Production.INFO: ProcessCDR(1,14197402,1,1,2) [2025-01-07 20:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197402', 'tblTempUsageDetail_20' ) start [2025-01-07 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197402', 'tblTempUsageDetail_20' ) end [2025-01-07 20:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:40:22] Production.INFO: ==16869== Releasing lock... [2025-01-07 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:40:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-07 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:41:05 [end_date_ymd] => 2025-01-07 20:41:05 [RateCDR] => 1 ) [2025-01-07 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:41:05' and `end` < '2025-01-07 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:41:18] Production.INFO: count ==1264 [2025-01-07 20:41:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:41:05 - End Time 2025-01-07 20:41:05 [2025-01-07 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197407', 'tblTempUsageDetail_20' ) start [2025-01-07 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197407', 'tblTempUsageDetail_20' ) end [2025-01-07 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197407', 'tblTempVendorCDR_20' ) start [2025-01-07 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197407', 'tblTempVendorCDR_20' ) end [2025-01-07 20:41:19] Production.INFO: ProcessCDR(1,14197407,1,1,2) [2025-01-07 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197407', 'tblTempUsageDetail_20' ) start [2025-01-07 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197407', 'tblTempUsageDetail_20' ) end [2025-01-07 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:41:22] Production.INFO: ==16942== Releasing lock... [2025-01-07 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:41:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-07 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:42:05 [end_date_ymd] => 2025-01-07 20:42:05 [RateCDR] => 1 ) [2025-01-07 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:42:05' and `end` < '2025-01-07 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:42:18] Production.INFO: count ==1247 [2025-01-07 20:42:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:42:05 - End Time 2025-01-07 20:42:05 [2025-01-07 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197412', 'tblTempUsageDetail_20' ) start [2025-01-07 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197412', 'tblTempUsageDetail_20' ) end [2025-01-07 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197412', 'tblTempVendorCDR_20' ) start [2025-01-07 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197412', 'tblTempVendorCDR_20' ) end [2025-01-07 20:42:19] Production.INFO: ProcessCDR(1,14197412,1,1,2) [2025-01-07 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197412', 'tblTempUsageDetail_20' ) start [2025-01-07 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197412', 'tblTempUsageDetail_20' ) end [2025-01-07 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:42:22] Production.INFO: ==17013== Releasing lock... [2025-01-07 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:42:22] Production.INFO: 37 MB #Memory Used# [2025-01-07 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:43:05 [end_date_ymd] => 2025-01-07 20:43:05 [RateCDR] => 1 ) [2025-01-07 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:43:05' and `end` < '2025-01-07 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:43:18] Production.INFO: count ==1280 [2025-01-07 20:43:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:43:05 - End Time 2025-01-07 20:43:05 [2025-01-07 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197417', 'tblTempUsageDetail_20' ) start [2025-01-07 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197417', 'tblTempUsageDetail_20' ) end [2025-01-07 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197417', 'tblTempVendorCDR_20' ) start [2025-01-07 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197417', 'tblTempVendorCDR_20' ) end [2025-01-07 20:43:19] Production.INFO: ProcessCDR(1,14197417,1,1,2) [2025-01-07 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197417', 'tblTempUsageDetail_20' ) start [2025-01-07 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197417', 'tblTempUsageDetail_20' ) end [2025-01-07 20:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:43:23] Production.INFO: ==17087== Releasing lock... [2025-01-07 20:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:43:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-07 20:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:44:04 [end_date_ymd] => 2025-01-07 20:44:04 [RateCDR] => 1 ) [2025-01-07 20:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:44:04' and `end` < '2025-01-07 20:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:44:17] Production.INFO: count ==1317 [2025-01-07 20:44:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:44:04 - End Time 2025-01-07 20:44:04 [2025-01-07 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197422', 'tblTempUsageDetail_20' ) start [2025-01-07 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197422', 'tblTempUsageDetail_20' ) end [2025-01-07 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197422', 'tblTempVendorCDR_20' ) start [2025-01-07 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197422', 'tblTempVendorCDR_20' ) end [2025-01-07 20:44:18] Production.INFO: ProcessCDR(1,14197422,1,1,2) [2025-01-07 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197422', 'tblTempUsageDetail_20' ) start [2025-01-07 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197422', 'tblTempUsageDetail_20' ) end [2025-01-07 20:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:44:21] Production.INFO: ==17159== Releasing lock... [2025-01-07 20:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:44:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-07 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:45:05 [end_date_ymd] => 2025-01-07 20:45:05 [RateCDR] => 1 ) [2025-01-07 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:45:05' and `end` < '2025-01-07 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:45:18] Production.INFO: count ==1354 [2025-01-07 20:45:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:45:05 - End Time 2025-01-07 20:45:05 [2025-01-07 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197427', 'tblTempUsageDetail_20' ) start [2025-01-07 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197427', 'tblTempUsageDetail_20' ) end [2025-01-07 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197427', 'tblTempVendorCDR_20' ) start [2025-01-07 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197427', 'tblTempVendorCDR_20' ) end [2025-01-07 20:45:19] Production.INFO: ProcessCDR(1,14197427,1,1,2) [2025-01-07 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197427', 'tblTempUsageDetail_20' ) start [2025-01-07 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197427', 'tblTempUsageDetail_20' ) end [2025-01-07 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:45:22] Production.INFO: ==17228== Releasing lock... [2025-01-07 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:45:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-07 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:46:05 [end_date_ymd] => 2025-01-07 20:46:05 [RateCDR] => 1 ) [2025-01-07 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:46:05' and `end` < '2025-01-07 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:46:18] Production.INFO: count ==1386 [2025-01-07 20:46:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:46:05 - End Time 2025-01-07 20:46:05 [2025-01-07 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197432', 'tblTempUsageDetail_20' ) start [2025-01-07 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197432', 'tblTempUsageDetail_20' ) end [2025-01-07 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197432', 'tblTempVendorCDR_20' ) start [2025-01-07 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197432', 'tblTempVendorCDR_20' ) end [2025-01-07 20:46:19] Production.INFO: ProcessCDR(1,14197432,1,1,2) [2025-01-07 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197432', 'tblTempUsageDetail_20' ) start [2025-01-07 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197432', 'tblTempUsageDetail_20' ) end [2025-01-07 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:46:22] Production.INFO: ==17301== Releasing lock... [2025-01-07 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:46:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-07 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:47:05 [end_date_ymd] => 2025-01-07 20:47:05 [RateCDR] => 1 ) [2025-01-07 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:47:05' and `end` < '2025-01-07 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:47:18] Production.INFO: count ==1427 [2025-01-07 20:47:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:47:05 - End Time 2025-01-07 20:47:05 [2025-01-07 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197437', 'tblTempUsageDetail_20' ) start [2025-01-07 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197437', 'tblTempUsageDetail_20' ) end [2025-01-07 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197437', 'tblTempVendorCDR_20' ) start [2025-01-07 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197437', 'tblTempVendorCDR_20' ) end [2025-01-07 20:47:19] Production.INFO: ProcessCDR(1,14197437,1,1,2) [2025-01-07 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197437', 'tblTempUsageDetail_20' ) start [2025-01-07 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197437', 'tblTempUsageDetail_20' ) end [2025-01-07 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:47:22] Production.INFO: ==17370== Releasing lock... [2025-01-07 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:47:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-07 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:48:05 [end_date_ymd] => 2025-01-07 20:48:05 [RateCDR] => 1 ) [2025-01-07 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:48:05' and `end` < '2025-01-07 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:48:18] Production.INFO: count ==1452 [2025-01-07 20:48:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:48:05 - End Time 2025-01-07 20:48:05 [2025-01-07 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197442', 'tblTempUsageDetail_20' ) start [2025-01-07 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197442', 'tblTempUsageDetail_20' ) end [2025-01-07 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197442', 'tblTempVendorCDR_20' ) start [2025-01-07 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197442', 'tblTempVendorCDR_20' ) end [2025-01-07 20:48:18] Production.INFO: ProcessCDR(1,14197442,1,1,2) [2025-01-07 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197442', 'tblTempUsageDetail_20' ) start [2025-01-07 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197442', 'tblTempUsageDetail_20' ) end [2025-01-07 20:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:48:21] Production.INFO: ==17443== Releasing lock... [2025-01-07 20:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:48:21] Production.INFO: 39 MB #Memory Used# [2025-01-07 20:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:49:04 [end_date_ymd] => 2025-01-07 20:49:04 [RateCDR] => 1 ) [2025-01-07 20:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:49:04' and `end` < '2025-01-07 20:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:49:18] Production.INFO: count ==1483 [2025-01-07 20:49:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:49:04 - End Time 2025-01-07 20:49:04 [2025-01-07 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197447', 'tblTempUsageDetail_20' ) start [2025-01-07 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197447', 'tblTempUsageDetail_20' ) end [2025-01-07 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197447', 'tblTempVendorCDR_20' ) start [2025-01-07 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197447', 'tblTempVendorCDR_20' ) end [2025-01-07 20:49:18] Production.INFO: ProcessCDR(1,14197447,1,1,2) [2025-01-07 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197447', 'tblTempUsageDetail_20' ) start [2025-01-07 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197447', 'tblTempUsageDetail_20' ) end [2025-01-07 20:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:49:21] Production.INFO: ==17514== Releasing lock... [2025-01-07 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:49:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-07 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:50:06 [end_date_ymd] => 2025-01-07 20:50:06 [RateCDR] => 1 ) [2025-01-07 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:50:06' and `end` < '2025-01-07 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:50:19] Production.INFO: count ==1503 [2025-01-07 20:50:20] Production.ERROR: pbx CDR StartTime 2025-01-07 17:50:06 - End Time 2025-01-07 20:50:06 [2025-01-07 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197453', 'tblTempUsageDetail_20' ) start [2025-01-07 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197453', 'tblTempUsageDetail_20' ) end [2025-01-07 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197453', 'tblTempVendorCDR_20' ) start [2025-01-07 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197453', 'tblTempVendorCDR_20' ) end [2025-01-07 20:50:20] Production.INFO: ProcessCDR(1,14197453,1,1,2) [2025-01-07 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197453', 'tblTempUsageDetail_20' ) start [2025-01-07 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197453', 'tblTempUsageDetail_20' ) end [2025-01-07 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:50:23] Production.INFO: ==17587== Releasing lock... [2025-01-07 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:50:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-07 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:51:05 [end_date_ymd] => 2025-01-07 20:51:05 [RateCDR] => 1 ) [2025-01-07 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:51:05' and `end` < '2025-01-07 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:51:18] Production.INFO: count ==1778 [2025-01-07 20:51:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:51:05 - End Time 2025-01-07 20:51:05 [2025-01-07 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197458', 'tblTempUsageDetail_20' ) start [2025-01-07 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197458', 'tblTempUsageDetail_20' ) end [2025-01-07 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197458', 'tblTempVendorCDR_20' ) start [2025-01-07 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197458', 'tblTempVendorCDR_20' ) end [2025-01-07 20:51:19] Production.INFO: ProcessCDR(1,14197458,1,1,2) [2025-01-07 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197458', 'tblTempUsageDetail_20' ) start [2025-01-07 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197458', 'tblTempUsageDetail_20' ) end [2025-01-07 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:51:23] Production.INFO: ==17658== Releasing lock... [2025-01-07 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:51:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-07 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:52:05 [end_date_ymd] => 2025-01-07 20:52:05 [RateCDR] => 1 ) [2025-01-07 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:52:05' and `end` < '2025-01-07 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:52:19] Production.INFO: count ==1812 [2025-01-07 20:52:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:52:05 - End Time 2025-01-07 20:52:05 [2025-01-07 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197463', 'tblTempUsageDetail_20' ) start [2025-01-07 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197463', 'tblTempUsageDetail_20' ) end [2025-01-07 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197463', 'tblTempVendorCDR_20' ) start [2025-01-07 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197463', 'tblTempVendorCDR_20' ) end [2025-01-07 20:52:19] Production.INFO: ProcessCDR(1,14197463,1,1,2) [2025-01-07 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197463', 'tblTempUsageDetail_20' ) start [2025-01-07 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197463', 'tblTempUsageDetail_20' ) end [2025-01-07 20:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:52:24] Production.INFO: ==17728== Releasing lock... [2025-01-07 20:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:52:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-07 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:53:05 [end_date_ymd] => 2025-01-07 20:53:05 [RateCDR] => 1 ) [2025-01-07 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:53:05' and `end` < '2025-01-07 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:53:18] Production.INFO: count ==1848 [2025-01-07 20:53:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:53:05 - End Time 2025-01-07 20:53:05 [2025-01-07 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197468', 'tblTempUsageDetail_20' ) start [2025-01-07 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197468', 'tblTempUsageDetail_20' ) end [2025-01-07 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197468', 'tblTempVendorCDR_20' ) start [2025-01-07 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197468', 'tblTempVendorCDR_20' ) end [2025-01-07 20:53:19] Production.INFO: ProcessCDR(1,14197468,1,1,2) [2025-01-07 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197468', 'tblTempUsageDetail_20' ) start [2025-01-07 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197468', 'tblTempUsageDetail_20' ) end [2025-01-07 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:53:23] Production.INFO: ==17803== Releasing lock... [2025-01-07 20:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:53:23] Production.INFO: 42.25 MB #Memory Used# [2025-01-07 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:54:05 [end_date_ymd] => 2025-01-07 20:54:05 [RateCDR] => 1 ) [2025-01-07 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:54:05' and `end` < '2025-01-07 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:54:18] Production.INFO: count ==1886 [2025-01-07 20:54:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:54:05 - End Time 2025-01-07 20:54:05 [2025-01-07 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197473', 'tblTempUsageDetail_20' ) start [2025-01-07 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197473', 'tblTempUsageDetail_20' ) end [2025-01-07 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197473', 'tblTempVendorCDR_20' ) start [2025-01-07 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197473', 'tblTempVendorCDR_20' ) end [2025-01-07 20:54:18] Production.INFO: ProcessCDR(1,14197473,1,1,2) [2025-01-07 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197473', 'tblTempUsageDetail_20' ) start [2025-01-07 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197473', 'tblTempUsageDetail_20' ) end [2025-01-07 20:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:54:21] Production.INFO: ==17876== Releasing lock... [2025-01-07 20:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:54:21] Production.INFO: 42.25 MB #Memory Used# [2025-01-07 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:55:05 [end_date_ymd] => 2025-01-07 20:55:05 [RateCDR] => 1 ) [2025-01-07 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:55:05' and `end` < '2025-01-07 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:55:18] Production.INFO: count ==1931 [2025-01-07 20:55:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:55:05 - End Time 2025-01-07 20:55:05 [2025-01-07 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197478', 'tblTempUsageDetail_20' ) start [2025-01-07 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197478', 'tblTempUsageDetail_20' ) end [2025-01-07 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197478', 'tblTempVendorCDR_20' ) start [2025-01-07 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197478', 'tblTempVendorCDR_20' ) end [2025-01-07 20:55:19] Production.INFO: ProcessCDR(1,14197478,1,1,2) [2025-01-07 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197478', 'tblTempUsageDetail_20' ) start [2025-01-07 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197478', 'tblTempUsageDetail_20' ) end [2025-01-07 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:55:22] Production.INFO: ==17946== Releasing lock... [2025-01-07 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:55:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-07 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:56:05 [end_date_ymd] => 2025-01-07 20:56:05 [RateCDR] => 1 ) [2025-01-07 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:56:05' and `end` < '2025-01-07 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:56:18] Production.INFO: count ==2045 [2025-01-07 20:56:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:56:05 - End Time 2025-01-07 20:56:05 [2025-01-07 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197483', 'tblTempUsageDetail_20' ) start [2025-01-07 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197483', 'tblTempUsageDetail_20' ) end [2025-01-07 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197483', 'tblTempVendorCDR_20' ) start [2025-01-07 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197483', 'tblTempVendorCDR_20' ) end [2025-01-07 20:56:19] Production.INFO: ProcessCDR(1,14197483,1,1,2) [2025-01-07 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197483', 'tblTempUsageDetail_20' ) start [2025-01-07 20:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197483', 'tblTempUsageDetail_20' ) end [2025-01-07 20:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:56:24] Production.INFO: ==18058== Releasing lock... [2025-01-07 20:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:56:24] Production.INFO: 43.5 MB #Memory Used# [2025-01-07 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:57:05 [end_date_ymd] => 2025-01-07 20:57:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 17:57:05' and `end` < '2025-01-07 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-01-07 20:57:18] Production.INFO: count ==2038 [2025-01-07 20:57:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:57:05 - End Time 2025-01-07 20:57:05 [2025-01-07 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197488', 'tblTempUsageDetail_20' ) start [2025-01-07 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197488', 'tblTempUsageDetail_20' ) end [2025-01-07 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197488', 'tblTempVendorCDR_20' ) start [2025-01-07 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197488', 'tblTempVendorCDR_20' ) end [2025-01-07 20:57:18] Production.INFO: ProcessCDR(1,14197488,1,1,2) [2025-01-07 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197488', 'tblTempUsageDetail_20' ) start [2025-01-07 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197488', 'tblTempUsageDetail_20' ) end [2025-01-07 20:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:57:23] Production.INFO: ==18129== Releasing lock... [2025-01-07 20:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:57:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-07 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:58:05 [end_date_ymd] => 2025-01-07 20:58:05 [RateCDR] => 1 ) [2025-01-07 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:58:05' and `end` < '2025-01-07 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:58:18] Production.INFO: count ==2038 [2025-01-07 20:58:19] Production.ERROR: pbx CDR StartTime 2025-01-07 17:58:05 - End Time 2025-01-07 20:58:05 [2025-01-07 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197493', 'tblTempUsageDetail_20' ) start [2025-01-07 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197493', 'tblTempUsageDetail_20' ) end [2025-01-07 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197493', 'tblTempVendorCDR_20' ) start [2025-01-07 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197493', 'tblTempVendorCDR_20' ) end [2025-01-07 20:58:19] Production.INFO: ProcessCDR(1,14197493,1,1,2) [2025-01-07 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197493', 'tblTempUsageDetail_20' ) start [2025-01-07 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197493', 'tblTempUsageDetail_20' ) end [2025-01-07 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:58:22] Production.INFO: ==18200== Releasing lock... [2025-01-07 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:58:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-07 20:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 17:59:04 [end_date_ymd] => 2025-01-07 20:59:04 [RateCDR] => 1 ) [2025-01-07 20:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 17:59:04' and `end` < '2025-01-07 20:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 20:59:18] Production.INFO: count ==2022 [2025-01-07 20:59:18] Production.ERROR: pbx CDR StartTime 2025-01-07 17:59:04 - End Time 2025-01-07 20:59:04 [2025-01-07 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197496', 'tblTempUsageDetail_20' ) start [2025-01-07 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197496', 'tblTempUsageDetail_20' ) end [2025-01-07 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197496', 'tblTempVendorCDR_20' ) start [2025-01-07 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197496', 'tblTempVendorCDR_20' ) end [2025-01-07 20:59:18] Production.INFO: ProcessCDR(1,14197496,1,1,2) [2025-01-07 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 20:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197496', 'tblTempUsageDetail_20' ) start [2025-01-07 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197496', 'tblTempUsageDetail_20' ) end [2025-01-07 20:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 20:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 20:59:23] Production.INFO: ==18272== Releasing lock... [2025-01-07 20:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 20:59:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-07 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:00:06 [end_date_ymd] => 2025-01-07 21:00:06 [RateCDR] => 1 ) [2025-01-07 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:00:06' and `end` < '2025-01-07 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:00:19] Production.INFO: count ==2021 [2025-01-07 21:00:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:00:06 - End Time 2025-01-07 21:00:06 [2025-01-07 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197504', 'tblTempUsageDetail_20' ) start [2025-01-07 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197504', 'tblTempUsageDetail_20' ) end [2025-01-07 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197504', 'tblTempVendorCDR_20' ) start [2025-01-07 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197504', 'tblTempVendorCDR_20' ) end [2025-01-07 21:00:20] Production.INFO: ProcessCDR(1,14197504,1,1,2) [2025-01-07 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197504', 'tblTempUsageDetail_20' ) start [2025-01-07 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197504', 'tblTempUsageDetail_20' ) end [2025-01-07 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:00:23] Production.INFO: ==18345== Releasing lock... [2025-01-07 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:00:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-07 21:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:01:06 [end_date_ymd] => 2025-01-07 21:01:06 [RateCDR] => 1 ) [2025-01-07 21:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:01:06' and `end` < '2025-01-07 21:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:01:19] Production.INFO: count ==1986 [2025-01-07 21:01:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:01:06 - End Time 2025-01-07 21:01:06 [2025-01-07 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197509', 'tblTempUsageDetail_20' ) start [2025-01-07 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197509', 'tblTempUsageDetail_20' ) end [2025-01-07 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197509', 'tblTempVendorCDR_20' ) start [2025-01-07 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197509', 'tblTempVendorCDR_20' ) end [2025-01-07 21:01:19] Production.INFO: ProcessCDR(1,14197509,1,1,2) [2025-01-07 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197509', 'tblTempUsageDetail_20' ) start [2025-01-07 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197509', 'tblTempUsageDetail_20' ) end [2025-01-07 21:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:01:23] Production.INFO: ==18431== Releasing lock... [2025-01-07 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:01:23] Production.INFO: 43 MB #Memory Used# [2025-01-07 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:02:05 [end_date_ymd] => 2025-01-07 21:02:05 [RateCDR] => 1 ) [2025-01-07 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:02:05' and `end` < '2025-01-07 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:02:18] Production.INFO: count ==1987 [2025-01-07 21:02:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:02:05 - End Time 2025-01-07 21:02:05 [2025-01-07 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197514', 'tblTempUsageDetail_20' ) start [2025-01-07 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197514', 'tblTempUsageDetail_20' ) end [2025-01-07 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197514', 'tblTempVendorCDR_20' ) start [2025-01-07 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197514', 'tblTempVendorCDR_20' ) end [2025-01-07 21:02:19] Production.INFO: ProcessCDR(1,14197514,1,1,2) [2025-01-07 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197514', 'tblTempUsageDetail_20' ) start [2025-01-07 21:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197514', 'tblTempUsageDetail_20' ) end [2025-01-07 21:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:02:24] Production.INFO: ==18503== Releasing lock... [2025-01-07 21:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:02:24] Production.INFO: 43 MB #Memory Used# [2025-01-07 21:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:03:04 [end_date_ymd] => 2025-01-07 21:03:04 [RateCDR] => 1 ) [2025-01-07 21:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:03:04' and `end` < '2025-01-07 21:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:03:18] Production.INFO: count ==1987 [2025-01-07 21:03:18] Production.ERROR: pbx CDR StartTime 2025-01-07 18:03:04 - End Time 2025-01-07 21:03:04 [2025-01-07 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197519', 'tblTempUsageDetail_20' ) start [2025-01-07 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197519', 'tblTempUsageDetail_20' ) end [2025-01-07 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197519', 'tblTempVendorCDR_20' ) start [2025-01-07 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197519', 'tblTempVendorCDR_20' ) end [2025-01-07 21:03:18] Production.INFO: ProcessCDR(1,14197519,1,1,2) [2025-01-07 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197519', 'tblTempUsageDetail_20' ) start [2025-01-07 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197519', 'tblTempUsageDetail_20' ) end [2025-01-07 21:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:03:21] Production.INFO: ==18573== Releasing lock... [2025-01-07 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:03:21] Production.INFO: 43 MB #Memory Used# [2025-01-07 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:04:05 [end_date_ymd] => 2025-01-07 21:04:05 [RateCDR] => 1 ) [2025-01-07 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:04:05' and `end` < '2025-01-07 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:04:18] Production.INFO: count ==1986 [2025-01-07 21:04:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:04:05 - End Time 2025-01-07 21:04:05 [2025-01-07 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197524', 'tblTempUsageDetail_20' ) start [2025-01-07 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197524', 'tblTempUsageDetail_20' ) end [2025-01-07 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197524', 'tblTempVendorCDR_20' ) start [2025-01-07 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197524', 'tblTempVendorCDR_20' ) end [2025-01-07 21:04:19] Production.INFO: ProcessCDR(1,14197524,1,1,2) [2025-01-07 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197524', 'tblTempUsageDetail_20' ) start [2025-01-07 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197524', 'tblTempUsageDetail_20' ) end [2025-01-07 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:04:22] Production.INFO: ==18645== Releasing lock... [2025-01-07 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:04:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-07 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:05:05 [end_date_ymd] => 2025-01-07 21:05:05 [RateCDR] => 1 ) [2025-01-07 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:05:05' and `end` < '2025-01-07 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:05:18] Production.INFO: count ==1982 [2025-01-07 21:05:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:05:05 - End Time 2025-01-07 21:05:05 [2025-01-07 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197529', 'tblTempUsageDetail_20' ) start [2025-01-07 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197529', 'tblTempUsageDetail_20' ) end [2025-01-07 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197529', 'tblTempVendorCDR_20' ) start [2025-01-07 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197529', 'tblTempVendorCDR_20' ) end [2025-01-07 21:05:19] Production.INFO: ProcessCDR(1,14197529,1,1,2) [2025-01-07 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197529', 'tblTempUsageDetail_20' ) start [2025-01-07 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197529', 'tblTempUsageDetail_20' ) end [2025-01-07 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:05:22] Production.INFO: ==18714== Releasing lock... [2025-01-07 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:05:22] Production.INFO: 43 MB #Memory Used# [2025-01-07 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:06:05 [end_date_ymd] => 2025-01-07 21:06:05 [RateCDR] => 1 ) [2025-01-07 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:06:05' and `end` < '2025-01-07 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:06:18] Production.INFO: count ==1977 [2025-01-07 21:06:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:06:05 - End Time 2025-01-07 21:06:05 [2025-01-07 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197534', 'tblTempUsageDetail_20' ) start [2025-01-07 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197534', 'tblTempUsageDetail_20' ) end [2025-01-07 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197534', 'tblTempVendorCDR_20' ) start [2025-01-07 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197534', 'tblTempVendorCDR_20' ) end [2025-01-07 21:06:19] Production.INFO: ProcessCDR(1,14197534,1,1,2) [2025-01-07 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197534', 'tblTempUsageDetail_20' ) start [2025-01-07 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197534', 'tblTempUsageDetail_20' ) end [2025-01-07 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:06:22] Production.INFO: ==18784== Releasing lock... [2025-01-07 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:06:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-07 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:07:05 [end_date_ymd] => 2025-01-07 21:07:05 [RateCDR] => 1 ) [2025-01-07 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:07:05' and `end` < '2025-01-07 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:07:19] Production.INFO: count ==1974 [2025-01-07 21:07:20] Production.ERROR: pbx CDR StartTime 2025-01-07 18:07:05 - End Time 2025-01-07 21:07:05 [2025-01-07 21:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197539', 'tblTempUsageDetail_20' ) start [2025-01-07 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197539', 'tblTempUsageDetail_20' ) end [2025-01-07 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197539', 'tblTempVendorCDR_20' ) start [2025-01-07 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197539', 'tblTempVendorCDR_20' ) end [2025-01-07 21:07:20] Production.INFO: ProcessCDR(1,14197539,1,1,2) [2025-01-07 21:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197539', 'tblTempUsageDetail_20' ) start [2025-01-07 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197539', 'tblTempUsageDetail_20' ) end [2025-01-07 21:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:07:23] Production.INFO: ==18859== Releasing lock... [2025-01-07 21:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:07:23] Production.INFO: 43 MB #Memory Used# [2025-01-07 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:08:05 [end_date_ymd] => 2025-01-07 21:08:05 [RateCDR] => 1 ) [2025-01-07 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:08:05' and `end` < '2025-01-07 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:08:18] Production.INFO: count ==1972 [2025-01-07 21:08:18] Production.ERROR: pbx CDR StartTime 2025-01-07 18:08:05 - End Time 2025-01-07 21:08:05 [2025-01-07 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197544', 'tblTempUsageDetail_20' ) start [2025-01-07 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197544', 'tblTempUsageDetail_20' ) end [2025-01-07 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197544', 'tblTempVendorCDR_20' ) start [2025-01-07 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197544', 'tblTempVendorCDR_20' ) end [2025-01-07 21:08:18] Production.INFO: ProcessCDR(1,14197544,1,1,2) [2025-01-07 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197544', 'tblTempUsageDetail_20' ) start [2025-01-07 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197544', 'tblTempUsageDetail_20' ) end [2025-01-07 21:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:08:21] Production.INFO: ==18933== Releasing lock... [2025-01-07 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:08:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-07 21:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:09:04 [end_date_ymd] => 2025-01-07 21:09:04 [RateCDR] => 1 ) [2025-01-07 21:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:09:04' and `end` < '2025-01-07 21:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:09:17] Production.INFO: count ==1974 [2025-01-07 21:09:18] Production.ERROR: pbx CDR StartTime 2025-01-07 18:09:04 - End Time 2025-01-07 21:09:04 [2025-01-07 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197549', 'tblTempUsageDetail_20' ) start [2025-01-07 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197549', 'tblTempUsageDetail_20' ) end [2025-01-07 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197549', 'tblTempVendorCDR_20' ) start [2025-01-07 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197549', 'tblTempVendorCDR_20' ) end [2025-01-07 21:09:18] Production.INFO: ProcessCDR(1,14197549,1,1,2) [2025-01-07 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197549', 'tblTempUsageDetail_20' ) start [2025-01-07 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197549', 'tblTempUsageDetail_20' ) end [2025-01-07 21:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:09:21] Production.INFO: ==19005== Releasing lock... [2025-01-07 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:09:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-07 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:10:05 [end_date_ymd] => 2025-01-07 21:10:05 [RateCDR] => 1 ) [2025-01-07 21:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:10:05' and `end` < '2025-01-07 21:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:10:19] Production.INFO: count ==1972 [2025-01-07 21:10:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:10:05 - End Time 2025-01-07 21:10:05 [2025-01-07 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197554', 'tblTempUsageDetail_20' ) start [2025-01-07 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197554', 'tblTempUsageDetail_20' ) end [2025-01-07 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197554', 'tblTempVendorCDR_20' ) start [2025-01-07 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197554', 'tblTempVendorCDR_20' ) end [2025-01-07 21:10:19] Production.INFO: ProcessCDR(1,14197554,1,1,2) [2025-01-07 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197554', 'tblTempUsageDetail_20' ) start [2025-01-07 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197554', 'tblTempUsageDetail_20' ) end [2025-01-07 21:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:10:22] Production.INFO: ==19078== Releasing lock... [2025-01-07 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:10:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-07 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:11:05 [end_date_ymd] => 2025-01-07 21:11:05 [RateCDR] => 1 ) [2025-01-07 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:11:05' and `end` < '2025-01-07 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:11:19] Production.INFO: count ==1932 [2025-01-07 21:11:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:11:05 - End Time 2025-01-07 21:11:05 [2025-01-07 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197560', 'tblTempUsageDetail_20' ) start [2025-01-07 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197560', 'tblTempUsageDetail_20' ) end [2025-01-07 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197560', 'tblTempVendorCDR_20' ) start [2025-01-07 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197560', 'tblTempVendorCDR_20' ) end [2025-01-07 21:11:19] Production.INFO: ProcessCDR(1,14197560,1,1,2) [2025-01-07 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197560', 'tblTempUsageDetail_20' ) start [2025-01-07 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197560', 'tblTempUsageDetail_20' ) end [2025-01-07 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:11:22] Production.INFO: ==19191== Releasing lock... [2025-01-07 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:11:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-07 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:12:05 [end_date_ymd] => 2025-01-07 21:12:05 [RateCDR] => 1 ) [2025-01-07 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:12:05' and `end` < '2025-01-07 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:12:19] Production.INFO: count ==1930 [2025-01-07 21:12:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:12:05 - End Time 2025-01-07 21:12:05 [2025-01-07 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197565', 'tblTempUsageDetail_20' ) start [2025-01-07 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197565', 'tblTempUsageDetail_20' ) end [2025-01-07 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197565', 'tblTempVendorCDR_20' ) start [2025-01-07 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197565', 'tblTempVendorCDR_20' ) end [2025-01-07 21:12:19] Production.INFO: ProcessCDR(1,14197565,1,1,2) [2025-01-07 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197565', 'tblTempUsageDetail_20' ) start [2025-01-07 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197565', 'tblTempUsageDetail_20' ) end [2025-01-07 21:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:12:23] Production.INFO: ==19264== Releasing lock... [2025-01-07 21:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:12:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-07 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:13:05 [end_date_ymd] => 2025-01-07 21:13:05 [RateCDR] => 1 ) [2025-01-07 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:13:05' and `end` < '2025-01-07 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:13:18] Production.INFO: count ==1927 [2025-01-07 21:13:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:13:05 - End Time 2025-01-07 21:13:05 [2025-01-07 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197570', 'tblTempUsageDetail_20' ) start [2025-01-07 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197570', 'tblTempUsageDetail_20' ) end [2025-01-07 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197570', 'tblTempVendorCDR_20' ) start [2025-01-07 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197570', 'tblTempVendorCDR_20' ) end [2025-01-07 21:13:19] Production.INFO: ProcessCDR(1,14197570,1,1,2) [2025-01-07 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197570', 'tblTempUsageDetail_20' ) start [2025-01-07 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197570', 'tblTempUsageDetail_20' ) end [2025-01-07 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:13:22] Production.INFO: ==19336== Releasing lock... [2025-01-07 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:13:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-07 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:14:05 [end_date_ymd] => 2025-01-07 21:14:05 [RateCDR] => 1 ) [2025-01-07 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:14:05' and `end` < '2025-01-07 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:14:18] Production.INFO: count ==1926 [2025-01-07 21:14:18] Production.ERROR: pbx CDR StartTime 2025-01-07 18:14:05 - End Time 2025-01-07 21:14:05 [2025-01-07 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197575', 'tblTempUsageDetail_20' ) start [2025-01-07 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197575', 'tblTempUsageDetail_20' ) end [2025-01-07 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197575', 'tblTempVendorCDR_20' ) start [2025-01-07 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197575', 'tblTempVendorCDR_20' ) end [2025-01-07 21:14:19] Production.INFO: ProcessCDR(1,14197575,1,1,2) [2025-01-07 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197575', 'tblTempUsageDetail_20' ) start [2025-01-07 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197575', 'tblTempUsageDetail_20' ) end [2025-01-07 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:14:22] Production.INFO: ==19405== Releasing lock... [2025-01-07 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:14:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-07 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:15:05 [end_date_ymd] => 2025-01-07 21:15:05 [RateCDR] => 1 ) [2025-01-07 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:15:05' and `end` < '2025-01-07 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:15:18] Production.INFO: count ==1921 [2025-01-07 21:15:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:15:05 - End Time 2025-01-07 21:15:05 [2025-01-07 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197580', 'tblTempUsageDetail_20' ) start [2025-01-07 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197580', 'tblTempUsageDetail_20' ) end [2025-01-07 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197580', 'tblTempVendorCDR_20' ) start [2025-01-07 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197580', 'tblTempVendorCDR_20' ) end [2025-01-07 21:15:19] Production.INFO: ProcessCDR(1,14197580,1,1,2) [2025-01-07 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197580', 'tblTempUsageDetail_20' ) start [2025-01-07 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197580', 'tblTempUsageDetail_20' ) end [2025-01-07 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:15:22] Production.INFO: ==19476== Releasing lock... [2025-01-07 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:15:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-07 21:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:16:04 [end_date_ymd] => 2025-01-07 21:16:04 [RateCDR] => 1 ) [2025-01-07 21:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:16:04' and `end` < '2025-01-07 21:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:16:17] Production.INFO: count ==1919 [2025-01-07 21:16:18] Production.ERROR: pbx CDR StartTime 2025-01-07 18:16:04 - End Time 2025-01-07 21:16:04 [2025-01-07 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197585', 'tblTempUsageDetail_20' ) start [2025-01-07 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197585', 'tblTempUsageDetail_20' ) end [2025-01-07 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197585', 'tblTempVendorCDR_20' ) start [2025-01-07 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197585', 'tblTempVendorCDR_20' ) end [2025-01-07 21:16:18] Production.INFO: ProcessCDR(1,14197585,1,1,2) [2025-01-07 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197585', 'tblTempUsageDetail_20' ) start [2025-01-07 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197585', 'tblTempUsageDetail_20' ) end [2025-01-07 21:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:16:21] Production.INFO: ==19546== Releasing lock... [2025-01-07 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:16:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-07 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:17:05 [end_date_ymd] => 2025-01-07 21:17:05 [RateCDR] => 1 ) [2025-01-07 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:17:05' and `end` < '2025-01-07 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:17:19] Production.INFO: count ==1908 [2025-01-07 21:17:20] Production.ERROR: pbx CDR StartTime 2025-01-07 18:17:05 - End Time 2025-01-07 21:17:05 [2025-01-07 21:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197590', 'tblTempUsageDetail_20' ) start [2025-01-07 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197590', 'tblTempUsageDetail_20' ) end [2025-01-07 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197590', 'tblTempVendorCDR_20' ) start [2025-01-07 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197590', 'tblTempVendorCDR_20' ) end [2025-01-07 21:17:20] Production.INFO: ProcessCDR(1,14197590,1,1,2) [2025-01-07 21:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197590', 'tblTempUsageDetail_20' ) start [2025-01-07 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197590', 'tblTempUsageDetail_20' ) end [2025-01-07 21:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:17:23] Production.INFO: ==19616== Releasing lock... [2025-01-07 21:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:17:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-07 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:18:05 [end_date_ymd] => 2025-01-07 21:18:05 [RateCDR] => 1 ) [2025-01-07 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:18:05' and `end` < '2025-01-07 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:18:19] Production.INFO: count ==1899 [2025-01-07 21:18:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:18:05 - End Time 2025-01-07 21:18:05 [2025-01-07 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197595', 'tblTempUsageDetail_20' ) start [2025-01-07 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197595', 'tblTempUsageDetail_20' ) end [2025-01-07 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197595', 'tblTempVendorCDR_20' ) start [2025-01-07 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197595', 'tblTempVendorCDR_20' ) end [2025-01-07 21:18:19] Production.INFO: ProcessCDR(1,14197595,1,1,2) [2025-01-07 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197595', 'tblTempUsageDetail_20' ) start [2025-01-07 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197595', 'tblTempUsageDetail_20' ) end [2025-01-07 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:18:22] Production.INFO: ==19688== Releasing lock... [2025-01-07 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:18:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-07 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:19:05 [end_date_ymd] => 2025-01-07 21:19:05 [RateCDR] => 1 ) [2025-01-07 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:19:05' and `end` < '2025-01-07 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:19:18] Production.INFO: count ==1898 [2025-01-07 21:19:18] Production.ERROR: pbx CDR StartTime 2025-01-07 18:19:05 - End Time 2025-01-07 21:19:05 [2025-01-07 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197600', 'tblTempUsageDetail_20' ) start [2025-01-07 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197600', 'tblTempUsageDetail_20' ) end [2025-01-07 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197600', 'tblTempVendorCDR_20' ) start [2025-01-07 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197600', 'tblTempVendorCDR_20' ) end [2025-01-07 21:19:18] Production.INFO: ProcessCDR(1,14197600,1,1,2) [2025-01-07 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197600', 'tblTempUsageDetail_20' ) start [2025-01-07 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197600', 'tblTempUsageDetail_20' ) end [2025-01-07 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:19:22] Production.INFO: ==19763== Releasing lock... [2025-01-07 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:19:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-07 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:20:06 [end_date_ymd] => 2025-01-07 21:20:06 [RateCDR] => 1 ) [2025-01-07 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:20:06' and `end` < '2025-01-07 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:20:19] Production.INFO: count ==1898 [2025-01-07 21:20:20] Production.ERROR: pbx CDR StartTime 2025-01-07 18:20:06 - End Time 2025-01-07 21:20:06 [2025-01-07 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197606', 'tblTempUsageDetail_20' ) start [2025-01-07 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197606', 'tblTempUsageDetail_20' ) end [2025-01-07 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197606', 'tblTempVendorCDR_20' ) start [2025-01-07 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197606', 'tblTempVendorCDR_20' ) end [2025-01-07 21:20:20] Production.INFO: ProcessCDR(1,14197606,1,1,2) [2025-01-07 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197606', 'tblTempUsageDetail_20' ) start [2025-01-07 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197606', 'tblTempUsageDetail_20' ) end [2025-01-07 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:20:23] Production.INFO: ==19836== Releasing lock... [2025-01-07 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:20:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-07 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:21:05 [end_date_ymd] => 2025-01-07 21:21:05 [RateCDR] => 1 ) [2025-01-07 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:21:05' and `end` < '2025-01-07 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:21:18] Production.INFO: count ==1851 [2025-01-07 21:21:18] Production.ERROR: pbx CDR StartTime 2025-01-07 18:21:05 - End Time 2025-01-07 21:21:05 [2025-01-07 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197611', 'tblTempUsageDetail_20' ) start [2025-01-07 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197611', 'tblTempUsageDetail_20' ) end [2025-01-07 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197611', 'tblTempVendorCDR_20' ) start [2025-01-07 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197611', 'tblTempVendorCDR_20' ) end [2025-01-07 21:21:18] Production.INFO: ProcessCDR(1,14197611,1,1,2) [2025-01-07 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197611', 'tblTempUsageDetail_20' ) start [2025-01-07 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197611', 'tblTempUsageDetail_20' ) end [2025-01-07 21:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:21:23] Production.INFO: ==19910== Releasing lock... [2025-01-07 21:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:21:23] Production.INFO: 42.25 MB #Memory Used# [2025-01-07 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:22:05 [end_date_ymd] => 2025-01-07 21:22:05 [RateCDR] => 1 ) [2025-01-07 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:22:05' and `end` < '2025-01-07 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:22:18] Production.INFO: count ==1850 [2025-01-07 21:22:18] Production.ERROR: pbx CDR StartTime 2025-01-07 18:22:05 - End Time 2025-01-07 21:22:05 [2025-01-07 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197616', 'tblTempUsageDetail_20' ) start [2025-01-07 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197616', 'tblTempUsageDetail_20' ) end [2025-01-07 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197616', 'tblTempVendorCDR_20' ) start [2025-01-07 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197616', 'tblTempVendorCDR_20' ) end [2025-01-07 21:22:18] Production.INFO: ProcessCDR(1,14197616,1,1,2) [2025-01-07 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197616', 'tblTempUsageDetail_20' ) start [2025-01-07 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197616', 'tblTempUsageDetail_20' ) end [2025-01-07 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:22:22] Production.INFO: ==19980== Releasing lock... [2025-01-07 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:22:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-07 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:23:05 [end_date_ymd] => 2025-01-07 21:23:05 [RateCDR] => 1 ) [2025-01-07 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:23:05' and `end` < '2025-01-07 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:23:20] Production.INFO: count ==1849 [2025-01-07 21:23:20] Production.ERROR: pbx CDR StartTime 2025-01-07 18:23:05 - End Time 2025-01-07 21:23:05 [2025-01-07 21:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197621', 'tblTempUsageDetail_20' ) start [2025-01-07 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197621', 'tblTempUsageDetail_20' ) end [2025-01-07 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197621', 'tblTempVendorCDR_20' ) start [2025-01-07 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197621', 'tblTempVendorCDR_20' ) end [2025-01-07 21:23:20] Production.INFO: ProcessCDR(1,14197621,1,1,2) [2025-01-07 21:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197621', 'tblTempUsageDetail_20' ) start [2025-01-07 21:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197621', 'tblTempUsageDetail_20' ) end [2025-01-07 21:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:23:24] Production.INFO: ==20052== Releasing lock... [2025-01-07 21:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:23:24] Production.INFO: 42 MB #Memory Used# [2025-01-07 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:24:05 [end_date_ymd] => 2025-01-07 21:24:05 [RateCDR] => 1 ) [2025-01-07 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:24:05' and `end` < '2025-01-07 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:24:18] Production.INFO: count ==1837 [2025-01-07 21:24:18] Production.ERROR: pbx CDR StartTime 2025-01-07 18:24:05 - End Time 2025-01-07 21:24:05 [2025-01-07 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197626', 'tblTempUsageDetail_20' ) start [2025-01-07 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197626', 'tblTempUsageDetail_20' ) end [2025-01-07 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197626', 'tblTempVendorCDR_20' ) start [2025-01-07 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197626', 'tblTempVendorCDR_20' ) end [2025-01-07 21:24:18] Production.INFO: ProcessCDR(1,14197626,1,1,2) [2025-01-07 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197626', 'tblTempUsageDetail_20' ) start [2025-01-07 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197626', 'tblTempUsageDetail_20' ) end [2025-01-07 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:24:22] Production.INFO: ==20123== Releasing lock... [2025-01-07 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:24:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-07 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:25:05 [end_date_ymd] => 2025-01-07 21:25:05 [RateCDR] => 1 ) [2025-01-07 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:25:05' and `end` < '2025-01-07 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:25:18] Production.INFO: count ==1836 [2025-01-07 21:25:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:25:05 - End Time 2025-01-07 21:25:05 [2025-01-07 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197631', 'tblTempUsageDetail_20' ) start [2025-01-07 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197631', 'tblTempUsageDetail_20' ) end [2025-01-07 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197631', 'tblTempVendorCDR_20' ) start [2025-01-07 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197631', 'tblTempVendorCDR_20' ) end [2025-01-07 21:25:19] Production.INFO: ProcessCDR(1,14197631,1,1,2) [2025-01-07 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197631', 'tblTempUsageDetail_20' ) start [2025-01-07 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197631', 'tblTempUsageDetail_20' ) end [2025-01-07 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:25:22] Production.INFO: ==20198== Releasing lock... [2025-01-07 21:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:25:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-07 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:26:05 [end_date_ymd] => 2025-01-07 21:26:05 [RateCDR] => 1 ) [2025-01-07 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:26:05' and `end` < '2025-01-07 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:26:18] Production.INFO: count ==1828 [2025-01-07 21:26:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:26:05 - End Time 2025-01-07 21:26:05 [2025-01-07 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197636', 'tblTempUsageDetail_20' ) start [2025-01-07 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197636', 'tblTempUsageDetail_20' ) end [2025-01-07 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197636', 'tblTempVendorCDR_20' ) start [2025-01-07 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197636', 'tblTempVendorCDR_20' ) end [2025-01-07 21:26:19] Production.INFO: ProcessCDR(1,14197636,1,1,2) [2025-01-07 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197636', 'tblTempUsageDetail_20' ) start [2025-01-07 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197636', 'tblTempUsageDetail_20' ) end [2025-01-07 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:26:22] Production.INFO: ==20268== Releasing lock... [2025-01-07 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:26:22] Production.INFO: 42 MB #Memory Used# [2025-01-07 21:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:27:04 [end_date_ymd] => 2025-01-07 21:27:04 [RateCDR] => 1 ) [2025-01-07 21:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:27:04' and `end` < '2025-01-07 21:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:27:19] Production.INFO: count ==1827 [2025-01-07 21:27:20] Production.ERROR: pbx CDR StartTime 2025-01-07 18:27:04 - End Time 2025-01-07 21:27:04 [2025-01-07 21:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197641', 'tblTempUsageDetail_20' ) start [2025-01-07 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197641', 'tblTempUsageDetail_20' ) end [2025-01-07 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197641', 'tblTempVendorCDR_20' ) start [2025-01-07 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197641', 'tblTempVendorCDR_20' ) end [2025-01-07 21:27:20] Production.INFO: ProcessCDR(1,14197641,1,1,2) [2025-01-07 21:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197641', 'tblTempUsageDetail_20' ) start [2025-01-07 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197641', 'tblTempUsageDetail_20' ) end [2025-01-07 21:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:27:23] Production.INFO: ==20377== Releasing lock... [2025-01-07 21:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:27:23] Production.INFO: 42 MB #Memory Used# [2025-01-07 21:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:28:04 [end_date_ymd] => 2025-01-07 21:28:04 [RateCDR] => 1 ) [2025-01-07 21:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:28:04' and `end` < '2025-01-07 21:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:28:17] Production.INFO: count ==1826 [2025-01-07 21:28:18] Production.ERROR: pbx CDR StartTime 2025-01-07 18:28:04 - End Time 2025-01-07 21:28:04 [2025-01-07 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197646', 'tblTempUsageDetail_20' ) start [2025-01-07 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197646', 'tblTempUsageDetail_20' ) end [2025-01-07 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197646', 'tblTempVendorCDR_20' ) start [2025-01-07 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197646', 'tblTempVendorCDR_20' ) end [2025-01-07 21:28:18] Production.INFO: ProcessCDR(1,14197646,1,1,2) [2025-01-07 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197646', 'tblTempUsageDetail_20' ) start [2025-01-07 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197646', 'tblTempUsageDetail_20' ) end [2025-01-07 21:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:28:23] Production.INFO: ==20451== Releasing lock... [2025-01-07 21:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:28:23] Production.INFO: 42 MB #Memory Used# [2025-01-07 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:29:05 [end_date_ymd] => 2025-01-07 21:29:05 [RateCDR] => 1 ) [2025-01-07 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:29:05' and `end` < '2025-01-07 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:29:19] Production.INFO: count ==1826 [2025-01-07 21:29:20] Production.ERROR: pbx CDR StartTime 2025-01-07 18:29:05 - End Time 2025-01-07 21:29:05 [2025-01-07 21:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197651', 'tblTempUsageDetail_20' ) start [2025-01-07 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197651', 'tblTempUsageDetail_20' ) end [2025-01-07 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197651', 'tblTempVendorCDR_20' ) start [2025-01-07 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197651', 'tblTempVendorCDR_20' ) end [2025-01-07 21:29:20] Production.INFO: ProcessCDR(1,14197651,1,1,2) [2025-01-07 21:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197651', 'tblTempUsageDetail_20' ) start [2025-01-07 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197651', 'tblTempUsageDetail_20' ) end [2025-01-07 21:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:29:23] Production.INFO: ==20521== Releasing lock... [2025-01-07 21:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:29:23] Production.INFO: 42.25 MB #Memory Used# [2025-01-07 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:30:05 [end_date_ymd] => 2025-01-07 21:30:05 [RateCDR] => 1 ) [2025-01-07 21:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:30:05' and `end` < '2025-01-07 21:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:30:18] Production.INFO: count ==1830 [2025-01-07 21:30:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:30:05 - End Time 2025-01-07 21:30:05 [2025-01-07 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197657', 'tblTempUsageDetail_20' ) start [2025-01-07 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197657', 'tblTempUsageDetail_20' ) end [2025-01-07 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197657', 'tblTempVendorCDR_20' ) start [2025-01-07 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197657', 'tblTempVendorCDR_20' ) end [2025-01-07 21:30:19] Production.INFO: ProcessCDR(1,14197657,1,1,2) [2025-01-07 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197657', 'tblTempUsageDetail_20' ) start [2025-01-07 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197657', 'tblTempUsageDetail_20' ) end [2025-01-07 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:30:22] Production.INFO: ==20593== Releasing lock... [2025-01-07 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:30:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-07 21:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:31:06 [end_date_ymd] => 2025-01-07 21:31:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 18:31:06' and `end` < '2025-01-07 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-01-07 21:31:19] Production.INFO: count ==1778 [2025-01-07 21:31:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:31:06 - End Time 2025-01-07 21:31:06 [2025-01-07 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197662', 'tblTempUsageDetail_20' ) start [2025-01-07 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197662', 'tblTempUsageDetail_20' ) end [2025-01-07 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197662', 'tblTempVendorCDR_20' ) start [2025-01-07 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197662', 'tblTempVendorCDR_20' ) end [2025-01-07 21:31:19] Production.INFO: ProcessCDR(1,14197662,1,1,2) [2025-01-07 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197662', 'tblTempUsageDetail_20' ) start [2025-01-07 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197662', 'tblTempUsageDetail_20' ) end [2025-01-07 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:31:22] Production.INFO: ==20668== Releasing lock... [2025-01-07 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:31:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-07 21:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:32:04 [end_date_ymd] => 2025-01-07 21:32:04 [RateCDR] => 1 ) [2025-01-07 21:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:32:04' and `end` < '2025-01-07 21:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:32:18] Production.INFO: count ==1776 [2025-01-07 21:32:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:32:04 - End Time 2025-01-07 21:32:04 [2025-01-07 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197667', 'tblTempUsageDetail_20' ) start [2025-01-07 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197667', 'tblTempUsageDetail_20' ) end [2025-01-07 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197667', 'tblTempVendorCDR_20' ) start [2025-01-07 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197667', 'tblTempVendorCDR_20' ) end [2025-01-07 21:32:19] Production.INFO: ProcessCDR(1,14197667,1,1,2) [2025-01-07 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197667', 'tblTempUsageDetail_20' ) start [2025-01-07 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197667', 'tblTempUsageDetail_20' ) end [2025-01-07 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:32:22] Production.INFO: ==20737== Releasing lock... [2025-01-07 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:32:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-07 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:33:05 [end_date_ymd] => 2025-01-07 21:33:05 [RateCDR] => 1 ) [2025-01-07 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:33:05' and `end` < '2025-01-07 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:33:20] Production.INFO: count ==1776 [2025-01-07 21:33:20] Production.ERROR: pbx CDR StartTime 2025-01-07 18:33:05 - End Time 2025-01-07 21:33:05 [2025-01-07 21:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197672', 'tblTempUsageDetail_20' ) start [2025-01-07 21:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197672', 'tblTempUsageDetail_20' ) end [2025-01-07 21:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197672', 'tblTempVendorCDR_20' ) start [2025-01-07 21:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197672', 'tblTempVendorCDR_20' ) end [2025-01-07 21:33:21] Production.INFO: ProcessCDR(1,14197672,1,1,2) [2025-01-07 21:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197672', 'tblTempUsageDetail_20' ) start [2025-01-07 21:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197672', 'tblTempUsageDetail_20' ) end [2025-01-07 21:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:33:24] Production.INFO: ==20810== Releasing lock... [2025-01-07 21:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:33:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-07 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:34:05 [end_date_ymd] => 2025-01-07 21:34:05 [RateCDR] => 1 ) [2025-01-07 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:34:05' and `end` < '2025-01-07 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:34:20] Production.INFO: count ==1752 [2025-01-07 21:34:20] Production.ERROR: pbx CDR StartTime 2025-01-07 18:34:05 - End Time 2025-01-07 21:34:05 [2025-01-07 21:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197677', 'tblTempUsageDetail_20' ) start [2025-01-07 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197677', 'tblTempUsageDetail_20' ) end [2025-01-07 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197677', 'tblTempVendorCDR_20' ) start [2025-01-07 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197677', 'tblTempVendorCDR_20' ) end [2025-01-07 21:34:20] Production.INFO: ProcessCDR(1,14197677,1,1,2) [2025-01-07 21:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197677', 'tblTempUsageDetail_20' ) start [2025-01-07 21:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197677', 'tblTempUsageDetail_20' ) end [2025-01-07 21:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:34:24] Production.INFO: ==20880== Releasing lock... [2025-01-07 21:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:34:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-07 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:35:05 [end_date_ymd] => 2025-01-07 21:35:05 [RateCDR] => 1 ) [2025-01-07 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:35:05' and `end` < '2025-01-07 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:35:18] Production.INFO: count ==1751 [2025-01-07 21:35:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:35:05 - End Time 2025-01-07 21:35:05 [2025-01-07 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197682', 'tblTempUsageDetail_20' ) start [2025-01-07 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197682', 'tblTempUsageDetail_20' ) end [2025-01-07 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197682', 'tblTempVendorCDR_20' ) start [2025-01-07 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197682', 'tblTempVendorCDR_20' ) end [2025-01-07 21:35:19] Production.INFO: ProcessCDR(1,14197682,1,1,2) [2025-01-07 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197682', 'tblTempUsageDetail_20' ) start [2025-01-07 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197682', 'tblTempUsageDetail_20' ) end [2025-01-07 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:35:22] Production.INFO: ==20956== Releasing lock... [2025-01-07 21:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:35:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-07 21:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:36:06 [end_date_ymd] => 2025-01-07 21:36:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 18:36:06' and `end` < '2025-01-07 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-01-07 21:36:21] Production.INFO: count ==1750 [2025-01-07 21:36:21] Production.ERROR: pbx CDR StartTime 2025-01-07 18:36:06 - End Time 2025-01-07 21:36:06 [2025-01-07 21:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197687', 'tblTempUsageDetail_20' ) start [2025-01-07 21:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197687', 'tblTempUsageDetail_20' ) end [2025-01-07 21:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197687', 'tblTempVendorCDR_20' ) start [2025-01-07 21:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197687', 'tblTempVendorCDR_20' ) end [2025-01-07 21:36:21] Production.INFO: ProcessCDR(1,14197687,1,1,2) [2025-01-07 21:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197687', 'tblTempUsageDetail_20' ) start [2025-01-07 21:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197687', 'tblTempUsageDetail_20' ) end [2025-01-07 21:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:36:24] Production.INFO: ==21026== Releasing lock... [2025-01-07 21:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:36:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-07 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:37:05 [end_date_ymd] => 2025-01-07 21:37:05 [RateCDR] => 1 ) [2025-01-07 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:37:05' and `end` < '2025-01-07 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:37:18] Production.INFO: count ==1753 [2025-01-07 21:37:18] Production.ERROR: pbx CDR StartTime 2025-01-07 18:37:05 - End Time 2025-01-07 21:37:05 [2025-01-07 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197692', 'tblTempUsageDetail_20' ) start [2025-01-07 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197692', 'tblTempUsageDetail_20' ) end [2025-01-07 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197692', 'tblTempVendorCDR_20' ) start [2025-01-07 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197692', 'tblTempVendorCDR_20' ) end [2025-01-07 21:37:18] Production.INFO: ProcessCDR(1,14197692,1,1,2) [2025-01-07 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197692', 'tblTempUsageDetail_20' ) start [2025-01-07 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197692', 'tblTempUsageDetail_20' ) end [2025-01-07 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:37:22] Production.INFO: ==21101== Releasing lock... [2025-01-07 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:37:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-07 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:38:05 [end_date_ymd] => 2025-01-07 21:38:05 [RateCDR] => 1 ) [2025-01-07 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:38:05' and `end` < '2025-01-07 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:38:19] Production.INFO: count ==1754 [2025-01-07 21:38:20] Production.ERROR: pbx CDR StartTime 2025-01-07 18:38:05 - End Time 2025-01-07 21:38:05 [2025-01-07 21:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197697', 'tblTempUsageDetail_20' ) start [2025-01-07 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197697', 'tblTempUsageDetail_20' ) end [2025-01-07 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197697', 'tblTempVendorCDR_20' ) start [2025-01-07 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197697', 'tblTempVendorCDR_20' ) end [2025-01-07 21:38:20] Production.INFO: ProcessCDR(1,14197697,1,1,2) [2025-01-07 21:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197697', 'tblTempUsageDetail_20' ) start [2025-01-07 21:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197697', 'tblTempUsageDetail_20' ) end [2025-01-07 21:38:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:38:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:38:24] Production.INFO: ==21175== Releasing lock... [2025-01-07 21:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:38:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-07 21:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:39:04 [end_date_ymd] => 2025-01-07 21:39:04 [RateCDR] => 1 ) [2025-01-07 21:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:39:04' and `end` < '2025-01-07 21:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:39:17] Production.INFO: count ==1754 [2025-01-07 21:39:18] Production.ERROR: pbx CDR StartTime 2025-01-07 18:39:04 - End Time 2025-01-07 21:39:04 [2025-01-07 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197702', 'tblTempUsageDetail_20' ) start [2025-01-07 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197702', 'tblTempUsageDetail_20' ) end [2025-01-07 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197702', 'tblTempVendorCDR_20' ) start [2025-01-07 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197702', 'tblTempVendorCDR_20' ) end [2025-01-07 21:39:18] Production.INFO: ProcessCDR(1,14197702,1,1,2) [2025-01-07 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197702', 'tblTempUsageDetail_20' ) start [2025-01-07 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197702', 'tblTempUsageDetail_20' ) end [2025-01-07 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:39:21] Production.INFO: ==21243== Releasing lock... [2025-01-07 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:39:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-07 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:40:06 [end_date_ymd] => 2025-01-07 21:40:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 18:40:06' and `end` < '2025-01-07 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-01-07 21:40:19] Production.INFO: count ==1754 [2025-01-07 21:40:20] Production.ERROR: pbx CDR StartTime 2025-01-07 18:40:06 - End Time 2025-01-07 21:40:06 [2025-01-07 21:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197708', 'tblTempUsageDetail_20' ) start [2025-01-07 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197708', 'tblTempUsageDetail_20' ) end [2025-01-07 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197708', 'tblTempVendorCDR_20' ) start [2025-01-07 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197708', 'tblTempVendorCDR_20' ) end [2025-01-07 21:40:20] Production.INFO: ProcessCDR(1,14197708,1,1,2) [2025-01-07 21:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197708', 'tblTempUsageDetail_20' ) start [2025-01-07 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197708', 'tblTempUsageDetail_20' ) end [2025-01-07 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:40:23] Production.INFO: ==21316== Releasing lock... [2025-01-07 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:40:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-07 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:41:05 [end_date_ymd] => 2025-01-07 21:41:05 [RateCDR] => 1 ) [2025-01-07 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:41:05' and `end` < '2025-01-07 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:41:19] Production.INFO: count ==1733 [2025-01-07 21:41:20] Production.ERROR: pbx CDR StartTime 2025-01-07 18:41:05 - End Time 2025-01-07 21:41:05 [2025-01-07 21:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197713', 'tblTempUsageDetail_20' ) start [2025-01-07 21:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197713', 'tblTempUsageDetail_20' ) end [2025-01-07 21:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197713', 'tblTempVendorCDR_20' ) start [2025-01-07 21:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197713', 'tblTempVendorCDR_20' ) end [2025-01-07 21:41:20] Production.INFO: ProcessCDR(1,14197713,1,1,2) [2025-01-07 21:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197713', 'tblTempUsageDetail_20' ) start [2025-01-07 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197713', 'tblTempUsageDetail_20' ) end [2025-01-07 21:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:41:23] Production.INFO: ==21389== Releasing lock... [2025-01-07 21:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:41:23] Production.INFO: 41 MB #Memory Used# [2025-01-07 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:42:05 [end_date_ymd] => 2025-01-07 21:42:05 [RateCDR] => 1 ) [2025-01-07 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:42:05' and `end` < '2025-01-07 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:42:18] Production.INFO: count ==1732 [2025-01-07 21:42:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:42:05 - End Time 2025-01-07 21:42:05 [2025-01-07 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197718', 'tblTempUsageDetail_20' ) start [2025-01-07 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197718', 'tblTempUsageDetail_20' ) end [2025-01-07 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197718', 'tblTempVendorCDR_20' ) start [2025-01-07 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197718', 'tblTempVendorCDR_20' ) end [2025-01-07 21:42:19] Production.INFO: ProcessCDR(1,14197718,1,1,2) [2025-01-07 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197718', 'tblTempUsageDetail_20' ) start [2025-01-07 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197718', 'tblTempUsageDetail_20' ) end [2025-01-07 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:42:22] Production.INFO: ==21460== Releasing lock... [2025-01-07 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:42:22] Production.INFO: 41 MB #Memory Used# [2025-01-07 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:43:05 [end_date_ymd] => 2025-01-07 21:43:05 [RateCDR] => 1 ) [2025-01-07 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:43:05' and `end` < '2025-01-07 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:43:18] Production.INFO: count ==1731 [2025-01-07 21:43:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:43:05 - End Time 2025-01-07 21:43:05 [2025-01-07 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197723', 'tblTempUsageDetail_20' ) start [2025-01-07 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197723', 'tblTempUsageDetail_20' ) end [2025-01-07 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197723', 'tblTempVendorCDR_20' ) start [2025-01-07 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197723', 'tblTempVendorCDR_20' ) end [2025-01-07 21:43:19] Production.INFO: ProcessCDR(1,14197723,1,1,2) [2025-01-07 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197723', 'tblTempUsageDetail_20' ) start [2025-01-07 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197723', 'tblTempUsageDetail_20' ) end [2025-01-07 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:43:22] Production.INFO: ==21570== Releasing lock... [2025-01-07 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:43:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-07 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:44:05 [end_date_ymd] => 2025-01-07 21:44:05 [RateCDR] => 1 ) [2025-01-07 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:44:05' and `end` < '2025-01-07 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:44:19] Production.INFO: count ==1731 [2025-01-07 21:44:20] Production.ERROR: pbx CDR StartTime 2025-01-07 18:44:05 - End Time 2025-01-07 21:44:05 [2025-01-07 21:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197728', 'tblTempUsageDetail_20' ) start [2025-01-07 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197728', 'tblTempUsageDetail_20' ) end [2025-01-07 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197728', 'tblTempVendorCDR_20' ) start [2025-01-07 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197728', 'tblTempVendorCDR_20' ) end [2025-01-07 21:44:20] Production.INFO: ProcessCDR(1,14197728,1,1,2) [2025-01-07 21:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197728', 'tblTempUsageDetail_20' ) start [2025-01-07 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197728', 'tblTempUsageDetail_20' ) end [2025-01-07 21:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:44:23] Production.INFO: ==21640== Releasing lock... [2025-01-07 21:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:44:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-07 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:45:05 [end_date_ymd] => 2025-01-07 21:45:05 [RateCDR] => 1 ) [2025-01-07 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:45:05' and `end` < '2025-01-07 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:45:19] Production.INFO: count ==1719 [2025-01-07 21:45:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:45:05 - End Time 2025-01-07 21:45:05 [2025-01-07 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197733', 'tblTempUsageDetail_20' ) start [2025-01-07 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197733', 'tblTempUsageDetail_20' ) end [2025-01-07 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197733', 'tblTempVendorCDR_20' ) start [2025-01-07 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197733', 'tblTempVendorCDR_20' ) end [2025-01-07 21:45:19] Production.INFO: ProcessCDR(1,14197733,1,1,2) [2025-01-07 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197733', 'tblTempUsageDetail_20' ) start [2025-01-07 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197733', 'tblTempUsageDetail_20' ) end [2025-01-07 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:45:22] Production.INFO: ==21711== Releasing lock... [2025-01-07 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:45:22] Production.INFO: 41 MB #Memory Used# [2025-01-07 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:46:05 [end_date_ymd] => 2025-01-07 21:46:05 [RateCDR] => 1 ) [2025-01-07 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:46:05' and `end` < '2025-01-07 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:46:19] Production.INFO: count ==1719 [2025-01-07 21:46:20] Production.ERROR: pbx CDR StartTime 2025-01-07 18:46:05 - End Time 2025-01-07 21:46:05 [2025-01-07 21:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197738', 'tblTempUsageDetail_20' ) start [2025-01-07 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197738', 'tblTempUsageDetail_20' ) end [2025-01-07 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197738', 'tblTempVendorCDR_20' ) start [2025-01-07 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197738', 'tblTempVendorCDR_20' ) end [2025-01-07 21:46:20] Production.INFO: ProcessCDR(1,14197738,1,1,2) [2025-01-07 21:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197738', 'tblTempUsageDetail_20' ) start [2025-01-07 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197738', 'tblTempUsageDetail_20' ) end [2025-01-07 21:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:46:23] Production.INFO: ==21782== Releasing lock... [2025-01-07 21:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:46:23] Production.INFO: 41 MB #Memory Used# [2025-01-07 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:47:05 [end_date_ymd] => 2025-01-07 21:47:05 [RateCDR] => 1 ) [2025-01-07 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:47:05' and `end` < '2025-01-07 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:47:18] Production.INFO: count ==1715 [2025-01-07 21:47:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:47:05 - End Time 2025-01-07 21:47:05 [2025-01-07 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197743', 'tblTempUsageDetail_20' ) start [2025-01-07 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197743', 'tblTempUsageDetail_20' ) end [2025-01-07 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197743', 'tblTempVendorCDR_20' ) start [2025-01-07 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197743', 'tblTempVendorCDR_20' ) end [2025-01-07 21:47:19] Production.INFO: ProcessCDR(1,14197743,1,1,2) [2025-01-07 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197743', 'tblTempUsageDetail_20' ) start [2025-01-07 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197743', 'tblTempUsageDetail_20' ) end [2025-01-07 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:47:22] Production.INFO: ==21853== Releasing lock... [2025-01-07 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:47:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-07 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:48:05 [end_date_ymd] => 2025-01-07 21:48:05 [RateCDR] => 1 ) [2025-01-07 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:48:05' and `end` < '2025-01-07 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:48:19] Production.INFO: count ==1714 [2025-01-07 21:48:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:48:05 - End Time 2025-01-07 21:48:05 [2025-01-07 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197748', 'tblTempUsageDetail_20' ) start [2025-01-07 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197748', 'tblTempUsageDetail_20' ) end [2025-01-07 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197748', 'tblTempVendorCDR_20' ) start [2025-01-07 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197748', 'tblTempVendorCDR_20' ) end [2025-01-07 21:48:20] Production.INFO: ProcessCDR(1,14197748,1,1,2) [2025-01-07 21:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197748', 'tblTempUsageDetail_20' ) start [2025-01-07 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197748', 'tblTempUsageDetail_20' ) end [2025-01-07 21:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:48:23] Production.INFO: ==21927== Releasing lock... [2025-01-07 21:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:48:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-07 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:49:05 [end_date_ymd] => 2025-01-07 21:49:05 [RateCDR] => 1 ) [2025-01-07 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:49:05' and `end` < '2025-01-07 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:49:20] Production.INFO: count ==1712 [2025-01-07 21:49:20] Production.ERROR: pbx CDR StartTime 2025-01-07 18:49:05 - End Time 2025-01-07 21:49:05 [2025-01-07 21:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197753', 'tblTempUsageDetail_20' ) start [2025-01-07 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197753', 'tblTempUsageDetail_20' ) end [2025-01-07 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197753', 'tblTempVendorCDR_20' ) start [2025-01-07 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197753', 'tblTempVendorCDR_20' ) end [2025-01-07 21:49:20] Production.INFO: ProcessCDR(1,14197753,1,1,2) [2025-01-07 21:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197753', 'tblTempUsageDetail_20' ) start [2025-01-07 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197753', 'tblTempUsageDetail_20' ) end [2025-01-07 21:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:49:24] Production.INFO: ==21999== Releasing lock... [2025-01-07 21:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:49:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-07 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:50:06 [end_date_ymd] => 2025-01-07 21:50:06 [RateCDR] => 1 ) [2025-01-07 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:50:06' and `end` < '2025-01-07 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:50:19] Production.INFO: count ==1710 [2025-01-07 21:50:20] Production.ERROR: pbx CDR StartTime 2025-01-07 18:50:06 - End Time 2025-01-07 21:50:06 [2025-01-07 21:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197759', 'tblTempUsageDetail_20' ) start [2025-01-07 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197759', 'tblTempUsageDetail_20' ) end [2025-01-07 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197759', 'tblTempVendorCDR_20' ) start [2025-01-07 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197759', 'tblTempVendorCDR_20' ) end [2025-01-07 21:50:20] Production.INFO: ProcessCDR(1,14197759,1,1,2) [2025-01-07 21:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197759', 'tblTempUsageDetail_20' ) start [2025-01-07 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197759', 'tblTempUsageDetail_20' ) end [2025-01-07 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:50:23] Production.INFO: ==22076== Releasing lock... [2025-01-07 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:50:23] Production.INFO: 41 MB #Memory Used# [2025-01-07 21:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:51:04 [end_date_ymd] => 2025-01-07 21:51:04 [RateCDR] => 1 ) [2025-01-07 21:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:51:04' and `end` < '2025-01-07 21:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:51:19] Production.INFO: count ==1672 [2025-01-07 21:51:20] Production.ERROR: pbx CDR StartTime 2025-01-07 18:51:04 - End Time 2025-01-07 21:51:04 [2025-01-07 21:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197764', 'tblTempUsageDetail_20' ) start [2025-01-07 21:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197764', 'tblTempUsageDetail_20' ) end [2025-01-07 21:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197764', 'tblTempVendorCDR_20' ) start [2025-01-07 21:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197764', 'tblTempVendorCDR_20' ) end [2025-01-07 21:51:20] Production.INFO: ProcessCDR(1,14197764,1,1,2) [2025-01-07 21:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197764', 'tblTempUsageDetail_20' ) start [2025-01-07 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197764', 'tblTempUsageDetail_20' ) end [2025-01-07 21:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:51:23] Production.INFO: ==22149== Releasing lock... [2025-01-07 21:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:51:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-07 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:52:05 [end_date_ymd] => 2025-01-07 21:52:05 [RateCDR] => 1 ) [2025-01-07 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:52:05' and `end` < '2025-01-07 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:52:20] Production.INFO: count ==1669 [2025-01-07 21:52:21] Production.ERROR: pbx CDR StartTime 2025-01-07 18:52:05 - End Time 2025-01-07 21:52:05 [2025-01-07 21:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197769', 'tblTempUsageDetail_20' ) start [2025-01-07 21:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197769', 'tblTempUsageDetail_20' ) end [2025-01-07 21:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197769', 'tblTempVendorCDR_20' ) start [2025-01-07 21:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197769', 'tblTempVendorCDR_20' ) end [2025-01-07 21:52:21] Production.INFO: ProcessCDR(1,14197769,1,1,2) [2025-01-07 21:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197769', 'tblTempUsageDetail_20' ) start [2025-01-07 21:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197769', 'tblTempUsageDetail_20' ) end [2025-01-07 21:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:52:24] Production.INFO: ==22220== Releasing lock... [2025-01-07 21:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:52:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-07 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:53:05 [end_date_ymd] => 2025-01-07 21:53:05 [RateCDR] => 1 ) [2025-01-07 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:53:05' and `end` < '2025-01-07 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:53:18] Production.INFO: count ==1662 [2025-01-07 21:53:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:53:05 - End Time 2025-01-07 21:53:05 [2025-01-07 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197774', 'tblTempUsageDetail_20' ) start [2025-01-07 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197774', 'tblTempUsageDetail_20' ) end [2025-01-07 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197774', 'tblTempVendorCDR_20' ) start [2025-01-07 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197774', 'tblTempVendorCDR_20' ) end [2025-01-07 21:53:19] Production.INFO: ProcessCDR(1,14197774,1,1,2) [2025-01-07 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197774', 'tblTempUsageDetail_20' ) start [2025-01-07 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197774', 'tblTempUsageDetail_20' ) end [2025-01-07 21:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:53:22] Production.INFO: ==22292== Releasing lock... [2025-01-07 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:53:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-07 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:54:05 [end_date_ymd] => 2025-01-07 21:54:05 [RateCDR] => 1 ) [2025-01-07 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:54:05' and `end` < '2025-01-07 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:54:18] Production.INFO: count ==1659 [2025-01-07 21:54:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:54:05 - End Time 2025-01-07 21:54:05 [2025-01-07 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197779', 'tblTempUsageDetail_20' ) start [2025-01-07 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197779', 'tblTempUsageDetail_20' ) end [2025-01-07 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197779', 'tblTempVendorCDR_20' ) start [2025-01-07 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197779', 'tblTempVendorCDR_20' ) end [2025-01-07 21:54:19] Production.INFO: ProcessCDR(1,14197779,1,1,2) [2025-01-07 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197779', 'tblTempUsageDetail_20' ) start [2025-01-07 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197779', 'tblTempUsageDetail_20' ) end [2025-01-07 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:54:22] Production.INFO: ==22361== Releasing lock... [2025-01-07 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:54:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-07 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:55:05 [end_date_ymd] => 2025-01-07 21:55:05 [RateCDR] => 1 ) [2025-01-07 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:55:05' and `end` < '2025-01-07 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:55:18] Production.INFO: count ==1657 [2025-01-07 21:55:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:55:05 - End Time 2025-01-07 21:55:05 [2025-01-07 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197784', 'tblTempUsageDetail_20' ) start [2025-01-07 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197784', 'tblTempUsageDetail_20' ) end [2025-01-07 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197784', 'tblTempVendorCDR_20' ) start [2025-01-07 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197784', 'tblTempVendorCDR_20' ) end [2025-01-07 21:55:19] Production.INFO: ProcessCDR(1,14197784,1,1,2) [2025-01-07 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197784', 'tblTempUsageDetail_20' ) start [2025-01-07 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197784', 'tblTempUsageDetail_20' ) end [2025-01-07 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:55:22] Production.INFO: ==22430== Releasing lock... [2025-01-07 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:55:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-07 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:56:05 [end_date_ymd] => 2025-01-07 21:56:05 [RateCDR] => 1 ) [2025-01-07 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:56:05' and `end` < '2025-01-07 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:56:18] Production.INFO: count ==1657 [2025-01-07 21:56:19] Production.ERROR: pbx CDR StartTime 2025-01-07 18:56:05 - End Time 2025-01-07 21:56:05 [2025-01-07 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197789', 'tblTempUsageDetail_20' ) start [2025-01-07 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197789', 'tblTempUsageDetail_20' ) end [2025-01-07 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197789', 'tblTempVendorCDR_20' ) start [2025-01-07 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197789', 'tblTempVendorCDR_20' ) end [2025-01-07 21:56:19] Production.INFO: ProcessCDR(1,14197789,1,1,2) [2025-01-07 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197789', 'tblTempUsageDetail_20' ) start [2025-01-07 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197789', 'tblTempUsageDetail_20' ) end [2025-01-07 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:56:22] Production.INFO: ==22502== Releasing lock... [2025-01-07 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:56:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-07 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:57:05 [end_date_ymd] => 2025-01-07 21:57:05 [RateCDR] => 1 ) [2025-01-07 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:57:05' and `end` < '2025-01-07 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:57:18] Production.INFO: count ==1651 [2025-01-07 21:57:18] Production.ERROR: pbx CDR StartTime 2025-01-07 18:57:05 - End Time 2025-01-07 21:57:05 [2025-01-07 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197794', 'tblTempUsageDetail_20' ) start [2025-01-07 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197794', 'tblTempUsageDetail_20' ) end [2025-01-07 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197794', 'tblTempVendorCDR_20' ) start [2025-01-07 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197794', 'tblTempVendorCDR_20' ) end [2025-01-07 21:57:18] Production.INFO: ProcessCDR(1,14197794,1,1,2) [2025-01-07 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197794', 'tblTempUsageDetail_20' ) start [2025-01-07 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197794', 'tblTempUsageDetail_20' ) end [2025-01-07 21:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:57:21] Production.INFO: ==22572== Releasing lock... [2025-01-07 21:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:57:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-07 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:58:05 [end_date_ymd] => 2025-01-07 21:58:05 [RateCDR] => 1 ) [2025-01-07 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:58:05' and `end` < '2025-01-07 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:58:18] Production.INFO: count ==1652 [2025-01-07 21:58:18] Production.ERROR: pbx CDR StartTime 2025-01-07 18:58:05 - End Time 2025-01-07 21:58:05 [2025-01-07 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197799', 'tblTempUsageDetail_20' ) start [2025-01-07 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197799', 'tblTempUsageDetail_20' ) end [2025-01-07 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197799', 'tblTempVendorCDR_20' ) start [2025-01-07 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197799', 'tblTempVendorCDR_20' ) end [2025-01-07 21:58:18] Production.INFO: ProcessCDR(1,14197799,1,1,2) [2025-01-07 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197799', 'tblTempUsageDetail_20' ) start [2025-01-07 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197799', 'tblTempUsageDetail_20' ) end [2025-01-07 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:58:22] Production.INFO: ==22684== Releasing lock... [2025-01-07 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:58:22] Production.INFO: 41 MB #Memory Used# [2025-01-07 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 18:59:05 [end_date_ymd] => 2025-01-07 21:59:05 [RateCDR] => 1 ) [2025-01-07 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 18:59:05' and `end` < '2025-01-07 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 21:59:20] Production.INFO: count ==1649 [2025-01-07 21:59:20] Production.ERROR: pbx CDR StartTime 2025-01-07 18:59:05 - End Time 2025-01-07 21:59:05 [2025-01-07 21:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 21:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197804', 'tblTempUsageDetail_20' ) start [2025-01-07 21:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197804', 'tblTempUsageDetail_20' ) end [2025-01-07 21:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197804', 'tblTempVendorCDR_20' ) start [2025-01-07 21:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197804', 'tblTempVendorCDR_20' ) end [2025-01-07 21:59:20] Production.INFO: ProcessCDR(1,14197804,1,1,2) [2025-01-07 21:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 21:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 21:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197804', 'tblTempUsageDetail_20' ) start [2025-01-07 21:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197804', 'tblTempUsageDetail_20' ) end [2025-01-07 21:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 21:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 21:59:25] Production.INFO: ==22757== Releasing lock... [2025-01-07 21:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 21:59:25] Production.INFO: 40.75 MB #Memory Used# [2025-01-07 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:00:06 [end_date_ymd] => 2025-01-07 22:00:06 [RateCDR] => 1 ) [2025-01-07 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:00:06' and `end` < '2025-01-07 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:00:19] Production.INFO: count ==1651 [2025-01-07 22:00:19] Production.ERROR: pbx CDR StartTime 2025-01-07 19:00:06 - End Time 2025-01-07 22:00:06 [2025-01-07 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197810', 'tblTempUsageDetail_20' ) start [2025-01-07 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197810', 'tblTempUsageDetail_20' ) end [2025-01-07 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197810', 'tblTempVendorCDR_20' ) start [2025-01-07 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197810', 'tblTempVendorCDR_20' ) end [2025-01-07 22:00:19] Production.INFO: ProcessCDR(1,14197810,1,1,2) [2025-01-07 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197810', 'tblTempUsageDetail_20' ) start [2025-01-07 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197810', 'tblTempUsageDetail_20' ) end [2025-01-07 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:00:23] Production.INFO: ==22831== Releasing lock... [2025-01-07 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:00:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-07 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:01:05 [end_date_ymd] => 2025-01-07 22:01:05 [RateCDR] => 1 ) [2025-01-07 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:01:05' and `end` < '2025-01-07 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:01:19] Production.INFO: count ==1636 [2025-01-07 22:01:20] Production.ERROR: pbx CDR StartTime 2025-01-07 19:01:05 - End Time 2025-01-07 22:01:05 [2025-01-07 22:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197815', 'tblTempUsageDetail_20' ) start [2025-01-07 22:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197815', 'tblTempUsageDetail_20' ) end [2025-01-07 22:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197815', 'tblTempVendorCDR_20' ) start [2025-01-07 22:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197815', 'tblTempVendorCDR_20' ) end [2025-01-07 22:01:20] Production.INFO: ProcessCDR(1,14197815,1,1,2) [2025-01-07 22:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197815', 'tblTempUsageDetail_20' ) start [2025-01-07 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197815', 'tblTempUsageDetail_20' ) end [2025-01-07 22:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:01:23] Production.INFO: ==22914== Releasing lock... [2025-01-07 22:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:01:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-07 22:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:02:04 [end_date_ymd] => 2025-01-07 22:02:04 [RateCDR] => 1 ) [2025-01-07 22:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:02:04' and `end` < '2025-01-07 22:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:02:17] Production.INFO: count ==1633 [2025-01-07 22:02:18] Production.ERROR: pbx CDR StartTime 2025-01-07 19:02:04 - End Time 2025-01-07 22:02:04 [2025-01-07 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197820', 'tblTempUsageDetail_20' ) start [2025-01-07 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197820', 'tblTempUsageDetail_20' ) end [2025-01-07 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197820', 'tblTempVendorCDR_20' ) start [2025-01-07 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197820', 'tblTempVendorCDR_20' ) end [2025-01-07 22:02:18] Production.INFO: ProcessCDR(1,14197820,1,1,2) [2025-01-07 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197820', 'tblTempUsageDetail_20' ) start [2025-01-07 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197820', 'tblTempUsageDetail_20' ) end [2025-01-07 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:02:21] Production.INFO: ==22987== Releasing lock... [2025-01-07 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:02:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-07 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:03:05 [end_date_ymd] => 2025-01-07 22:03:05 [RateCDR] => 1 ) [2025-01-07 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:03:05' and `end` < '2025-01-07 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:03:19] Production.INFO: count ==1633 [2025-01-07 22:03:20] Production.ERROR: pbx CDR StartTime 2025-01-07 19:03:05 - End Time 2025-01-07 22:03:05 [2025-01-07 22:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197825', 'tblTempUsageDetail_20' ) start [2025-01-07 22:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197825', 'tblTempUsageDetail_20' ) end [2025-01-07 22:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197825', 'tblTempVendorCDR_20' ) start [2025-01-07 22:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197825', 'tblTempVendorCDR_20' ) end [2025-01-07 22:03:20] Production.INFO: ProcessCDR(1,14197825,1,1,2) [2025-01-07 22:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197825', 'tblTempUsageDetail_20' ) start [2025-01-07 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197825', 'tblTempUsageDetail_20' ) end [2025-01-07 22:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:03:23] Production.INFO: ==23058== Releasing lock... [2025-01-07 22:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:03:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-07 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:04:05 [end_date_ymd] => 2025-01-07 22:04:05 [RateCDR] => 1 ) [2025-01-07 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:04:05' and `end` < '2025-01-07 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:04:18] Production.INFO: count ==1635 [2025-01-07 22:04:19] Production.ERROR: pbx CDR StartTime 2025-01-07 19:04:05 - End Time 2025-01-07 22:04:05 [2025-01-07 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197830', 'tblTempUsageDetail_20' ) start [2025-01-07 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197830', 'tblTempUsageDetail_20' ) end [2025-01-07 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197830', 'tblTempVendorCDR_20' ) start [2025-01-07 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197830', 'tblTempVendorCDR_20' ) end [2025-01-07 22:04:19] Production.INFO: ProcessCDR(1,14197830,1,1,2) [2025-01-07 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197830', 'tblTempUsageDetail_20' ) start [2025-01-07 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197830', 'tblTempUsageDetail_20' ) end [2025-01-07 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:04:22] Production.INFO: ==23134== Releasing lock... [2025-01-07 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:04:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-07 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:05:05 [end_date_ymd] => 2025-01-07 22:05:05 [RateCDR] => 1 ) [2025-01-07 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:05:05' and `end` < '2025-01-07 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:05:18] Production.INFO: count ==1634 [2025-01-07 22:05:18] Production.ERROR: pbx CDR StartTime 2025-01-07 19:05:05 - End Time 2025-01-07 22:05:05 [2025-01-07 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197835', 'tblTempUsageDetail_20' ) start [2025-01-07 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197835', 'tblTempUsageDetail_20' ) end [2025-01-07 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197835', 'tblTempVendorCDR_20' ) start [2025-01-07 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197835', 'tblTempVendorCDR_20' ) end [2025-01-07 22:05:18] Production.INFO: ProcessCDR(1,14197835,1,1,2) [2025-01-07 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197835', 'tblTempUsageDetail_20' ) start [2025-01-07 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197835', 'tblTempUsageDetail_20' ) end [2025-01-07 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:05:21] Production.INFO: ==23204== Releasing lock... [2025-01-07 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:05:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-07 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:06:05 [end_date_ymd] => 2025-01-07 22:06:05 [RateCDR] => 1 ) [2025-01-07 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:06:05' and `end` < '2025-01-07 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:06:20] Production.INFO: count ==1633 [2025-01-07 22:06:21] Production.ERROR: pbx CDR StartTime 2025-01-07 19:06:05 - End Time 2025-01-07 22:06:05 [2025-01-07 22:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197840', 'tblTempUsageDetail_20' ) start [2025-01-07 22:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197840', 'tblTempUsageDetail_20' ) end [2025-01-07 22:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197840', 'tblTempVendorCDR_20' ) start [2025-01-07 22:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197840', 'tblTempVendorCDR_20' ) end [2025-01-07 22:06:21] Production.INFO: ProcessCDR(1,14197840,1,1,2) [2025-01-07 22:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197840', 'tblTempUsageDetail_20' ) start [2025-01-07 22:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197840', 'tblTempUsageDetail_20' ) end [2025-01-07 22:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:06:24] Production.INFO: ==23275== Releasing lock... [2025-01-07 22:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:06:24] Production.INFO: 40.5 MB #Memory Used# [2025-01-07 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:07:05 [end_date_ymd] => 2025-01-07 22:07:05 [RateCDR] => 1 ) [2025-01-07 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:07:05' and `end` < '2025-01-07 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:07:18] Production.INFO: count ==1634 [2025-01-07 22:07:18] Production.ERROR: pbx CDR StartTime 2025-01-07 19:07:05 - End Time 2025-01-07 22:07:05 [2025-01-07 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197845', 'tblTempUsageDetail_20' ) start [2025-01-07 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197845', 'tblTempUsageDetail_20' ) end [2025-01-07 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197845', 'tblTempVendorCDR_20' ) start [2025-01-07 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197845', 'tblTempVendorCDR_20' ) end [2025-01-07 22:07:18] Production.INFO: ProcessCDR(1,14197845,1,1,2) [2025-01-07 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197845', 'tblTempUsageDetail_20' ) start [2025-01-07 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197845', 'tblTempUsageDetail_20' ) end [2025-01-07 22:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:07:23] Production.INFO: ==23347== Releasing lock... [2025-01-07 22:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:07:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-07 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:08:05 [end_date_ymd] => 2025-01-07 22:08:05 [RateCDR] => 1 ) [2025-01-07 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:08:05' and `end` < '2025-01-07 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:08:18] Production.INFO: count ==1633 [2025-01-07 22:08:19] Production.ERROR: pbx CDR StartTime 2025-01-07 19:08:05 - End Time 2025-01-07 22:08:05 [2025-01-07 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197850', 'tblTempUsageDetail_20' ) start [2025-01-07 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197850', 'tblTempUsageDetail_20' ) end [2025-01-07 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197850', 'tblTempVendorCDR_20' ) start [2025-01-07 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197850', 'tblTempVendorCDR_20' ) end [2025-01-07 22:08:19] Production.INFO: ProcessCDR(1,14197850,1,1,2) [2025-01-07 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197850', 'tblTempUsageDetail_20' ) start [2025-01-07 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197850', 'tblTempUsageDetail_20' ) end [2025-01-07 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:08:22] Production.INFO: ==23417== Releasing lock... [2025-01-07 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:08:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-07 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:09:05 [end_date_ymd] => 2025-01-07 22:09:05 [RateCDR] => 1 ) [2025-01-07 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:09:05' and `end` < '2025-01-07 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:09:18] Production.INFO: count ==1634 [2025-01-07 22:09:19] Production.ERROR: pbx CDR StartTime 2025-01-07 19:09:05 - End Time 2025-01-07 22:09:05 [2025-01-07 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197855', 'tblTempUsageDetail_20' ) start [2025-01-07 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197855', 'tblTempUsageDetail_20' ) end [2025-01-07 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197855', 'tblTempVendorCDR_20' ) start [2025-01-07 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197855', 'tblTempVendorCDR_20' ) end [2025-01-07 22:09:19] Production.INFO: ProcessCDR(1,14197855,1,1,2) [2025-01-07 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197855', 'tblTempUsageDetail_20' ) start [2025-01-07 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197855', 'tblTempUsageDetail_20' ) end [2025-01-07 22:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:09:23] Production.INFO: ==23513== Releasing lock... [2025-01-07 22:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:09:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-07 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:10:05 [end_date_ymd] => 2025-01-07 22:10:05 [RateCDR] => 1 ) [2025-01-07 22:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:10:05' and `end` < '2025-01-07 22:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:10:18] Production.INFO: count ==1637 [2025-01-07 22:10:19] Production.ERROR: pbx CDR StartTime 2025-01-07 19:10:05 - End Time 2025-01-07 22:10:05 [2025-01-07 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197861', 'tblTempUsageDetail_20' ) start [2025-01-07 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197861', 'tblTempUsageDetail_20' ) end [2025-01-07 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197861', 'tblTempVendorCDR_20' ) start [2025-01-07 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197861', 'tblTempVendorCDR_20' ) end [2025-01-07 22:10:19] Production.INFO: ProcessCDR(1,14197861,1,1,2) [2025-01-07 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197861', 'tblTempUsageDetail_20' ) start [2025-01-07 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197861', 'tblTempUsageDetail_20' ) end [2025-01-07 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:10:23] Production.INFO: ==23624== Releasing lock... [2025-01-07 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:10:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-07 22:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:11:06 [end_date_ymd] => 2025-01-07 22:11:06 [RateCDR] => 1 ) [2025-01-07 22:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:11:06' and `end` < '2025-01-07 22:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:11:19] Production.INFO: count ==1619 [2025-01-07 22:11:19] Production.ERROR: pbx CDR StartTime 2025-01-07 19:11:06 - End Time 2025-01-07 22:11:06 [2025-01-07 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197866', 'tblTempUsageDetail_20' ) start [2025-01-07 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197866', 'tblTempUsageDetail_20' ) end [2025-01-07 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197866', 'tblTempVendorCDR_20' ) start [2025-01-07 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197866', 'tblTempVendorCDR_20' ) end [2025-01-07 22:11:19] Production.INFO: ProcessCDR(1,14197866,1,1,2) [2025-01-07 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197866', 'tblTempUsageDetail_20' ) start [2025-01-07 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197866', 'tblTempUsageDetail_20' ) end [2025-01-07 22:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:11:23] Production.INFO: ==23718== Releasing lock... [2025-01-07 22:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:11:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-07 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:12:05 [end_date_ymd] => 2025-01-07 22:12:05 [RateCDR] => 1 ) [2025-01-07 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:12:05' and `end` < '2025-01-07 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:12:19] Production.INFO: count ==1619 [2025-01-07 22:12:20] Production.ERROR: pbx CDR StartTime 2025-01-07 19:12:05 - End Time 2025-01-07 22:12:05 [2025-01-07 22:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197871', 'tblTempUsageDetail_20' ) start [2025-01-07 22:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197871', 'tblTempUsageDetail_20' ) end [2025-01-07 22:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197871', 'tblTempVendorCDR_20' ) start [2025-01-07 22:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197871', 'tblTempVendorCDR_20' ) end [2025-01-07 22:12:20] Production.INFO: ProcessCDR(1,14197871,1,1,2) [2025-01-07 22:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197871', 'tblTempUsageDetail_20' ) start [2025-01-07 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197871', 'tblTempUsageDetail_20' ) end [2025-01-07 22:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:12:23] Production.INFO: ==23790== Releasing lock... [2025-01-07 22:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:12:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-07 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:13:05 [end_date_ymd] => 2025-01-07 22:13:05 [RateCDR] => 1 ) [2025-01-07 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:13:05' and `end` < '2025-01-07 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:13:20] Production.INFO: count ==1618 [2025-01-07 22:13:21] Production.ERROR: pbx CDR StartTime 2025-01-07 19:13:05 - End Time 2025-01-07 22:13:05 [2025-01-07 22:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197876', 'tblTempUsageDetail_20' ) start [2025-01-07 22:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197876', 'tblTempUsageDetail_20' ) end [2025-01-07 22:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197876', 'tblTempVendorCDR_20' ) start [2025-01-07 22:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197876', 'tblTempVendorCDR_20' ) end [2025-01-07 22:13:21] Production.INFO: ProcessCDR(1,14197876,1,1,2) [2025-01-07 22:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197876', 'tblTempUsageDetail_20' ) start [2025-01-07 22:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197876', 'tblTempUsageDetail_20' ) end [2025-01-07 22:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:13:24] Production.INFO: ==23863== Releasing lock... [2025-01-07 22:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:13:24] Production.INFO: 40.5 MB #Memory Used# [2025-01-07 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:14:05 [end_date_ymd] => 2025-01-07 22:14:05 [RateCDR] => 1 ) [2025-01-07 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:14:05' and `end` < '2025-01-07 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:14:18] Production.INFO: count ==1613 [2025-01-07 22:14:18] Production.ERROR: pbx CDR StartTime 2025-01-07 19:14:05 - End Time 2025-01-07 22:14:05 [2025-01-07 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197881', 'tblTempUsageDetail_20' ) start [2025-01-07 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197881', 'tblTempUsageDetail_20' ) end [2025-01-07 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197881', 'tblTempVendorCDR_20' ) start [2025-01-07 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197881', 'tblTempVendorCDR_20' ) end [2025-01-07 22:14:18] Production.INFO: ProcessCDR(1,14197881,1,1,2) [2025-01-07 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197881', 'tblTempUsageDetail_20' ) start [2025-01-07 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197881', 'tblTempUsageDetail_20' ) end [2025-01-07 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:14:21] Production.INFO: ==23971== Releasing lock... [2025-01-07 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:14:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-07 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:15:05 [end_date_ymd] => 2025-01-07 22:15:05 [RateCDR] => 1 ) [2025-01-07 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:15:05' and `end` < '2025-01-07 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:15:18] Production.INFO: count ==1614 [2025-01-07 22:15:19] Production.ERROR: pbx CDR StartTime 2025-01-07 19:15:05 - End Time 2025-01-07 22:15:05 [2025-01-07 22:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197886', 'tblTempUsageDetail_20' ) start [2025-01-07 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197886', 'tblTempUsageDetail_20' ) end [2025-01-07 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197886', 'tblTempVendorCDR_20' ) start [2025-01-07 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197886', 'tblTempVendorCDR_20' ) end [2025-01-07 22:15:19] Production.INFO: ProcessCDR(1,14197886,1,1,2) [2025-01-07 22:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197886', 'tblTempUsageDetail_20' ) start [2025-01-07 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197886', 'tblTempUsageDetail_20' ) end [2025-01-07 22:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:15:24] Production.INFO: ==24044== Releasing lock... [2025-01-07 22:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:15:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-07 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:16:05 [end_date_ymd] => 2025-01-07 22:16:05 [RateCDR] => 1 ) [2025-01-07 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:16:05' and `end` < '2025-01-07 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:16:18] Production.INFO: count ==1614 [2025-01-07 22:16:18] Production.ERROR: pbx CDR StartTime 2025-01-07 19:16:05 - End Time 2025-01-07 22:16:05 [2025-01-07 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197891', 'tblTempUsageDetail_20' ) start [2025-01-07 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197891', 'tblTempUsageDetail_20' ) end [2025-01-07 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197891', 'tblTempVendorCDR_20' ) start [2025-01-07 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197891', 'tblTempVendorCDR_20' ) end [2025-01-07 22:16:18] Production.INFO: ProcessCDR(1,14197891,1,1,2) [2025-01-07 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197891', 'tblTempUsageDetail_20' ) start [2025-01-07 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197891', 'tblTempUsageDetail_20' ) end [2025-01-07 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:16:22] Production.INFO: ==24117== Releasing lock... [2025-01-07 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:16:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-07 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:17:05 [end_date_ymd] => 2025-01-07 22:17:05 [RateCDR] => 1 ) [2025-01-07 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:17:05' and `end` < '2025-01-07 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:17:18] Production.INFO: count ==1614 [2025-01-07 22:17:19] Production.ERROR: pbx CDR StartTime 2025-01-07 19:17:05 - End Time 2025-01-07 22:17:05 [2025-01-07 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197896', 'tblTempUsageDetail_20' ) start [2025-01-07 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197896', 'tblTempUsageDetail_20' ) end [2025-01-07 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197896', 'tblTempVendorCDR_20' ) start [2025-01-07 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197896', 'tblTempVendorCDR_20' ) end [2025-01-07 22:17:19] Production.INFO: ProcessCDR(1,14197896,1,1,2) [2025-01-07 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197896', 'tblTempUsageDetail_20' ) start [2025-01-07 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197896', 'tblTempUsageDetail_20' ) end [2025-01-07 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:17:22] Production.INFO: ==24189== Releasing lock... [2025-01-07 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:17:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-07 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:18:04 [end_date_ymd] => 2025-01-07 22:18:04 [RateCDR] => 1 ) [2025-01-07 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:18:04' and `end` < '2025-01-07 22:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:18:19] Production.INFO: count ==1615 [2025-01-07 22:18:19] Production.ERROR: pbx CDR StartTime 2025-01-07 19:18:04 - End Time 2025-01-07 22:18:04 [2025-01-07 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197901', 'tblTempUsageDetail_20' ) start [2025-01-07 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197901', 'tblTempUsageDetail_20' ) end [2025-01-07 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197901', 'tblTempVendorCDR_20' ) start [2025-01-07 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197901', 'tblTempVendorCDR_20' ) end [2025-01-07 22:18:19] Production.INFO: ProcessCDR(1,14197901,1,1,2) [2025-01-07 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197901', 'tblTempUsageDetail_20' ) start [2025-01-07 22:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197901', 'tblTempUsageDetail_20' ) end [2025-01-07 22:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:18:24] Production.INFO: ==24259== Releasing lock... [2025-01-07 22:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:18:24] Production.INFO: 40.5 MB #Memory Used# [2025-01-07 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:19:05 [end_date_ymd] => 2025-01-07 22:19:05 [RateCDR] => 1 ) [2025-01-07 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:19:05' and `end` < '2025-01-07 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:19:18] Production.INFO: count ==1613 [2025-01-07 22:19:18] Production.ERROR: pbx CDR StartTime 2025-01-07 19:19:05 - End Time 2025-01-07 22:19:05 [2025-01-07 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197906', 'tblTempUsageDetail_20' ) start [2025-01-07 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197906', 'tblTempUsageDetail_20' ) end [2025-01-07 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197906', 'tblTempVendorCDR_20' ) start [2025-01-07 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197906', 'tblTempVendorCDR_20' ) end [2025-01-07 22:19:18] Production.INFO: ProcessCDR(1,14197906,1,1,2) [2025-01-07 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197906', 'tblTempUsageDetail_20' ) start [2025-01-07 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197906', 'tblTempUsageDetail_20' ) end [2025-01-07 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:19:22] Production.INFO: ==24330== Releasing lock... [2025-01-07 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:19:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-07 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:20:05 [end_date_ymd] => 2025-01-07 22:20:05 [RateCDR] => 1 ) [2025-01-07 22:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:20:05' and `end` < '2025-01-07 22:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:20:18] Production.INFO: count ==1611 [2025-01-07 22:20:19] Production.ERROR: pbx CDR StartTime 2025-01-07 19:20:05 - End Time 2025-01-07 22:20:05 [2025-01-07 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197912', 'tblTempUsageDetail_20' ) start [2025-01-07 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197912', 'tblTempUsageDetail_20' ) end [2025-01-07 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197912', 'tblTempVendorCDR_20' ) start [2025-01-07 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197912', 'tblTempVendorCDR_20' ) end [2025-01-07 22:20:19] Production.INFO: ProcessCDR(1,14197912,1,1,2) [2025-01-07 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197912', 'tblTempUsageDetail_20' ) start [2025-01-07 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197912', 'tblTempUsageDetail_20' ) end [2025-01-07 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:20:22] Production.INFO: ==24402== Releasing lock... [2025-01-07 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:20:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-07 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:21:05 [end_date_ymd] => 2025-01-07 22:21:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 19:21:05' and `end` < '2025-01-07 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-01-07 22:21:21] Production.INFO: count ==1578 [2025-01-07 22:21:21] Production.ERROR: pbx CDR StartTime 2025-01-07 19:21:05 - End Time 2025-01-07 22:21:05 [2025-01-07 22:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197917', 'tblTempUsageDetail_20' ) start [2025-01-07 22:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197917', 'tblTempUsageDetail_20' ) end [2025-01-07 22:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197917', 'tblTempVendorCDR_20' ) start [2025-01-07 22:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197917', 'tblTempVendorCDR_20' ) end [2025-01-07 22:21:21] Production.INFO: ProcessCDR(1,14197917,1,1,2) [2025-01-07 22:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197917', 'tblTempUsageDetail_20' ) start [2025-01-07 22:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197917', 'tblTempUsageDetail_20' ) end [2025-01-07 22:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:21:24] Production.INFO: ==24476== Releasing lock... [2025-01-07 22:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:21:24] Production.INFO: 40.25 MB #Memory Used# [2025-01-07 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:22:05 [end_date_ymd] => 2025-01-07 22:22:05 [RateCDR] => 1 ) [2025-01-07 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:22:05' and `end` < '2025-01-07 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:22:21] Production.INFO: count ==1577 [2025-01-07 22:22:22] Production.ERROR: pbx CDR StartTime 2025-01-07 19:22:05 - End Time 2025-01-07 22:22:05 [2025-01-07 22:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197922', 'tblTempUsageDetail_20' ) start [2025-01-07 22:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197922', 'tblTempUsageDetail_20' ) end [2025-01-07 22:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197922', 'tblTempVendorCDR_20' ) start [2025-01-07 22:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197922', 'tblTempVendorCDR_20' ) end [2025-01-07 22:22:22] Production.INFO: ProcessCDR(1,14197922,1,1,2) [2025-01-07 22:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197922', 'tblTempUsageDetail_20' ) start [2025-01-07 22:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197922', 'tblTempUsageDetail_20' ) end [2025-01-07 22:22:27] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:22:27] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:22:27] Production.INFO: ==24546== Releasing lock... [2025-01-07 22:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:22:27] Production.INFO: 40 MB #Memory Used# [2025-01-07 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:23:05 [end_date_ymd] => 2025-01-07 22:23:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 19:23:05' and `end` < '2025-01-07 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-01-07 22:23:18] Production.INFO: count ==1576 [2025-01-07 22:23:19] Production.ERROR: pbx CDR StartTime 2025-01-07 19:23:05 - End Time 2025-01-07 22:23:05 [2025-01-07 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197927', 'tblTempUsageDetail_20' ) start [2025-01-07 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197927', 'tblTempUsageDetail_20' ) end [2025-01-07 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197927', 'tblTempVendorCDR_20' ) start [2025-01-07 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197927', 'tblTempVendorCDR_20' ) end [2025-01-07 22:23:19] Production.INFO: ProcessCDR(1,14197927,1,1,2) [2025-01-07 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197927', 'tblTempUsageDetail_20' ) start [2025-01-07 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197927', 'tblTempUsageDetail_20' ) end [2025-01-07 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:23:22] Production.INFO: ==24619== Releasing lock... [2025-01-07 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:23:22] Production.INFO: 40 MB #Memory Used# [2025-01-07 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:24:05 [end_date_ymd] => 2025-01-07 22:24:05 [RateCDR] => 1 ) [2025-01-07 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:24:05' and `end` < '2025-01-07 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:24:19] Production.INFO: count ==1576 [2025-01-07 22:24:20] Production.ERROR: pbx CDR StartTime 2025-01-07 19:24:05 - End Time 2025-01-07 22:24:05 [2025-01-07 22:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197931', 'tblTempUsageDetail_20' ) start [2025-01-07 22:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197931', 'tblTempUsageDetail_20' ) end [2025-01-07 22:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197931', 'tblTempVendorCDR_20' ) start [2025-01-07 22:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197931', 'tblTempVendorCDR_20' ) end [2025-01-07 22:24:20] Production.INFO: ProcessCDR(1,14197931,1,1,2) [2025-01-07 22:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197931', 'tblTempUsageDetail_20' ) start [2025-01-07 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197931', 'tblTempUsageDetail_20' ) end [2025-01-07 22:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:24:23] Production.INFO: ==24690== Releasing lock... [2025-01-07 22:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:24:23] Production.INFO: 40 MB #Memory Used# [2025-01-07 22:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:25:04 [end_date_ymd] => 2025-01-07 22:25:04 [RateCDR] => 1 ) [2025-01-07 22:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:25:04' and `end` < '2025-01-07 22:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:25:17] Production.INFO: count ==1576 [2025-01-07 22:25:18] Production.ERROR: pbx CDR StartTime 2025-01-07 19:25:04 - End Time 2025-01-07 22:25:04 [2025-01-07 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197937', 'tblTempUsageDetail_20' ) start [2025-01-07 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197937', 'tblTempUsageDetail_20' ) end [2025-01-07 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197937', 'tblTempVendorCDR_20' ) start [2025-01-07 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197937', 'tblTempVendorCDR_20' ) end [2025-01-07 22:25:18] Production.INFO: ProcessCDR(1,14197937,1,1,2) [2025-01-07 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197937', 'tblTempUsageDetail_20' ) start [2025-01-07 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197937', 'tblTempUsageDetail_20' ) end [2025-01-07 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:25:21] Production.INFO: ==24762== Releasing lock... [2025-01-07 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:25:21] Production.INFO: 40 MB #Memory Used# [2025-01-07 22:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:26:06 [end_date_ymd] => 2025-01-07 22:26:06 [RateCDR] => 1 ) [2025-01-07 22:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:26:06' and `end` < '2025-01-07 22:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:26:19] Production.INFO: count ==1575 [2025-01-07 22:26:19] Production.ERROR: pbx CDR StartTime 2025-01-07 19:26:06 - End Time 2025-01-07 22:26:06 [2025-01-07 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197942', 'tblTempUsageDetail_20' ) start [2025-01-07 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197942', 'tblTempUsageDetail_20' ) end [2025-01-07 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197942', 'tblTempVendorCDR_20' ) start [2025-01-07 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197942', 'tblTempVendorCDR_20' ) end [2025-01-07 22:26:19] Production.INFO: ProcessCDR(1,14197942,1,1,2) [2025-01-07 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197942', 'tblTempUsageDetail_20' ) start [2025-01-07 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197942', 'tblTempUsageDetail_20' ) end [2025-01-07 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:26:22] Production.INFO: ==24834== Releasing lock... [2025-01-07 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:26:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-07 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:27:05 [end_date_ymd] => 2025-01-07 22:27:05 [RateCDR] => 1 ) [2025-01-07 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:27:05' and `end` < '2025-01-07 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:27:18] Production.INFO: count ==1575 [2025-01-07 22:27:19] Production.ERROR: pbx CDR StartTime 2025-01-07 19:27:05 - End Time 2025-01-07 22:27:05 [2025-01-07 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197947', 'tblTempUsageDetail_20' ) start [2025-01-07 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197947', 'tblTempUsageDetail_20' ) end [2025-01-07 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197947', 'tblTempVendorCDR_20' ) start [2025-01-07 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197947', 'tblTempVendorCDR_20' ) end [2025-01-07 22:27:19] Production.INFO: ProcessCDR(1,14197947,1,1,2) [2025-01-07 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197947', 'tblTempUsageDetail_20' ) start [2025-01-07 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197947', 'tblTempUsageDetail_20' ) end [2025-01-07 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:27:22] Production.INFO: ==24905== Releasing lock... [2025-01-07 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:27:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-07 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:28:05 [end_date_ymd] => 2025-01-07 22:28:05 [RateCDR] => 1 ) [2025-01-07 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:28:05' and `end` < '2025-01-07 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:28:18] Production.INFO: count ==1574 [2025-01-07 22:28:18] Production.ERROR: pbx CDR StartTime 2025-01-07 19:28:05 - End Time 2025-01-07 22:28:05 [2025-01-07 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197952', 'tblTempUsageDetail_20' ) start [2025-01-07 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197952', 'tblTempUsageDetail_20' ) end [2025-01-07 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197952', 'tblTempVendorCDR_20' ) start [2025-01-07 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197952', 'tblTempVendorCDR_20' ) end [2025-01-07 22:28:19] Production.INFO: ProcessCDR(1,14197952,1,1,2) [2025-01-07 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197952', 'tblTempUsageDetail_20' ) start [2025-01-07 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197952', 'tblTempUsageDetail_20' ) end [2025-01-07 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:28:22] Production.INFO: ==24975== Releasing lock... [2025-01-07 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:28:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-07 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:29:05 [end_date_ymd] => 2025-01-07 22:29:05 [RateCDR] => 1 ) [2025-01-07 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:29:05' and `end` < '2025-01-07 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:29:21] Production.INFO: count ==1572 [2025-01-07 22:29:21] Production.ERROR: pbx CDR StartTime 2025-01-07 19:29:05 - End Time 2025-01-07 22:29:05 [2025-01-07 22:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197957', 'tblTempUsageDetail_20' ) start [2025-01-07 22:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197957', 'tblTempUsageDetail_20' ) end [2025-01-07 22:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197957', 'tblTempVendorCDR_20' ) start [2025-01-07 22:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197957', 'tblTempVendorCDR_20' ) end [2025-01-07 22:29:21] Production.INFO: ProcessCDR(1,14197957,1,1,2) [2025-01-07 22:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197957', 'tblTempUsageDetail_20' ) start [2025-01-07 22:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197957', 'tblTempUsageDetail_20' ) end [2025-01-07 22:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:29:24] Production.INFO: ==25090== Releasing lock... [2025-01-07 22:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:29:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-07 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:30:05 [end_date_ymd] => 2025-01-07 22:30:05 [RateCDR] => 1 ) [2025-01-07 22:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:30:05' and `end` < '2025-01-07 22:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:30:18] Production.INFO: count ==1574 [2025-01-07 22:30:19] Production.ERROR: pbx CDR StartTime 2025-01-07 19:30:05 - End Time 2025-01-07 22:30:05 [2025-01-07 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197963', 'tblTempUsageDetail_20' ) start [2025-01-07 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197963', 'tblTempUsageDetail_20' ) end [2025-01-07 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197963', 'tblTempVendorCDR_20' ) start [2025-01-07 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197963', 'tblTempVendorCDR_20' ) end [2025-01-07 22:30:19] Production.INFO: ProcessCDR(1,14197963,1,1,2) [2025-01-07 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197963', 'tblTempUsageDetail_20' ) start [2025-01-07 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197963', 'tblTempUsageDetail_20' ) end [2025-01-07 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:30:22] Production.INFO: ==25166== Releasing lock... [2025-01-07 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:30:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-07 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:31:05 [end_date_ymd] => 2025-01-07 22:31:05 [RateCDR] => 1 ) [2025-01-07 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:31:05' and `end` < '2025-01-07 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:31:21] Production.INFO: count ==1564 [2025-01-07 22:31:21] Production.ERROR: pbx CDR StartTime 2025-01-07 19:31:05 - End Time 2025-01-07 22:31:05 [2025-01-07 22:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197968', 'tblTempUsageDetail_20' ) start [2025-01-07 22:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197968', 'tblTempUsageDetail_20' ) end [2025-01-07 22:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197968', 'tblTempVendorCDR_20' ) start [2025-01-07 22:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197968', 'tblTempVendorCDR_20' ) end [2025-01-07 22:31:21] Production.INFO: ProcessCDR(1,14197968,1,1,2) [2025-01-07 22:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197968', 'tblTempUsageDetail_20' ) start [2025-01-07 22:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197968', 'tblTempUsageDetail_20' ) end [2025-01-07 22:31:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:31:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:31:25] Production.INFO: ==25239== Releasing lock... [2025-01-07 22:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:31:25] Production.INFO: 40.25 MB #Memory Used# [2025-01-07 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:32:05 [end_date_ymd] => 2025-01-07 22:32:05 [RateCDR] => 1 ) [2025-01-07 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:32:05' and `end` < '2025-01-07 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:32:18] Production.INFO: count ==1563 [2025-01-07 22:32:18] Production.ERROR: pbx CDR StartTime 2025-01-07 19:32:05 - End Time 2025-01-07 22:32:05 [2025-01-07 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197973', 'tblTempUsageDetail_20' ) start [2025-01-07 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197973', 'tblTempUsageDetail_20' ) end [2025-01-07 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197973', 'tblTempVendorCDR_20' ) start [2025-01-07 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197973', 'tblTempVendorCDR_20' ) end [2025-01-07 22:32:18] Production.INFO: ProcessCDR(1,14197973,1,1,2) [2025-01-07 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197973', 'tblTempUsageDetail_20' ) start [2025-01-07 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197973', 'tblTempUsageDetail_20' ) end [2025-01-07 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:32:21] Production.INFO: ==25310== Releasing lock... [2025-01-07 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:32:21] Production.INFO: 40 MB #Memory Used# [2025-01-07 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:33:05 [end_date_ymd] => 2025-01-07 22:33:05 [RateCDR] => 1 ) [2025-01-07 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:33:05' and `end` < '2025-01-07 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:33:18] Production.INFO: count ==1562 [2025-01-07 22:33:19] Production.ERROR: pbx CDR StartTime 2025-01-07 19:33:05 - End Time 2025-01-07 22:33:05 [2025-01-07 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197978', 'tblTempUsageDetail_20' ) start [2025-01-07 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197978', 'tblTempUsageDetail_20' ) end [2025-01-07 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197978', 'tblTempVendorCDR_20' ) start [2025-01-07 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197978', 'tblTempVendorCDR_20' ) end [2025-01-07 22:33:19] Production.INFO: ProcessCDR(1,14197978,1,1,2) [2025-01-07 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197978', 'tblTempUsageDetail_20' ) start [2025-01-07 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197978', 'tblTempUsageDetail_20' ) end [2025-01-07 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:33:22] Production.INFO: ==25381== Releasing lock... [2025-01-07 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:33:22] Production.INFO: 40 MB #Memory Used# [2025-01-07 22:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:34:06 [end_date_ymd] => 2025-01-07 22:34:06 [RateCDR] => 1 ) [2025-01-07 22:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:34:06' and `end` < '2025-01-07 22:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:34:19] Production.INFO: count ==1559 [2025-01-07 22:34:20] Production.ERROR: pbx CDR StartTime 2025-01-07 19:34:06 - End Time 2025-01-07 22:34:06 [2025-01-07 22:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197983', 'tblTempUsageDetail_20' ) start [2025-01-07 22:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197983', 'tblTempUsageDetail_20' ) end [2025-01-07 22:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197983', 'tblTempVendorCDR_20' ) start [2025-01-07 22:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197983', 'tblTempVendorCDR_20' ) end [2025-01-07 22:34:20] Production.INFO: ProcessCDR(1,14197983,1,1,2) [2025-01-07 22:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197983', 'tblTempUsageDetail_20' ) start [2025-01-07 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197983', 'tblTempUsageDetail_20' ) end [2025-01-07 22:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:34:23] Production.INFO: ==25451== Releasing lock... [2025-01-07 22:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:34:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-07 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:35:05 [end_date_ymd] => 2025-01-07 22:35:05 [RateCDR] => 1 ) [2025-01-07 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:35:05' and `end` < '2025-01-07 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:35:18] Production.INFO: count ==1559 [2025-01-07 22:35:18] Production.ERROR: pbx CDR StartTime 2025-01-07 19:35:05 - End Time 2025-01-07 22:35:05 [2025-01-07 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197988', 'tblTempUsageDetail_20' ) start [2025-01-07 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197988', 'tblTempUsageDetail_20' ) end [2025-01-07 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197988', 'tblTempVendorCDR_20' ) start [2025-01-07 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197988', 'tblTempVendorCDR_20' ) end [2025-01-07 22:35:19] Production.INFO: ProcessCDR(1,14197988,1,1,2) [2025-01-07 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197988', 'tblTempUsageDetail_20' ) start [2025-01-07 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197988', 'tblTempUsageDetail_20' ) end [2025-01-07 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:35:22] Production.INFO: ==25523== Releasing lock... [2025-01-07 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:35:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-07 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:36:05 [end_date_ymd] => 2025-01-07 22:36:05 [RateCDR] => 1 ) [2025-01-07 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:36:05' and `end` < '2025-01-07 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:36:19] Production.INFO: count ==1558 [2025-01-07 22:36:20] Production.ERROR: pbx CDR StartTime 2025-01-07 19:36:05 - End Time 2025-01-07 22:36:05 [2025-01-07 22:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197993', 'tblTempUsageDetail_20' ) start [2025-01-07 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197993', 'tblTempUsageDetail_20' ) end [2025-01-07 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197993', 'tblTempVendorCDR_20' ) start [2025-01-07 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197993', 'tblTempVendorCDR_20' ) end [2025-01-07 22:36:20] Production.INFO: ProcessCDR(1,14197993,1,1,2) [2025-01-07 22:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197993', 'tblTempUsageDetail_20' ) start [2025-01-07 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197993', 'tblTempUsageDetail_20' ) end [2025-01-07 22:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:36:23] Production.INFO: ==25593== Releasing lock... [2025-01-07 22:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:36:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-07 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:37:05 [end_date_ymd] => 2025-01-07 22:37:05 [RateCDR] => 1 ) [2025-01-07 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:37:05' and `end` < '2025-01-07 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:37:18] Production.INFO: count ==1557 [2025-01-07 22:37:18] Production.ERROR: pbx CDR StartTime 2025-01-07 19:37:05 - End Time 2025-01-07 22:37:05 [2025-01-07 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197998', 'tblTempUsageDetail_20' ) start [2025-01-07 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14197998', 'tblTempUsageDetail_20' ) end [2025-01-07 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197998', 'tblTempVendorCDR_20' ) start [2025-01-07 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14197998', 'tblTempVendorCDR_20' ) end [2025-01-07 22:37:18] Production.INFO: ProcessCDR(1,14197998,1,1,2) [2025-01-07 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14197998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14197998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14197998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14197998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197998', 'tblTempUsageDetail_20' ) start [2025-01-07 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14197998', 'tblTempUsageDetail_20' ) end [2025-01-07 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:37:21] Production.INFO: ==25666== Releasing lock... [2025-01-07 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:37:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-07 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:38:05 [end_date_ymd] => 2025-01-07 22:38:05 [RateCDR] => 1 ) [2025-01-07 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:38:05' and `end` < '2025-01-07 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:38:18] Production.INFO: count ==1555 [2025-01-07 22:38:18] Production.ERROR: pbx CDR StartTime 2025-01-07 19:38:05 - End Time 2025-01-07 22:38:05 [2025-01-07 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198003', 'tblTempUsageDetail_20' ) start [2025-01-07 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198003', 'tblTempUsageDetail_20' ) end [2025-01-07 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198003', 'tblTempVendorCDR_20' ) start [2025-01-07 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198003', 'tblTempVendorCDR_20' ) end [2025-01-07 22:38:18] Production.INFO: ProcessCDR(1,14198003,1,1,2) [2025-01-07 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198003', 'tblTempUsageDetail_20' ) start [2025-01-07 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198003', 'tblTempUsageDetail_20' ) end [2025-01-07 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:38:22] Production.INFO: ==25737== Releasing lock... [2025-01-07 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:38:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-07 22:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:39:04 [end_date_ymd] => 2025-01-07 22:39:04 [RateCDR] => 1 ) [2025-01-07 22:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:39:04' and `end` < '2025-01-07 22:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:39:17] Production.INFO: count ==1555 [2025-01-07 22:39:18] Production.ERROR: pbx CDR StartTime 2025-01-07 19:39:04 - End Time 2025-01-07 22:39:04 [2025-01-07 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198008', 'tblTempUsageDetail_20' ) start [2025-01-07 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198008', 'tblTempUsageDetail_20' ) end [2025-01-07 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198008', 'tblTempVendorCDR_20' ) start [2025-01-07 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198008', 'tblTempVendorCDR_20' ) end [2025-01-07 22:39:18] Production.INFO: ProcessCDR(1,14198008,1,1,2) [2025-01-07 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198008', 'tblTempUsageDetail_20' ) start [2025-01-07 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198008', 'tblTempUsageDetail_20' ) end [2025-01-07 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:39:21] Production.INFO: ==25808== Releasing lock... [2025-01-07 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:39:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-07 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:40:06 [end_date_ymd] => 2025-01-07 22:40:06 [RateCDR] => 1 ) [2025-01-07 22:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:40:06' and `end` < '2025-01-07 22:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:40:20] Production.INFO: count ==1551 [2025-01-07 22:40:20] Production.ERROR: pbx CDR StartTime 2025-01-07 19:40:06 - End Time 2025-01-07 22:40:06 [2025-01-07 22:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198014', 'tblTempUsageDetail_20' ) start [2025-01-07 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198014', 'tblTempUsageDetail_20' ) end [2025-01-07 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198014', 'tblTempVendorCDR_20' ) start [2025-01-07 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198014', 'tblTempVendorCDR_20' ) end [2025-01-07 22:40:20] Production.INFO: ProcessCDR(1,14198014,1,1,2) [2025-01-07 22:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198014', 'tblTempUsageDetail_20' ) start [2025-01-07 22:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198014', 'tblTempUsageDetail_20' ) end [2025-01-07 22:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:40:24] Production.INFO: ==25880== Releasing lock... [2025-01-07 22:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:40:24] Production.INFO: 40.5 MB #Memory Used# [2025-01-07 22:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:41:04 [end_date_ymd] => 2025-01-07 22:41:04 [RateCDR] => 1 ) [2025-01-07 22:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:41:04' and `end` < '2025-01-07 22:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:41:17] Production.INFO: count ==1522 [2025-01-07 22:41:18] Production.ERROR: pbx CDR StartTime 2025-01-07 19:41:04 - End Time 2025-01-07 22:41:04 [2025-01-07 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198019', 'tblTempUsageDetail_20' ) start [2025-01-07 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198019', 'tblTempUsageDetail_20' ) end [2025-01-07 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198019', 'tblTempVendorCDR_20' ) start [2025-01-07 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198019', 'tblTempVendorCDR_20' ) end [2025-01-07 22:41:18] Production.INFO: ProcessCDR(1,14198019,1,1,2) [2025-01-07 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198019', 'tblTempUsageDetail_20' ) start [2025-01-07 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198019', 'tblTempUsageDetail_20' ) end [2025-01-07 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:41:21] Production.INFO: ==25951== Releasing lock... [2025-01-07 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:41:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-07 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:42:05 [end_date_ymd] => 2025-01-07 22:42:05 [RateCDR] => 1 ) [2025-01-07 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:42:05' and `end` < '2025-01-07 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:42:19] Production.INFO: count ==1521 [2025-01-07 22:42:19] Production.ERROR: pbx CDR StartTime 2025-01-07 19:42:05 - End Time 2025-01-07 22:42:05 [2025-01-07 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198024', 'tblTempUsageDetail_20' ) start [2025-01-07 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198024', 'tblTempUsageDetail_20' ) end [2025-01-07 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198024', 'tblTempVendorCDR_20' ) start [2025-01-07 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198024', 'tblTempVendorCDR_20' ) end [2025-01-07 22:42:19] Production.INFO: ProcessCDR(1,14198024,1,1,2) [2025-01-07 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198024', 'tblTempUsageDetail_20' ) start [2025-01-07 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198024', 'tblTempUsageDetail_20' ) end [2025-01-07 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:42:22] Production.INFO: ==26023== Releasing lock... [2025-01-07 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:42:22] Production.INFO: 40 MB #Memory Used# [2025-01-07 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:43:05 [end_date_ymd] => 2025-01-07 22:43:05 [RateCDR] => 1 ) [2025-01-07 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:43:05' and `end` < '2025-01-07 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:43:18] Production.INFO: count ==1520 [2025-01-07 22:43:18] Production.ERROR: pbx CDR StartTime 2025-01-07 19:43:05 - End Time 2025-01-07 22:43:05 [2025-01-07 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198029', 'tblTempUsageDetail_20' ) start [2025-01-07 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198029', 'tblTempUsageDetail_20' ) end [2025-01-07 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198029', 'tblTempVendorCDR_20' ) start [2025-01-07 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198029', 'tblTempVendorCDR_20' ) end [2025-01-07 22:43:18] Production.INFO: ProcessCDR(1,14198029,1,1,2) [2025-01-07 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198029', 'tblTempUsageDetail_20' ) start [2025-01-07 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198029', 'tblTempUsageDetail_20' ) end [2025-01-07 22:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:43:23] Production.INFO: ==26100== Releasing lock... [2025-01-07 22:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:43:23] Production.INFO: 40 MB #Memory Used# [2025-01-07 22:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:44:06 [end_date_ymd] => 2025-01-07 22:44:06 [RateCDR] => 1 ) [2025-01-07 22:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:44:06' and `end` < '2025-01-07 22:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:44:21] Production.INFO: count ==1518 [2025-01-07 22:44:21] Production.ERROR: pbx CDR StartTime 2025-01-07 19:44:06 - End Time 2025-01-07 22:44:06 [2025-01-07 22:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198034', 'tblTempUsageDetail_20' ) start [2025-01-07 22:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198034', 'tblTempUsageDetail_20' ) end [2025-01-07 22:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198034', 'tblTempVendorCDR_20' ) start [2025-01-07 22:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198034', 'tblTempVendorCDR_20' ) end [2025-01-07 22:44:21] Production.INFO: ProcessCDR(1,14198034,1,1,2) [2025-01-07 22:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198034', 'tblTempUsageDetail_20' ) start [2025-01-07 22:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198034', 'tblTempUsageDetail_20' ) end [2025-01-07 22:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:44:24] Production.INFO: ==26176== Releasing lock... [2025-01-07 22:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:44:24] Production.INFO: 39.75 MB #Memory Used# [2025-01-07 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:45:05 [end_date_ymd] => 2025-01-07 22:45:05 [RateCDR] => 1 ) [2025-01-07 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:45:05' and `end` < '2025-01-07 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:45:18] Production.INFO: count ==1517 [2025-01-07 22:45:18] Production.ERROR: pbx CDR StartTime 2025-01-07 19:45:05 - End Time 2025-01-07 22:45:05 [2025-01-07 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198039', 'tblTempUsageDetail_20' ) start [2025-01-07 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198039', 'tblTempUsageDetail_20' ) end [2025-01-07 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198039', 'tblTempVendorCDR_20' ) start [2025-01-07 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198039', 'tblTempVendorCDR_20' ) end [2025-01-07 22:45:18] Production.INFO: ProcessCDR(1,14198039,1,1,2) [2025-01-07 22:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198039', 'tblTempUsageDetail_20' ) start [2025-01-07 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198039', 'tblTempUsageDetail_20' ) end [2025-01-07 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:45:22] Production.INFO: ==26292== Releasing lock... [2025-01-07 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:45:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-07 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:46:05 [end_date_ymd] => 2025-01-07 22:46:05 [RateCDR] => 1 ) [2025-01-07 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:46:05' and `end` < '2025-01-07 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:46:18] Production.INFO: count ==1514 [2025-01-07 22:46:19] Production.ERROR: pbx CDR StartTime 2025-01-07 19:46:05 - End Time 2025-01-07 22:46:05 [2025-01-07 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198044', 'tblTempUsageDetail_20' ) start [2025-01-07 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198044', 'tblTempUsageDetail_20' ) end [2025-01-07 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198044', 'tblTempVendorCDR_20' ) start [2025-01-07 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198044', 'tblTempVendorCDR_20' ) end [2025-01-07 22:46:19] Production.INFO: ProcessCDR(1,14198044,1,1,2) [2025-01-07 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198044', 'tblTempUsageDetail_20' ) start [2025-01-07 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198044', 'tblTempUsageDetail_20' ) end [2025-01-07 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:46:22] Production.INFO: ==26368== Releasing lock... [2025-01-07 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:46:22] Production.INFO: 40 MB #Memory Used# [2025-01-07 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:47:05 [end_date_ymd] => 2025-01-07 22:47:05 [RateCDR] => 1 ) [2025-01-07 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:47:05' and `end` < '2025-01-07 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:47:18] Production.INFO: count ==1513 [2025-01-07 22:47:18] Production.ERROR: pbx CDR StartTime 2025-01-07 19:47:05 - End Time 2025-01-07 22:47:05 [2025-01-07 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198049', 'tblTempUsageDetail_20' ) start [2025-01-07 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198049', 'tblTempUsageDetail_20' ) end [2025-01-07 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198049', 'tblTempVendorCDR_20' ) start [2025-01-07 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198049', 'tblTempVendorCDR_20' ) end [2025-01-07 22:47:18] Production.INFO: ProcessCDR(1,14198049,1,1,2) [2025-01-07 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198049', 'tblTempUsageDetail_20' ) start [2025-01-07 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198049', 'tblTempUsageDetail_20' ) end [2025-01-07 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:47:21] Production.INFO: ==26447== Releasing lock... [2025-01-07 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:47:22] Production.INFO: 40 MB #Memory Used# [2025-01-07 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:48:05 [end_date_ymd] => 2025-01-07 22:48:05 [RateCDR] => 1 ) [2025-01-07 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:48:05' and `end` < '2025-01-07 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:48:18] Production.INFO: count ==1516 [2025-01-07 22:48:19] Production.ERROR: pbx CDR StartTime 2025-01-07 19:48:05 - End Time 2025-01-07 22:48:05 [2025-01-07 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198054', 'tblTempUsageDetail_20' ) start [2025-01-07 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198054', 'tblTempUsageDetail_20' ) end [2025-01-07 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198054', 'tblTempVendorCDR_20' ) start [2025-01-07 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198054', 'tblTempVendorCDR_20' ) end [2025-01-07 22:48:19] Production.INFO: ProcessCDR(1,14198054,1,1,2) [2025-01-07 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198054', 'tblTempUsageDetail_20' ) start [2025-01-07 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198054', 'tblTempUsageDetail_20' ) end [2025-01-07 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:48:22] Production.INFO: ==26540== Releasing lock... [2025-01-07 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:48:22] Production.INFO: 40 MB #Memory Used# [2025-01-07 22:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:49:04 [end_date_ymd] => 2025-01-07 22:49:04 [RateCDR] => 1 ) [2025-01-07 22:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:49:04' and `end` < '2025-01-07 22:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:49:19] Production.INFO: count ==1516 [2025-01-07 22:49:19] Production.ERROR: pbx CDR StartTime 2025-01-07 19:49:04 - End Time 2025-01-07 22:49:04 [2025-01-07 22:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198059', 'tblTempUsageDetail_20' ) start [2025-01-07 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198059', 'tblTempUsageDetail_20' ) end [2025-01-07 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198059', 'tblTempVendorCDR_20' ) start [2025-01-07 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198059', 'tblTempVendorCDR_20' ) end [2025-01-07 22:49:19] Production.INFO: ProcessCDR(1,14198059,1,1,2) [2025-01-07 22:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198059', 'tblTempUsageDetail_20' ) start [2025-01-07 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198059', 'tblTempUsageDetail_20' ) end [2025-01-07 22:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:49:23] Production.INFO: ==26647== Releasing lock... [2025-01-07 22:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:49:23] Production.INFO: 40 MB #Memory Used# [2025-01-07 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:50:06 [end_date_ymd] => 2025-01-07 22:50:06 [RateCDR] => 1 ) [2025-01-07 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:50:06' and `end` < '2025-01-07 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:50:19] Production.INFO: count ==1516 [2025-01-07 22:50:20] Production.ERROR: pbx CDR StartTime 2025-01-07 19:50:06 - End Time 2025-01-07 22:50:06 [2025-01-07 22:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198065', 'tblTempUsageDetail_20' ) start [2025-01-07 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198065', 'tblTempUsageDetail_20' ) end [2025-01-07 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198065', 'tblTempVendorCDR_20' ) start [2025-01-07 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198065', 'tblTempVendorCDR_20' ) end [2025-01-07 22:50:20] Production.INFO: ProcessCDR(1,14198065,1,1,2) [2025-01-07 22:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198065', 'tblTempUsageDetail_20' ) start [2025-01-07 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198065', 'tblTempUsageDetail_20' ) end [2025-01-07 22:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:50:23] Production.INFO: ==26761== Releasing lock... [2025-01-07 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:50:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-07 22:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:51:04 [end_date_ymd] => 2025-01-07 22:51:04 [RateCDR] => 1 ) [2025-01-07 22:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:51:04' and `end` < '2025-01-07 22:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:51:17] Production.INFO: count ==1482 [2025-01-07 22:51:18] Production.ERROR: pbx CDR StartTime 2025-01-07 19:51:04 - End Time 2025-01-07 22:51:04 [2025-01-07 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198070', 'tblTempUsageDetail_20' ) start [2025-01-07 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198070', 'tblTempUsageDetail_20' ) end [2025-01-07 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198070', 'tblTempVendorCDR_20' ) start [2025-01-07 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198070', 'tblTempVendorCDR_20' ) end [2025-01-07 22:51:18] Production.INFO: ProcessCDR(1,14198070,1,1,2) [2025-01-07 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198070', 'tblTempUsageDetail_20' ) start [2025-01-07 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198070', 'tblTempUsageDetail_20' ) end [2025-01-07 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:51:21] Production.INFO: ==26904== Releasing lock... [2025-01-07 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:51:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-07 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:52:05 [end_date_ymd] => 2025-01-07 22:52:05 [RateCDR] => 1 ) [2025-01-07 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:52:05' and `end` < '2025-01-07 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:52:18] Production.INFO: count ==1482 [2025-01-07 22:52:19] Production.ERROR: pbx CDR StartTime 2025-01-07 19:52:05 - End Time 2025-01-07 22:52:05 [2025-01-07 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198075', 'tblTempUsageDetail_20' ) start [2025-01-07 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198075', 'tblTempUsageDetail_20' ) end [2025-01-07 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198075', 'tblTempVendorCDR_20' ) start [2025-01-07 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198075', 'tblTempVendorCDR_20' ) end [2025-01-07 22:52:19] Production.INFO: ProcessCDR(1,14198075,1,1,2) [2025-01-07 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198075', 'tblTempUsageDetail_20' ) start [2025-01-07 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198075', 'tblTempUsageDetail_20' ) end [2025-01-07 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:52:22] Production.INFO: ==27012== Releasing lock... [2025-01-07 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:52:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-07 22:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:53:04 [end_date_ymd] => 2025-01-07 22:53:04 [RateCDR] => 1 ) [2025-01-07 22:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:53:04' and `end` < '2025-01-07 22:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:53:17] Production.INFO: count ==1482 [2025-01-07 22:53:18] Production.ERROR: pbx CDR StartTime 2025-01-07 19:53:04 - End Time 2025-01-07 22:53:04 [2025-01-07 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198080', 'tblTempUsageDetail_20' ) start [2025-01-07 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198080', 'tblTempUsageDetail_20' ) end [2025-01-07 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198080', 'tblTempVendorCDR_20' ) start [2025-01-07 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198080', 'tblTempVendorCDR_20' ) end [2025-01-07 22:53:18] Production.INFO: ProcessCDR(1,14198080,1,1,2) [2025-01-07 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198080', 'tblTempUsageDetail_20' ) start [2025-01-07 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198080', 'tblTempUsageDetail_20' ) end [2025-01-07 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:53:21] Production.INFO: ==27132== Releasing lock... [2025-01-07 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:53:21] Production.INFO: 40 MB #Memory Used# [2025-01-07 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:54:05 [end_date_ymd] => 2025-01-07 22:54:05 [RateCDR] => 1 ) [2025-01-07 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:54:05' and `end` < '2025-01-07 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:54:18] Production.INFO: count ==1481 [2025-01-07 22:54:19] Production.ERROR: pbx CDR StartTime 2025-01-07 19:54:05 - End Time 2025-01-07 22:54:05 [2025-01-07 22:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198085', 'tblTempUsageDetail_20' ) start [2025-01-07 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198085', 'tblTempUsageDetail_20' ) end [2025-01-07 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198085', 'tblTempVendorCDR_20' ) start [2025-01-07 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198085', 'tblTempVendorCDR_20' ) end [2025-01-07 22:54:19] Production.INFO: ProcessCDR(1,14198085,1,1,2) [2025-01-07 22:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198085', 'tblTempUsageDetail_20' ) start [2025-01-07 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198085', 'tblTempUsageDetail_20' ) end [2025-01-07 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:54:22] Production.INFO: ==27252== Releasing lock... [2025-01-07 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:54:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-07 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:55:05 [end_date_ymd] => 2025-01-07 22:55:05 [RateCDR] => 1 ) [2025-01-07 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:55:05' and `end` < '2025-01-07 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:55:18] Production.INFO: count ==1478 [2025-01-07 22:55:18] Production.ERROR: pbx CDR StartTime 2025-01-07 19:55:05 - End Time 2025-01-07 22:55:05 [2025-01-07 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198090', 'tblTempUsageDetail_20' ) start [2025-01-07 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198090', 'tblTempUsageDetail_20' ) end [2025-01-07 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198090', 'tblTempVendorCDR_20' ) start [2025-01-07 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198090', 'tblTempVendorCDR_20' ) end [2025-01-07 22:55:18] Production.INFO: ProcessCDR(1,14198090,1,1,2) [2025-01-07 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198090', 'tblTempUsageDetail_20' ) start [2025-01-07 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198090', 'tblTempUsageDetail_20' ) end [2025-01-07 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:55:22] Production.INFO: ==27371== Releasing lock... [2025-01-07 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:55:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-07 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:56:05 [end_date_ymd] => 2025-01-07 22:56:05 [RateCDR] => 1 ) [2025-01-07 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:56:05' and `end` < '2025-01-07 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:56:18] Production.INFO: count ==1479 [2025-01-07 22:56:19] Production.ERROR: pbx CDR StartTime 2025-01-07 19:56:05 - End Time 2025-01-07 22:56:05 [2025-01-07 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198095', 'tblTempUsageDetail_20' ) start [2025-01-07 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198095', 'tblTempUsageDetail_20' ) end [2025-01-07 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198095', 'tblTempVendorCDR_20' ) start [2025-01-07 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198095', 'tblTempVendorCDR_20' ) end [2025-01-07 22:56:19] Production.INFO: ProcessCDR(1,14198095,1,1,2) [2025-01-07 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198095', 'tblTempUsageDetail_20' ) start [2025-01-07 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198095', 'tblTempUsageDetail_20' ) end [2025-01-07 22:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:56:23] Production.INFO: ==27486== Releasing lock... [2025-01-07 22:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:56:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-07 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:57:05 [end_date_ymd] => 2025-01-07 22:57:05 [RateCDR] => 1 ) [2025-01-07 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:57:05' and `end` < '2025-01-07 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:57:18] Production.INFO: count ==1478 [2025-01-07 22:57:19] Production.ERROR: pbx CDR StartTime 2025-01-07 19:57:05 - End Time 2025-01-07 22:57:05 [2025-01-07 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198100', 'tblTempUsageDetail_20' ) start [2025-01-07 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198100', 'tblTempUsageDetail_20' ) end [2025-01-07 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198100', 'tblTempVendorCDR_20' ) start [2025-01-07 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198100', 'tblTempVendorCDR_20' ) end [2025-01-07 22:57:19] Production.INFO: ProcessCDR(1,14198100,1,1,2) [2025-01-07 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198100', 'tblTempUsageDetail_20' ) start [2025-01-07 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198100', 'tblTempUsageDetail_20' ) end [2025-01-07 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:57:22] Production.INFO: ==27610== Releasing lock... [2025-01-07 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:57:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-07 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:58:05 [end_date_ymd] => 2025-01-07 22:58:05 [RateCDR] => 1 ) [2025-01-07 22:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:58:05' and `end` < '2025-01-07 22:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:58:19] Production.INFO: count ==1477 [2025-01-07 22:58:20] Production.ERROR: pbx CDR StartTime 2025-01-07 19:58:05 - End Time 2025-01-07 22:58:05 [2025-01-07 22:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198105', 'tblTempUsageDetail_20' ) start [2025-01-07 22:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198105', 'tblTempUsageDetail_20' ) end [2025-01-07 22:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198105', 'tblTempVendorCDR_20' ) start [2025-01-07 22:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198105', 'tblTempVendorCDR_20' ) end [2025-01-07 22:58:20] Production.INFO: ProcessCDR(1,14198105,1,1,2) [2025-01-07 22:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198105', 'tblTempUsageDetail_20' ) start [2025-01-07 22:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198105', 'tblTempUsageDetail_20' ) end [2025-01-07 22:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:58:23] Production.INFO: ==27738== Releasing lock... [2025-01-07 22:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:58:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-07 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 19:59:05 [end_date_ymd] => 2025-01-07 22:59:05 [RateCDR] => 1 ) [2025-01-07 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 19:59:05' and `end` < '2025-01-07 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 22:59:18] Production.INFO: count ==1477 [2025-01-07 22:59:19] Production.ERROR: pbx CDR StartTime 2025-01-07 19:59:05 - End Time 2025-01-07 22:59:05 [2025-01-07 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198110', 'tblTempUsageDetail_20' ) start [2025-01-07 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198110', 'tblTempUsageDetail_20' ) end [2025-01-07 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198110', 'tblTempVendorCDR_20' ) start [2025-01-07 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198110', 'tblTempVendorCDR_20' ) end [2025-01-07 22:59:19] Production.INFO: ProcessCDR(1,14198110,1,1,2) [2025-01-07 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198110', 'tblTempUsageDetail_20' ) start [2025-01-07 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198110', 'tblTempUsageDetail_20' ) end [2025-01-07 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 22:59:22] Production.INFO: ==27863== Releasing lock... [2025-01-07 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 22:59:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-07 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:00:05 [end_date_ymd] => 2025-01-07 23:00:05 [RateCDR] => 1 ) [2025-01-07 23:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:00:05' and `end` < '2025-01-07 23:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:00:18] Production.INFO: count ==1473 [2025-01-07 23:00:19] Production.ERROR: pbx CDR StartTime 2025-01-07 20:00:05 - End Time 2025-01-07 23:00:05 [2025-01-07 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198115', 'tblTempUsageDetail_20' ) start [2025-01-07 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198115', 'tblTempUsageDetail_20' ) end [2025-01-07 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198115', 'tblTempVendorCDR_20' ) start [2025-01-07 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198115', 'tblTempVendorCDR_20' ) end [2025-01-07 23:00:19] Production.INFO: ProcessCDR(1,14198115,1,1,2) [2025-01-07 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198115', 'tblTempUsageDetail_20' ) start [2025-01-07 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198115', 'tblTempUsageDetail_20' ) end [2025-01-07 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:00:22] Production.INFO: ==27994== Releasing lock... [2025-01-07 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:00:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-07 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:01:05 [end_date_ymd] => 2025-01-07 23:01:05 [RateCDR] => 1 ) [2025-01-07 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:01:05' and `end` < '2025-01-07 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:01:18] Production.INFO: count ==1455 [2025-01-07 23:01:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:01:05 - End Time 2025-01-07 23:01:05 [2025-01-07 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198121', 'tblTempUsageDetail_20' ) start [2025-01-07 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198121', 'tblTempUsageDetail_20' ) end [2025-01-07 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198121', 'tblTempVendorCDR_20' ) start [2025-01-07 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198121', 'tblTempVendorCDR_20' ) end [2025-01-07 23:01:19] Production.INFO: ProcessCDR(1,14198121,1,1,2) [2025-01-07 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198121', 'tblTempUsageDetail_20' ) start [2025-01-07 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198121', 'tblTempUsageDetail_20' ) end [2025-01-07 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:01:22] Production.INFO: ==28181== Releasing lock... [2025-01-07 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:01:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-07 23:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:02:04 [end_date_ymd] => 2025-01-07 23:02:04 [RateCDR] => 1 ) [2025-01-07 23:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:02:04' and `end` < '2025-01-07 23:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:02:17] Production.INFO: count ==1454 [2025-01-07 23:02:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:02:04 - End Time 2025-01-07 23:02:04 [2025-01-07 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198126', 'tblTempUsageDetail_20' ) start [2025-01-07 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198126', 'tblTempUsageDetail_20' ) end [2025-01-07 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198126', 'tblTempVendorCDR_20' ) start [2025-01-07 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198126', 'tblTempVendorCDR_20' ) end [2025-01-07 23:02:18] Production.INFO: ProcessCDR(1,14198126,1,1,2) [2025-01-07 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198126', 'tblTempUsageDetail_20' ) start [2025-01-07 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198126', 'tblTempUsageDetail_20' ) end [2025-01-07 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:02:21] Production.INFO: ==28387== Releasing lock... [2025-01-07 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:02:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-07 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:03:05 [end_date_ymd] => 2025-01-07 23:03:05 [RateCDR] => 1 ) [2025-01-07 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:03:05' and `end` < '2025-01-07 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:03:19] Production.INFO: count ==1454 [2025-01-07 23:03:19] Production.ERROR: pbx CDR StartTime 2025-01-07 20:03:05 - End Time 2025-01-07 23:03:05 [2025-01-07 23:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198131', 'tblTempUsageDetail_20' ) start [2025-01-07 23:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198131', 'tblTempUsageDetail_20' ) end [2025-01-07 23:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198131', 'tblTempVendorCDR_20' ) start [2025-01-07 23:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198131', 'tblTempVendorCDR_20' ) end [2025-01-07 23:03:20] Production.INFO: ProcessCDR(1,14198131,1,1,2) [2025-01-07 23:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198131', 'tblTempUsageDetail_20' ) start [2025-01-07 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198131', 'tblTempUsageDetail_20' ) end [2025-01-07 23:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:03:23] Production.INFO: ==28515== Releasing lock... [2025-01-07 23:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:03:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-07 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:04:05 [end_date_ymd] => 2025-01-07 23:04:05 [RateCDR] => 1 ) [2025-01-07 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:04:05' and `end` < '2025-01-07 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:04:18] Production.INFO: count ==1449 [2025-01-07 23:04:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:04:05 - End Time 2025-01-07 23:04:05 [2025-01-07 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198136', 'tblTempUsageDetail_20' ) start [2025-01-07 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198136', 'tblTempUsageDetail_20' ) end [2025-01-07 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198136', 'tblTempVendorCDR_20' ) start [2025-01-07 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198136', 'tblTempVendorCDR_20' ) end [2025-01-07 23:04:18] Production.INFO: ProcessCDR(1,14198136,1,1,2) [2025-01-07 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198136', 'tblTempUsageDetail_20' ) start [2025-01-07 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198136', 'tblTempUsageDetail_20' ) end [2025-01-07 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:04:21] Production.INFO: ==28639== Releasing lock... [2025-01-07 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:04:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-07 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:05:05 [end_date_ymd] => 2025-01-07 23:05:05 [RateCDR] => 1 ) [2025-01-07 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:05:05' and `end` < '2025-01-07 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:05:18] Production.INFO: count ==1449 [2025-01-07 23:05:19] Production.ERROR: pbx CDR StartTime 2025-01-07 20:05:05 - End Time 2025-01-07 23:05:05 [2025-01-07 23:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198141', 'tblTempUsageDetail_20' ) start [2025-01-07 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198141', 'tblTempUsageDetail_20' ) end [2025-01-07 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198141', 'tblTempVendorCDR_20' ) start [2025-01-07 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198141', 'tblTempVendorCDR_20' ) end [2025-01-07 23:05:19] Production.INFO: ProcessCDR(1,14198141,1,1,2) [2025-01-07 23:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198141', 'tblTempUsageDetail_20' ) start [2025-01-07 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198141', 'tblTempUsageDetail_20' ) end [2025-01-07 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:05:22] Production.INFO: ==28843== Releasing lock... [2025-01-07 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:05:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-07 23:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:06:06 [end_date_ymd] => 2025-01-07 23:06:06 [RateCDR] => 1 ) [2025-01-07 23:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:06:06' and `end` < '2025-01-07 23:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:06:19] Production.INFO: count ==1448 [2025-01-07 23:06:19] Production.ERROR: pbx CDR StartTime 2025-01-07 20:06:06 - End Time 2025-01-07 23:06:06 [2025-01-07 23:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198146', 'tblTempUsageDetail_20' ) start [2025-01-07 23:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198146', 'tblTempUsageDetail_20' ) end [2025-01-07 23:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198146', 'tblTempVendorCDR_20' ) start [2025-01-07 23:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198146', 'tblTempVendorCDR_20' ) end [2025-01-07 23:06:20] Production.INFO: ProcessCDR(1,14198146,1,1,2) [2025-01-07 23:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198146', 'tblTempUsageDetail_20' ) start [2025-01-07 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198146', 'tblTempUsageDetail_20' ) end [2025-01-07 23:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:06:23] Production.INFO: ==28965== Releasing lock... [2025-01-07 23:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:06:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-07 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:07:05 [end_date_ymd] => 2025-01-07 23:07:05 [RateCDR] => 1 ) [2025-01-07 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:07:05' and `end` < '2025-01-07 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:07:19] Production.INFO: count ==1451 [2025-01-07 23:07:20] Production.ERROR: pbx CDR StartTime 2025-01-07 20:07:05 - End Time 2025-01-07 23:07:05 [2025-01-07 23:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198151', 'tblTempUsageDetail_20' ) start [2025-01-07 23:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198151', 'tblTempUsageDetail_20' ) end [2025-01-07 23:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198151', 'tblTempVendorCDR_20' ) start [2025-01-07 23:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198151', 'tblTempVendorCDR_20' ) end [2025-01-07 23:07:20] Production.INFO: ProcessCDR(1,14198151,1,1,2) [2025-01-07 23:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198151', 'tblTempUsageDetail_20' ) start [2025-01-07 23:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198151', 'tblTempUsageDetail_20' ) end [2025-01-07 23:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:07:23] Production.INFO: ==29084== Releasing lock... [2025-01-07 23:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:07:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-07 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:08:05 [end_date_ymd] => 2025-01-07 23:08:05 [RateCDR] => 1 ) [2025-01-07 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:08:05' and `end` < '2025-01-07 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:08:20] Production.INFO: count ==1451 [2025-01-07 23:08:20] Production.ERROR: pbx CDR StartTime 2025-01-07 20:08:05 - End Time 2025-01-07 23:08:05 [2025-01-07 23:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198156', 'tblTempUsageDetail_20' ) start [2025-01-07 23:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198156', 'tblTempUsageDetail_20' ) end [2025-01-07 23:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198156', 'tblTempVendorCDR_20' ) start [2025-01-07 23:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198156', 'tblTempVendorCDR_20' ) end [2025-01-07 23:08:20] Production.INFO: ProcessCDR(1,14198156,1,1,2) [2025-01-07 23:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198156', 'tblTempUsageDetail_20' ) start [2025-01-07 23:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198156', 'tblTempUsageDetail_20' ) end [2025-01-07 23:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:08:24] Production.INFO: ==29276== Releasing lock... [2025-01-07 23:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:08:24] Production.INFO: 39.5 MB #Memory Used# [2025-01-07 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:09:05 [end_date_ymd] => 2025-01-07 23:09:05 [RateCDR] => 1 ) [2025-01-07 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:09:05' and `end` < '2025-01-07 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:09:19] Production.INFO: count ==1451 [2025-01-07 23:09:19] Production.ERROR: pbx CDR StartTime 2025-01-07 20:09:05 - End Time 2025-01-07 23:09:05 [2025-01-07 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198161', 'tblTempUsageDetail_20' ) start [2025-01-07 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198161', 'tblTempUsageDetail_20' ) end [2025-01-07 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198161', 'tblTempVendorCDR_20' ) start [2025-01-07 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198161', 'tblTempVendorCDR_20' ) end [2025-01-07 23:09:19] Production.INFO: ProcessCDR(1,14198161,1,1,2) [2025-01-07 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198161', 'tblTempUsageDetail_20' ) start [2025-01-07 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198161', 'tblTempUsageDetail_20' ) end [2025-01-07 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:09:22] Production.INFO: ==29395== Releasing lock... [2025-01-07 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:09:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-07 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:10:06 [end_date_ymd] => 2025-01-07 23:10:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 20:10:06' and `end` < '2025-01-07 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-01-07 23:10:19] Production.INFO: count ==1446 [2025-01-07 23:10:19] Production.ERROR: pbx CDR StartTime 2025-01-07 20:10:06 - End Time 2025-01-07 23:10:06 [2025-01-07 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198167', 'tblTempUsageDetail_20' ) start [2025-01-07 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198167', 'tblTempUsageDetail_20' ) end [2025-01-07 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198167', 'tblTempVendorCDR_20' ) start [2025-01-07 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198167', 'tblTempVendorCDR_20' ) end [2025-01-07 23:10:19] Production.INFO: ProcessCDR(1,14198167,1,1,2) [2025-01-07 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198167', 'tblTempUsageDetail_20' ) start [2025-01-07 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198167', 'tblTempUsageDetail_20' ) end [2025-01-07 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:10:22] Production.INFO: ==29509== Releasing lock... [2025-01-07 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:10:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-07 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:11:05 [end_date_ymd] => 2025-01-07 23:11:05 [RateCDR] => 1 ) [2025-01-07 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:11:05' and `end` < '2025-01-07 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:11:19] Production.INFO: count ==1438 [2025-01-07 23:11:19] Production.ERROR: pbx CDR StartTime 2025-01-07 20:11:05 - End Time 2025-01-07 23:11:05 [2025-01-07 23:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198172', 'tblTempUsageDetail_20' ) start [2025-01-07 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198172', 'tblTempUsageDetail_20' ) end [2025-01-07 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198172', 'tblTempVendorCDR_20' ) start [2025-01-07 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198172', 'tblTempVendorCDR_20' ) end [2025-01-07 23:11:19] Production.INFO: ProcessCDR(1,14198172,1,1,2) [2025-01-07 23:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198172', 'tblTempUsageDetail_20' ) start [2025-01-07 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198172', 'tblTempUsageDetail_20' ) end [2025-01-07 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:11:22] Production.INFO: ==29616== Releasing lock... [2025-01-07 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:11:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-07 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:12:05 [end_date_ymd] => 2025-01-07 23:12:05 [RateCDR] => 1 ) [2025-01-07 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:12:05' and `end` < '2025-01-07 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:12:20] Production.INFO: count ==1438 [2025-01-07 23:12:20] Production.ERROR: pbx CDR StartTime 2025-01-07 20:12:05 - End Time 2025-01-07 23:12:05 [2025-01-07 23:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198177', 'tblTempUsageDetail_20' ) start [2025-01-07 23:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198177', 'tblTempUsageDetail_20' ) end [2025-01-07 23:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198177', 'tblTempVendorCDR_20' ) start [2025-01-07 23:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198177', 'tblTempVendorCDR_20' ) end [2025-01-07 23:12:20] Production.INFO: ProcessCDR(1,14198177,1,1,2) [2025-01-07 23:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198177', 'tblTempUsageDetail_20' ) start [2025-01-07 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198177', 'tblTempUsageDetail_20' ) end [2025-01-07 23:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:12:23] Production.INFO: ==29800== Releasing lock... [2025-01-07 23:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:12:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-07 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:13:05 [end_date_ymd] => 2025-01-07 23:13:05 [RateCDR] => 1 ) [2025-01-07 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:13:05' and `end` < '2025-01-07 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:13:19] Production.INFO: count ==1437 [2025-01-07 23:13:20] Production.ERROR: pbx CDR StartTime 2025-01-07 20:13:05 - End Time 2025-01-07 23:13:05 [2025-01-07 23:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198182', 'tblTempUsageDetail_20' ) start [2025-01-07 23:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198182', 'tblTempUsageDetail_20' ) end [2025-01-07 23:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198182', 'tblTempVendorCDR_20' ) start [2025-01-07 23:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198182', 'tblTempVendorCDR_20' ) end [2025-01-07 23:13:20] Production.INFO: ProcessCDR(1,14198182,1,1,2) [2025-01-07 23:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198182', 'tblTempUsageDetail_20' ) start [2025-01-07 23:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198182', 'tblTempUsageDetail_20' ) end [2025-01-07 23:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:13:23] Production.INFO: ==29902== Releasing lock... [2025-01-07 23:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:13:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-07 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:14:05 [end_date_ymd] => 2025-01-07 23:14:05 [RateCDR] => 1 ) [2025-01-07 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:14:05' and `end` < '2025-01-07 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:14:18] Production.INFO: count ==1437 [2025-01-07 23:14:19] Production.ERROR: pbx CDR StartTime 2025-01-07 20:14:05 - End Time 2025-01-07 23:14:05 [2025-01-07 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198187', 'tblTempUsageDetail_20' ) start [2025-01-07 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198187', 'tblTempUsageDetail_20' ) end [2025-01-07 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198187', 'tblTempVendorCDR_20' ) start [2025-01-07 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198187', 'tblTempVendorCDR_20' ) end [2025-01-07 23:14:19] Production.INFO: ProcessCDR(1,14198187,1,1,2) [2025-01-07 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198187', 'tblTempUsageDetail_20' ) start [2025-01-07 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198187', 'tblTempUsageDetail_20' ) end [2025-01-07 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:14:22] Production.INFO: ==29988== Releasing lock... [2025-01-07 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:14:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-07 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:15:05 [end_date_ymd] => 2025-01-07 23:15:05 [RateCDR] => 1 ) [2025-01-07 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:15:05' and `end` < '2025-01-07 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:15:18] Production.INFO: count ==1440 [2025-01-07 23:15:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:15:05 - End Time 2025-01-07 23:15:05 [2025-01-07 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198192', 'tblTempUsageDetail_20' ) start [2025-01-07 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198192', 'tblTempUsageDetail_20' ) end [2025-01-07 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198192', 'tblTempVendorCDR_20' ) start [2025-01-07 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198192', 'tblTempVendorCDR_20' ) end [2025-01-07 23:15:18] Production.INFO: ProcessCDR(1,14198192,1,1,2) [2025-01-07 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198192', 'tblTempUsageDetail_20' ) start [2025-01-07 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198192', 'tblTempUsageDetail_20' ) end [2025-01-07 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:15:22] Production.INFO: ==30143== Releasing lock... [2025-01-07 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:15:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-07 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:16:05 [end_date_ymd] => 2025-01-07 23:16:05 [RateCDR] => 1 ) [2025-01-07 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:16:05' and `end` < '2025-01-07 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:16:21] Production.INFO: count ==1440 [2025-01-07 23:16:21] Production.ERROR: pbx CDR StartTime 2025-01-07 20:16:05 - End Time 2025-01-07 23:16:05 [2025-01-07 23:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198197', 'tblTempUsageDetail_20' ) start [2025-01-07 23:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198197', 'tblTempUsageDetail_20' ) end [2025-01-07 23:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198197', 'tblTempVendorCDR_20' ) start [2025-01-07 23:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198197', 'tblTempVendorCDR_20' ) end [2025-01-07 23:16:21] Production.INFO: ProcessCDR(1,14198197,1,1,2) [2025-01-07 23:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198197', 'tblTempUsageDetail_20' ) start [2025-01-07 23:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198197', 'tblTempUsageDetail_20' ) end [2025-01-07 23:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:16:25] Production.INFO: ==30262== Releasing lock... [2025-01-07 23:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:16:25] Production.INFO: 39.25 MB #Memory Used# [2025-01-07 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:17:05 [end_date_ymd] => 2025-01-07 23:17:05 [RateCDR] => 1 ) [2025-01-07 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:17:05' and `end` < '2025-01-07 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:17:18] Production.INFO: count ==1440 [2025-01-07 23:17:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:17:05 - End Time 2025-01-07 23:17:05 [2025-01-07 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198202', 'tblTempUsageDetail_20' ) start [2025-01-07 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198202', 'tblTempUsageDetail_20' ) end [2025-01-07 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198202', 'tblTempVendorCDR_20' ) start [2025-01-07 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198202', 'tblTempVendorCDR_20' ) end [2025-01-07 23:17:18] Production.INFO: ProcessCDR(1,14198202,1,1,2) [2025-01-07 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198202', 'tblTempUsageDetail_20' ) start [2025-01-07 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198202', 'tblTempUsageDetail_20' ) end [2025-01-07 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:17:22] Production.INFO: ==30342== Releasing lock... [2025-01-07 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:17:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-07 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:18:05 [end_date_ymd] => 2025-01-07 23:18:05 [RateCDR] => 1 ) [2025-01-07 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:18:05' and `end` < '2025-01-07 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:18:18] Production.INFO: count ==1438 [2025-01-07 23:18:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:18:05 - End Time 2025-01-07 23:18:05 [2025-01-07 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198207', 'tblTempUsageDetail_20' ) start [2025-01-07 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198207', 'tblTempUsageDetail_20' ) end [2025-01-07 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198207', 'tblTempVendorCDR_20' ) start [2025-01-07 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198207', 'tblTempVendorCDR_20' ) end [2025-01-07 23:18:19] Production.INFO: ProcessCDR(1,14198207,1,1,2) [2025-01-07 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198207', 'tblTempUsageDetail_20' ) start [2025-01-07 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198207', 'tblTempUsageDetail_20' ) end [2025-01-07 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:18:22] Production.INFO: ==30417== Releasing lock... [2025-01-07 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:18:22] Production.INFO: 39 MB #Memory Used# [2025-01-07 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:19:05 [end_date_ymd] => 2025-01-07 23:19:05 [RateCDR] => 1 ) [2025-01-07 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:19:05' and `end` < '2025-01-07 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:19:19] Production.INFO: count ==1437 [2025-01-07 23:19:20] Production.ERROR: pbx CDR StartTime 2025-01-07 20:19:05 - End Time 2025-01-07 23:19:05 [2025-01-07 23:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198212', 'tblTempUsageDetail_20' ) start [2025-01-07 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198212', 'tblTempUsageDetail_20' ) end [2025-01-07 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198212', 'tblTempVendorCDR_20' ) start [2025-01-07 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198212', 'tblTempVendorCDR_20' ) end [2025-01-07 23:19:20] Production.INFO: ProcessCDR(1,14198212,1,1,2) [2025-01-07 23:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198212', 'tblTempUsageDetail_20' ) start [2025-01-07 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198212', 'tblTempUsageDetail_20' ) end [2025-01-07 23:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:19:23] Production.INFO: ==30494== Releasing lock... [2025-01-07 23:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:19:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-07 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:20:06 [end_date_ymd] => 2025-01-07 23:20:06 [RateCDR] => 1 ) [2025-01-07 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:20:06' and `end` < '2025-01-07 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:20:19] Production.INFO: count ==1438 [2025-01-07 23:20:19] Production.ERROR: pbx CDR StartTime 2025-01-07 20:20:06 - End Time 2025-01-07 23:20:06 [2025-01-07 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198218', 'tblTempUsageDetail_20' ) start [2025-01-07 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198218', 'tblTempUsageDetail_20' ) end [2025-01-07 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198218', 'tblTempVendorCDR_20' ) start [2025-01-07 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198218', 'tblTempVendorCDR_20' ) end [2025-01-07 23:20:19] Production.INFO: ProcessCDR(1,14198218,1,1,2) [2025-01-07 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198218', 'tblTempUsageDetail_20' ) start [2025-01-07 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198218', 'tblTempUsageDetail_20' ) end [2025-01-07 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:20:22] Production.INFO: ==30570== Releasing lock... [2025-01-07 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:20:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-07 23:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:21:04 [end_date_ymd] => 2025-01-07 23:21:04 [RateCDR] => 1 ) [2025-01-07 23:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:21:04' and `end` < '2025-01-07 23:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:21:18] Production.INFO: count ==1426 [2025-01-07 23:21:19] Production.ERROR: pbx CDR StartTime 2025-01-07 20:21:04 - End Time 2025-01-07 23:21:04 [2025-01-07 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198223', 'tblTempUsageDetail_20' ) start [2025-01-07 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198223', 'tblTempUsageDetail_20' ) end [2025-01-07 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198223', 'tblTempVendorCDR_20' ) start [2025-01-07 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198223', 'tblTempVendorCDR_20' ) end [2025-01-07 23:21:19] Production.INFO: ProcessCDR(1,14198223,1,1,2) [2025-01-07 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198223', 'tblTempUsageDetail_20' ) start [2025-01-07 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198223', 'tblTempUsageDetail_20' ) end [2025-01-07 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:21:22] Production.INFO: ==30653== Releasing lock... [2025-01-07 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:21:22] Production.INFO: 39 MB #Memory Used# [2025-01-07 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:22:05 [end_date_ymd] => 2025-01-07 23:22:05 [RateCDR] => 1 ) [2025-01-07 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:22:05' and `end` < '2025-01-07 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:22:19] Production.INFO: count ==1426 [2025-01-07 23:22:20] Production.ERROR: pbx CDR StartTime 2025-01-07 20:22:05 - End Time 2025-01-07 23:22:05 [2025-01-07 23:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198228', 'tblTempUsageDetail_20' ) start [2025-01-07 23:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198228', 'tblTempUsageDetail_20' ) end [2025-01-07 23:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198228', 'tblTempVendorCDR_20' ) start [2025-01-07 23:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198228', 'tblTempVendorCDR_20' ) end [2025-01-07 23:22:20] Production.INFO: ProcessCDR(1,14198228,1,1,2) [2025-01-07 23:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198228', 'tblTempUsageDetail_20' ) start [2025-01-07 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198228', 'tblTempUsageDetail_20' ) end [2025-01-07 23:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:22:23] Production.INFO: ==30734== Releasing lock... [2025-01-07 23:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:22:23] Production.INFO: 39 MB #Memory Used# [2025-01-07 23:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:23:04 [end_date_ymd] => 2025-01-07 23:23:04 [RateCDR] => 1 ) [2025-01-07 23:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:23:04' and `end` < '2025-01-07 23:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:23:17] Production.INFO: count ==1429 [2025-01-07 23:23:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:23:04 - End Time 2025-01-07 23:23:04 [2025-01-07 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198233', 'tblTempUsageDetail_20' ) start [2025-01-07 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198233', 'tblTempUsageDetail_20' ) end [2025-01-07 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198233', 'tblTempVendorCDR_20' ) start [2025-01-07 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198233', 'tblTempVendorCDR_20' ) end [2025-01-07 23:23:18] Production.INFO: ProcessCDR(1,14198233,1,1,2) [2025-01-07 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198233', 'tblTempUsageDetail_20' ) start [2025-01-07 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198233', 'tblTempUsageDetail_20' ) end [2025-01-07 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:23:21] Production.INFO: ==30813== Releasing lock... [2025-01-07 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:23:21] Production.INFO: 39 MB #Memory Used# [2025-01-07 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:24:05 [end_date_ymd] => 2025-01-07 23:24:05 [RateCDR] => 1 ) [2025-01-07 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:24:05' and `end` < '2025-01-07 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:24:18] Production.INFO: count ==1429 [2025-01-07 23:24:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:24:05 - End Time 2025-01-07 23:24:05 [2025-01-07 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198238', 'tblTempUsageDetail_20' ) start [2025-01-07 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198238', 'tblTempUsageDetail_20' ) end [2025-01-07 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198238', 'tblTempVendorCDR_20' ) start [2025-01-07 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198238', 'tblTempVendorCDR_20' ) end [2025-01-07 23:24:19] Production.INFO: ProcessCDR(1,14198238,1,1,2) [2025-01-07 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198238', 'tblTempUsageDetail_20' ) start [2025-01-07 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198238', 'tblTempUsageDetail_20' ) end [2025-01-07 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:24:22] Production.INFO: ==30892== Releasing lock... [2025-01-07 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:24:22] Production.INFO: 39 MB #Memory Used# [2025-01-07 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:25:05 [end_date_ymd] => 2025-01-07 23:25:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 20:25:05' and `end` < '2025-01-07 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-01-07 23:25:18] Production.INFO: count ==1429 [2025-01-07 23:25:19] Production.ERROR: pbx CDR StartTime 2025-01-07 20:25:05 - End Time 2025-01-07 23:25:05 [2025-01-07 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198243', 'tblTempUsageDetail_20' ) start [2025-01-07 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198243', 'tblTempUsageDetail_20' ) end [2025-01-07 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198243', 'tblTempVendorCDR_20' ) start [2025-01-07 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198243', 'tblTempVendorCDR_20' ) end [2025-01-07 23:25:19] Production.INFO: ProcessCDR(1,14198243,1,1,2) [2025-01-07 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198243', 'tblTempUsageDetail_20' ) start [2025-01-07 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198243', 'tblTempUsageDetail_20' ) end [2025-01-07 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:25:22] Production.INFO: ==30964== Releasing lock... [2025-01-07 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:25:22] Production.INFO: 39 MB #Memory Used# [2025-01-07 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:26:05 [end_date_ymd] => 2025-01-07 23:26:05 [RateCDR] => 1 ) [2025-01-07 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:26:05' and `end` < '2025-01-07 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:26:18] Production.INFO: count ==1429 [2025-01-07 23:26:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:26:05 - End Time 2025-01-07 23:26:05 [2025-01-07 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198248', 'tblTempUsageDetail_20' ) start [2025-01-07 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198248', 'tblTempUsageDetail_20' ) end [2025-01-07 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198248', 'tblTempVendorCDR_20' ) start [2025-01-07 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198248', 'tblTempVendorCDR_20' ) end [2025-01-07 23:26:18] Production.INFO: ProcessCDR(1,14198248,1,1,2) [2025-01-07 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198248', 'tblTempUsageDetail_20' ) start [2025-01-07 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198248', 'tblTempUsageDetail_20' ) end [2025-01-07 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:26:21] Production.INFO: ==31038== Releasing lock... [2025-01-07 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:26:21] Production.INFO: 39 MB #Memory Used# [2025-01-07 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:27:05 [end_date_ymd] => 2025-01-07 23:27:05 [RateCDR] => 1 ) [2025-01-07 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:27:05' and `end` < '2025-01-07 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:27:18] Production.INFO: count ==1420 [2025-01-07 23:27:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:27:05 - End Time 2025-01-07 23:27:05 [2025-01-07 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198253', 'tblTempUsageDetail_20' ) start [2025-01-07 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198253', 'tblTempUsageDetail_20' ) end [2025-01-07 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198253', 'tblTempVendorCDR_20' ) start [2025-01-07 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198253', 'tblTempVendorCDR_20' ) end [2025-01-07 23:27:19] Production.INFO: ProcessCDR(1,14198253,1,1,2) [2025-01-07 23:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198253', 'tblTempUsageDetail_20' ) start [2025-01-07 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198253', 'tblTempUsageDetail_20' ) end [2025-01-07 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:27:22] Production.INFO: ==31107== Releasing lock... [2025-01-07 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:27:22] Production.INFO: 39 MB #Memory Used# [2025-01-07 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:28:05 [end_date_ymd] => 2025-01-07 23:28:05 [RateCDR] => 1 ) [2025-01-07 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:28:05' and `end` < '2025-01-07 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:28:18] Production.INFO: count ==1412 [2025-01-07 23:28:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:28:05 - End Time 2025-01-07 23:28:05 [2025-01-07 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198258', 'tblTempUsageDetail_20' ) start [2025-01-07 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198258', 'tblTempUsageDetail_20' ) end [2025-01-07 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198258', 'tblTempVendorCDR_20' ) start [2025-01-07 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198258', 'tblTempVendorCDR_20' ) end [2025-01-07 23:28:18] Production.INFO: ProcessCDR(1,14198258,1,1,2) [2025-01-07 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198258', 'tblTempUsageDetail_20' ) start [2025-01-07 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198258', 'tblTempUsageDetail_20' ) end [2025-01-07 23:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:28:22] Production.INFO: ==31179== Releasing lock... [2025-01-07 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:28:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-07 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:29:05 [end_date_ymd] => 2025-01-07 23:29:05 [RateCDR] => 1 ) [2025-01-07 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:29:05' and `end` < '2025-01-07 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:29:19] Production.INFO: count ==1411 [2025-01-07 23:29:20] Production.ERROR: pbx CDR StartTime 2025-01-07 20:29:05 - End Time 2025-01-07 23:29:05 [2025-01-07 23:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198263', 'tblTempUsageDetail_20' ) start [2025-01-07 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198263', 'tblTempUsageDetail_20' ) end [2025-01-07 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198263', 'tblTempVendorCDR_20' ) start [2025-01-07 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198263', 'tblTempVendorCDR_20' ) end [2025-01-07 23:29:20] Production.INFO: ProcessCDR(1,14198263,1,1,2) [2025-01-07 23:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198263', 'tblTempUsageDetail_20' ) start [2025-01-07 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198263', 'tblTempUsageDetail_20' ) end [2025-01-07 23:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:29:23] Production.INFO: ==31252== Releasing lock... [2025-01-07 23:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:29:23] Production.INFO: 39 MB #Memory Used# [2025-01-07 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:30:05 [end_date_ymd] => 2025-01-07 23:30:05 [RateCDR] => 1 ) [2025-01-07 23:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:30:05' and `end` < '2025-01-07 23:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:30:18] Production.INFO: count ==1414 [2025-01-07 23:30:19] Production.ERROR: pbx CDR StartTime 2025-01-07 20:30:05 - End Time 2025-01-07 23:30:05 [2025-01-07 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198269', 'tblTempUsageDetail_20' ) start [2025-01-07 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198269', 'tblTempUsageDetail_20' ) end [2025-01-07 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198269', 'tblTempVendorCDR_20' ) start [2025-01-07 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198269', 'tblTempVendorCDR_20' ) end [2025-01-07 23:30:19] Production.INFO: ProcessCDR(1,14198269,1,1,2) [2025-01-07 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198269', 'tblTempUsageDetail_20' ) start [2025-01-07 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198269', 'tblTempUsageDetail_20' ) end [2025-01-07 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:30:22] Production.INFO: ==31325== Releasing lock... [2025-01-07 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:30:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-07 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:31:05 [end_date_ymd] => 2025-01-07 23:31:05 [RateCDR] => 1 ) [2025-01-07 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:31:05' and `end` < '2025-01-07 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:31:21] Production.INFO: count ==1396 [2025-01-07 23:31:22] Production.ERROR: pbx CDR StartTime 2025-01-07 20:31:05 - End Time 2025-01-07 23:31:05 [2025-01-07 23:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198274', 'tblTempUsageDetail_20' ) start [2025-01-07 23:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198274', 'tblTempUsageDetail_20' ) end [2025-01-07 23:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198274', 'tblTempVendorCDR_20' ) start [2025-01-07 23:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198274', 'tblTempVendorCDR_20' ) end [2025-01-07 23:31:22] Production.INFO: ProcessCDR(1,14198274,1,1,2) [2025-01-07 23:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198274', 'tblTempUsageDetail_20' ) start [2025-01-07 23:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198274', 'tblTempUsageDetail_20' ) end [2025-01-07 23:31:25] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:31:25] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:31:25] Production.INFO: ==31399== Releasing lock... [2025-01-07 23:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:31:25] Production.INFO: 39 MB #Memory Used# [2025-01-07 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:32:05 [end_date_ymd] => 2025-01-07 23:32:05 [RateCDR] => 1 ) [2025-01-07 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:32:05' and `end` < '2025-01-07 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:32:18] Production.INFO: count ==1398 [2025-01-07 23:32:19] Production.ERROR: pbx CDR StartTime 2025-01-07 20:32:05 - End Time 2025-01-07 23:32:05 [2025-01-07 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198279', 'tblTempUsageDetail_20' ) start [2025-01-07 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198279', 'tblTempUsageDetail_20' ) end [2025-01-07 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198279', 'tblTempVendorCDR_20' ) start [2025-01-07 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198279', 'tblTempVendorCDR_20' ) end [2025-01-07 23:32:19] Production.INFO: ProcessCDR(1,14198279,1,1,2) [2025-01-07 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198279', 'tblTempUsageDetail_20' ) start [2025-01-07 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198279', 'tblTempUsageDetail_20' ) end [2025-01-07 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:32:22] Production.INFO: ==31510== Releasing lock... [2025-01-07 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:32:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-07 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:33:05 [end_date_ymd] => 2025-01-07 23:33:05 [RateCDR] => 1 ) [2025-01-07 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:33:05' and `end` < '2025-01-07 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:33:18] Production.INFO: count ==1398 [2025-01-07 23:33:19] Production.ERROR: pbx CDR StartTime 2025-01-07 20:33:05 - End Time 2025-01-07 23:33:05 [2025-01-07 23:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198284', 'tblTempUsageDetail_20' ) start [2025-01-07 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198284', 'tblTempUsageDetail_20' ) end [2025-01-07 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198284', 'tblTempVendorCDR_20' ) start [2025-01-07 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198284', 'tblTempVendorCDR_20' ) end [2025-01-07 23:33:19] Production.INFO: ProcessCDR(1,14198284,1,1,2) [2025-01-07 23:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198284', 'tblTempUsageDetail_20' ) start [2025-01-07 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198284', 'tblTempUsageDetail_20' ) end [2025-01-07 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:33:22] Production.INFO: ==31584== Releasing lock... [2025-01-07 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:33:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-07 23:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:34:04 [end_date_ymd] => 2025-01-07 23:34:04 [RateCDR] => 1 ) [2025-01-07 23:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:34:04' and `end` < '2025-01-07 23:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:34:17] Production.INFO: count ==1396 [2025-01-07 23:34:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:34:04 - End Time 2025-01-07 23:34:04 [2025-01-07 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198289', 'tblTempUsageDetail_20' ) start [2025-01-07 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198289', 'tblTempUsageDetail_20' ) end [2025-01-07 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198289', 'tblTempVendorCDR_20' ) start [2025-01-07 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198289', 'tblTempVendorCDR_20' ) end [2025-01-07 23:34:18] Production.INFO: ProcessCDR(1,14198289,1,1,2) [2025-01-07 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198289', 'tblTempUsageDetail_20' ) start [2025-01-07 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198289', 'tblTempUsageDetail_20' ) end [2025-01-07 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:34:21] Production.INFO: ==31653== Releasing lock... [2025-01-07 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:34:21] Production.INFO: 39 MB #Memory Used# [2025-01-07 23:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:35:04 [end_date_ymd] => 2025-01-07 23:35:04 [RateCDR] => 1 ) [2025-01-07 23:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:35:04' and `end` < '2025-01-07 23:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:35:17] Production.INFO: count ==1396 [2025-01-07 23:35:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:35:04 - End Time 2025-01-07 23:35:04 [2025-01-07 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198293', 'tblTempUsageDetail_20' ) start [2025-01-07 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198293', 'tblTempUsageDetail_20' ) end [2025-01-07 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198293', 'tblTempVendorCDR_20' ) start [2025-01-07 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198293', 'tblTempVendorCDR_20' ) end [2025-01-07 23:35:18] Production.INFO: ProcessCDR(1,14198293,1,1,2) [2025-01-07 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198293', 'tblTempUsageDetail_20' ) start [2025-01-07 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198293', 'tblTempUsageDetail_20' ) end [2025-01-07 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:35:21] Production.INFO: ==31731== Releasing lock... [2025-01-07 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:35:21] Production.INFO: 39 MB #Memory Used# [2025-01-07 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:36:05 [end_date_ymd] => 2025-01-07 23:36:05 [RateCDR] => 1 ) [2025-01-07 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:36:05' and `end` < '2025-01-07 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:36:18] Production.INFO: count ==1397 [2025-01-07 23:36:19] Production.ERROR: pbx CDR StartTime 2025-01-07 20:36:05 - End Time 2025-01-07 23:36:05 [2025-01-07 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198299', 'tblTempUsageDetail_20' ) start [2025-01-07 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198299', 'tblTempUsageDetail_20' ) end [2025-01-07 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198299', 'tblTempVendorCDR_20' ) start [2025-01-07 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198299', 'tblTempVendorCDR_20' ) end [2025-01-07 23:36:19] Production.INFO: ProcessCDR(1,14198299,1,1,2) [2025-01-07 23:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198299', 'tblTempUsageDetail_20' ) start [2025-01-07 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198299', 'tblTempUsageDetail_20' ) end [2025-01-07 23:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:36:23] Production.INFO: ==31802== Releasing lock... [2025-01-07 23:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:36:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-07 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:37:05 [end_date_ymd] => 2025-01-07 23:37:05 [RateCDR] => 1 ) [2025-01-07 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:37:05' and `end` < '2025-01-07 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:37:19] Production.INFO: count ==1393 [2025-01-07 23:37:19] Production.ERROR: pbx CDR StartTime 2025-01-07 20:37:05 - End Time 2025-01-07 23:37:05 [2025-01-07 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198304', 'tblTempUsageDetail_20' ) start [2025-01-07 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198304', 'tblTempUsageDetail_20' ) end [2025-01-07 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198304', 'tblTempVendorCDR_20' ) start [2025-01-07 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198304', 'tblTempVendorCDR_20' ) end [2025-01-07 23:37:19] Production.INFO: ProcessCDR(1,14198304,1,1,2) [2025-01-07 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198304', 'tblTempUsageDetail_20' ) start [2025-01-07 23:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198304', 'tblTempUsageDetail_20' ) end [2025-01-07 23:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:37:24] Production.INFO: ==31875== Releasing lock... [2025-01-07 23:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:37:24] Production.INFO: 39 MB #Memory Used# [2025-01-07 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:38:06 [end_date_ymd] => 2025-01-07 23:38:06 [RateCDR] => 1 ) [2025-01-07 23:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:38:06' and `end` < '2025-01-07 23:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:38:19] Production.INFO: count ==1394 [2025-01-07 23:38:19] Production.ERROR: pbx CDR StartTime 2025-01-07 20:38:06 - End Time 2025-01-07 23:38:06 [2025-01-07 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198309', 'tblTempUsageDetail_20' ) start [2025-01-07 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198309', 'tblTempUsageDetail_20' ) end [2025-01-07 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198309', 'tblTempVendorCDR_20' ) start [2025-01-07 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198309', 'tblTempVendorCDR_20' ) end [2025-01-07 23:38:19] Production.INFO: ProcessCDR(1,14198309,1,1,2) [2025-01-07 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198309', 'tblTempUsageDetail_20' ) start [2025-01-07 23:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198309', 'tblTempUsageDetail_20' ) end [2025-01-07 23:38:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:38:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:38:24] Production.INFO: ==31950== Releasing lock... [2025-01-07 23:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:38:24] Production.INFO: 39 MB #Memory Used# [2025-01-07 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:39:05 [end_date_ymd] => 2025-01-07 23:39:05 [RateCDR] => 1 ) [2025-01-07 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:39:05' and `end` < '2025-01-07 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:39:19] Production.INFO: count ==1397 [2025-01-07 23:39:20] Production.ERROR: pbx CDR StartTime 2025-01-07 20:39:05 - End Time 2025-01-07 23:39:05 [2025-01-07 23:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198314', 'tblTempUsageDetail_20' ) start [2025-01-07 23:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198314', 'tblTempUsageDetail_20' ) end [2025-01-07 23:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198314', 'tblTempVendorCDR_20' ) start [2025-01-07 23:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198314', 'tblTempVendorCDR_20' ) end [2025-01-07 23:39:20] Production.INFO: ProcessCDR(1,14198314,1,1,2) [2025-01-07 23:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198314', 'tblTempUsageDetail_20' ) start [2025-01-07 23:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198314', 'tblTempUsageDetail_20' ) end [2025-01-07 23:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:39:24] Production.INFO: ==32025== Releasing lock... [2025-01-07 23:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:39:24] Production.INFO: 39 MB #Memory Used# [2025-01-07 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:40:06 [end_date_ymd] => 2025-01-07 23:40:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 20:40:06' and `end` < '2025-01-07 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-01-07 23:40:19] Production.INFO: count ==1401 [2025-01-07 23:40:19] Production.ERROR: pbx CDR StartTime 2025-01-07 20:40:06 - End Time 2025-01-07 23:40:06 [2025-01-07 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198319', 'tblTempUsageDetail_20' ) start [2025-01-07 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198319', 'tblTempUsageDetail_20' ) end [2025-01-07 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198319', 'tblTempVendorCDR_20' ) start [2025-01-07 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198319', 'tblTempVendorCDR_20' ) end [2025-01-07 23:40:19] Production.INFO: ProcessCDR(1,14198319,1,1,2) [2025-01-07 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198319', 'tblTempUsageDetail_20' ) start [2025-01-07 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198319', 'tblTempUsageDetail_20' ) end [2025-01-07 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:40:23] Production.INFO: ==32099== Releasing lock... [2025-01-07 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:40:23] Production.INFO: 39 MB #Memory Used# [2025-01-07 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:41:05 [end_date_ymd] => 2025-01-07 23:41:05 [RateCDR] => 1 ) [2025-01-07 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:41:05' and `end` < '2025-01-07 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:41:18] Production.INFO: count ==1413 [2025-01-07 23:41:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:41:05 - End Time 2025-01-07 23:41:05 [2025-01-07 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198325', 'tblTempUsageDetail_20' ) start [2025-01-07 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198325', 'tblTempUsageDetail_20' ) end [2025-01-07 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198325', 'tblTempVendorCDR_20' ) start [2025-01-07 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198325', 'tblTempVendorCDR_20' ) end [2025-01-07 23:41:18] Production.INFO: ProcessCDR(1,14198325,1,1,2) [2025-01-07 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198325', 'tblTempUsageDetail_20' ) start [2025-01-07 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198325', 'tblTempUsageDetail_20' ) end [2025-01-07 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:41:22] Production.INFO: ==32172== Releasing lock... [2025-01-07 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:41:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-07 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:42:05 [end_date_ymd] => 2025-01-07 23:42:05 [RateCDR] => 1 ) [2025-01-07 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:42:05' and `end` < '2025-01-07 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:42:18] Production.INFO: count ==1413 [2025-01-07 23:42:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:42:05 - End Time 2025-01-07 23:42:05 [2025-01-07 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198330', 'tblTempUsageDetail_20' ) start [2025-01-07 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198330', 'tblTempUsageDetail_20' ) end [2025-01-07 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198330', 'tblTempVendorCDR_20' ) start [2025-01-07 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198330', 'tblTempVendorCDR_20' ) end [2025-01-07 23:42:18] Production.INFO: ProcessCDR(1,14198330,1,1,2) [2025-01-07 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198330', 'tblTempUsageDetail_20' ) start [2025-01-07 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198330', 'tblTempUsageDetail_20' ) end [2025-01-07 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:42:21] Production.INFO: ==32245== Releasing lock... [2025-01-07 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:42:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-07 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:43:05 [end_date_ymd] => 2025-01-07 23:43:05 [RateCDR] => 1 ) [2025-01-07 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:43:05' and `end` < '2025-01-07 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:43:20] Production.INFO: count ==1345 [2025-01-07 23:43:20] Production.ERROR: pbx CDR StartTime 2025-01-07 20:43:05 - End Time 2025-01-07 23:43:05 [2025-01-07 23:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198335', 'tblTempUsageDetail_20' ) start [2025-01-07 23:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198335', 'tblTempUsageDetail_20' ) end [2025-01-07 23:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198335', 'tblTempVendorCDR_20' ) start [2025-01-07 23:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198335', 'tblTempVendorCDR_20' ) end [2025-01-07 23:43:20] Production.INFO: ProcessCDR(1,14198335,1,1,2) [2025-01-07 23:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198335', 'tblTempUsageDetail_20' ) start [2025-01-07 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198335', 'tblTempUsageDetail_20' ) end [2025-01-07 23:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:43:23] Production.INFO: ==32321== Releasing lock... [2025-01-07 23:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:43:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-07 23:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:44:04 [end_date_ymd] => 2025-01-07 23:44:04 [RateCDR] => 1 ) [2025-01-07 23:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:44:04' and `end` < '2025-01-07 23:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:44:18] Production.INFO: count ==1269 [2025-01-07 23:44:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:44:04 - End Time 2025-01-07 23:44:04 [2025-01-07 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198340', 'tblTempUsageDetail_20' ) start [2025-01-07 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198340', 'tblTempUsageDetail_20' ) end [2025-01-07 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198340', 'tblTempVendorCDR_20' ) start [2025-01-07 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198340', 'tblTempVendorCDR_20' ) end [2025-01-07 23:44:18] Production.INFO: ProcessCDR(1,14198340,1,1,2) [2025-01-07 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198340', 'tblTempUsageDetail_20' ) start [2025-01-07 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198340', 'tblTempUsageDetail_20' ) end [2025-01-07 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:44:21] Production.INFO: ==32390== Releasing lock... [2025-01-07 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:44:21] Production.INFO: 38 MB #Memory Used# [2025-01-07 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:45:05 [end_date_ymd] => 2025-01-07 23:45:05 [RateCDR] => 1 ) [2025-01-07 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:45:05' and `end` < '2025-01-07 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:45:18] Production.INFO: count ==1191 [2025-01-07 23:45:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:45:05 - End Time 2025-01-07 23:45:05 [2025-01-07 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198345', 'tblTempUsageDetail_20' ) start [2025-01-07 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198345', 'tblTempUsageDetail_20' ) end [2025-01-07 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198345', 'tblTempVendorCDR_20' ) start [2025-01-07 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198345', 'tblTempVendorCDR_20' ) end [2025-01-07 23:45:18] Production.INFO: ProcessCDR(1,14198345,1,1,2) [2025-01-07 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198345', 'tblTempUsageDetail_20' ) start [2025-01-07 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198345', 'tblTempUsageDetail_20' ) end [2025-01-07 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:45:21] Production.INFO: ==32465== Releasing lock... [2025-01-07 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:45:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-07 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:46:05 [end_date_ymd] => 2025-01-07 23:46:05 [RateCDR] => 1 ) [2025-01-07 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:46:05' and `end` < '2025-01-07 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:46:20] Production.INFO: count ==1111 [2025-01-07 23:46:20] Production.ERROR: pbx CDR StartTime 2025-01-07 20:46:05 - End Time 2025-01-07 23:46:05 [2025-01-07 23:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198350', 'tblTempUsageDetail_20' ) start [2025-01-07 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198350', 'tblTempUsageDetail_20' ) end [2025-01-07 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198350', 'tblTempVendorCDR_20' ) start [2025-01-07 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198350', 'tblTempVendorCDR_20' ) end [2025-01-07 23:46:20] Production.INFO: ProcessCDR(1,14198350,1,1,2) [2025-01-07 23:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198350', 'tblTempUsageDetail_20' ) start [2025-01-07 23:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198350', 'tblTempUsageDetail_20' ) end [2025-01-07 23:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:46:23] Production.INFO: ==32539== Releasing lock... [2025-01-07 23:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:46:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-07 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:47:05 [end_date_ymd] => 2025-01-07 23:47:05 [RateCDR] => 1 ) [2025-01-07 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:47:05' and `end` < '2025-01-07 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:47:20] Production.INFO: count ==1030 [2025-01-07 23:47:20] Production.ERROR: pbx CDR StartTime 2025-01-07 20:47:05 - End Time 2025-01-07 23:47:05 [2025-01-07 23:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198355', 'tblTempUsageDetail_20' ) start [2025-01-07 23:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198355', 'tblTempUsageDetail_20' ) end [2025-01-07 23:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198355', 'tblTempVendorCDR_20' ) start [2025-01-07 23:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198355', 'tblTempVendorCDR_20' ) end [2025-01-07 23:47:20] Production.INFO: ProcessCDR(1,14198355,1,1,2) [2025-01-07 23:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198355', 'tblTempUsageDetail_20' ) start [2025-01-07 23:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198355', 'tblTempUsageDetail_20' ) end [2025-01-07 23:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:47:23] Production.INFO: ==32609== Releasing lock... [2025-01-07 23:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:47:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-07 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:48:05 [end_date_ymd] => 2025-01-07 23:48:05 [RateCDR] => 1 ) [2025-01-07 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:48:05' and `end` < '2025-01-07 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:48:18] Production.INFO: count ==950 [2025-01-07 23:48:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:48:05 - End Time 2025-01-07 23:48:05 [2025-01-07 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198360', 'tblTempUsageDetail_20' ) start [2025-01-07 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198360', 'tblTempUsageDetail_20' ) end [2025-01-07 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198360', 'tblTempVendorCDR_20' ) start [2025-01-07 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198360', 'tblTempVendorCDR_20' ) end [2025-01-07 23:48:18] Production.INFO: ProcessCDR(1,14198360,1,1,2) [2025-01-07 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198360', 'tblTempUsageDetail_20' ) start [2025-01-07 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198360', 'tblTempUsageDetail_20' ) end [2025-01-07 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:48:21] Production.INFO: ==32726== Releasing lock... [2025-01-07 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:48:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-07 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:49:05 [end_date_ymd] => 2025-01-07 23:49:05 [RateCDR] => 1 ) [2025-01-07 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:49:05' and `end` < '2025-01-07 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:49:18] Production.INFO: count ==874 [2025-01-07 23:49:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:49:05 - End Time 2025-01-07 23:49:05 [2025-01-07 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198365', 'tblTempUsageDetail_20' ) start [2025-01-07 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198365', 'tblTempUsageDetail_20' ) end [2025-01-07 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198365', 'tblTempVendorCDR_20' ) start [2025-01-07 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198365', 'tblTempVendorCDR_20' ) end [2025-01-07 23:49:18] Production.INFO: ProcessCDR(1,14198365,1,1,2) [2025-01-07 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198365', 'tblTempUsageDetail_20' ) start [2025-01-07 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198365', 'tblTempUsageDetail_20' ) end [2025-01-07 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:49:21] Production.INFO: ==357== Releasing lock... [2025-01-07 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:49:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-07 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:50:06 [end_date_ymd] => 2025-01-07 23:50:06 [RateCDR] => 1 ) [2025-01-07 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-01-07 20:50:06' and `end` < '2025-01-07 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-01-07 23:50:19] Production.INFO: count ==794 [2025-01-07 23:50:19] Production.ERROR: pbx CDR StartTime 2025-01-07 20:50:06 - End Time 2025-01-07 23:50:06 [2025-01-07 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198370', 'tblTempUsageDetail_20' ) start [2025-01-07 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198370', 'tblTempUsageDetail_20' ) end [2025-01-07 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198370', 'tblTempVendorCDR_20' ) start [2025-01-07 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198370', 'tblTempVendorCDR_20' ) end [2025-01-07 23:50:19] Production.INFO: ProcessCDR(1,14198370,1,1,2) [2025-01-07 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198370', 'tblTempUsageDetail_20' ) start [2025-01-07 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198370', 'tblTempUsageDetail_20' ) end [2025-01-07 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:50:22] Production.INFO: ==435== Releasing lock... [2025-01-07 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:50:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-07 23:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:51:04 [end_date_ymd] => 2025-01-07 23:51:04 [RateCDR] => 1 ) [2025-01-07 23:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:51:04' and `end` < '2025-01-07 23:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:51:18] Production.INFO: count ==791 [2025-01-07 23:51:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:51:04 - End Time 2025-01-07 23:51:04 [2025-01-07 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198376', 'tblTempUsageDetail_20' ) start [2025-01-07 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198376', 'tblTempUsageDetail_20' ) end [2025-01-07 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198376', 'tblTempVendorCDR_20' ) start [2025-01-07 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198376', 'tblTempVendorCDR_20' ) end [2025-01-07 23:51:18] Production.INFO: ProcessCDR(1,14198376,1,1,2) [2025-01-07 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198376', 'tblTempUsageDetail_20' ) start [2025-01-07 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198376', 'tblTempUsageDetail_20' ) end [2025-01-07 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:51:21] Production.INFO: ==527== Releasing lock... [2025-01-07 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:51:21] Production.INFO: 34 MB #Memory Used# [2025-01-07 23:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:52:04 [end_date_ymd] => 2025-01-07 23:52:04 [RateCDR] => 1 ) [2025-01-07 23:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:52:04' and `end` < '2025-01-07 23:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:52:17] Production.INFO: count ==722 [2025-01-07 23:52:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:52:04 - End Time 2025-01-07 23:52:04 [2025-01-07 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198381', 'tblTempUsageDetail_20' ) start [2025-01-07 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198381', 'tblTempUsageDetail_20' ) end [2025-01-07 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198381', 'tblTempVendorCDR_20' ) start [2025-01-07 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198381', 'tblTempVendorCDR_20' ) end [2025-01-07 23:52:18] Production.INFO: ProcessCDR(1,14198381,1,1,2) [2025-01-07 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198381', 'tblTempUsageDetail_20' ) start [2025-01-07 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198381', 'tblTempUsageDetail_20' ) end [2025-01-07 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:52:21] Production.INFO: ==615== Releasing lock... [2025-01-07 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:52:21] Production.INFO: 33 MB #Memory Used# [2025-01-07 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:53:05 [end_date_ymd] => 2025-01-07 23:53:05 [RateCDR] => 1 ) [2025-01-07 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:53:05' and `end` < '2025-01-07 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:53:17] Production.INFO: count ==642 [2025-01-07 23:53:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:53:05 - End Time 2025-01-07 23:53:05 [2025-01-07 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198386', 'tblTempUsageDetail_20' ) start [2025-01-07 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198386', 'tblTempUsageDetail_20' ) end [2025-01-07 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198386', 'tblTempVendorCDR_20' ) start [2025-01-07 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198386', 'tblTempVendorCDR_20' ) end [2025-01-07 23:53:18] Production.INFO: ProcessCDR(1,14198386,1,1,2) [2025-01-07 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198386', 'tblTempUsageDetail_20' ) start [2025-01-07 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198386', 'tblTempUsageDetail_20' ) end [2025-01-07 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:53:21] Production.INFO: ==742== Releasing lock... [2025-01-07 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:53:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-07 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:54:05 [end_date_ymd] => 2025-01-07 23:54:05 [RateCDR] => 1 ) [2025-01-07 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:54:05' and `end` < '2025-01-07 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:54:18] Production.INFO: count ==564 [2025-01-07 23:54:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:54:05 - End Time 2025-01-07 23:54:05 [2025-01-07 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198391', 'tblTempUsageDetail_20' ) start [2025-01-07 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198391', 'tblTempUsageDetail_20' ) end [2025-01-07 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198391', 'tblTempVendorCDR_20' ) start [2025-01-07 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198391', 'tblTempVendorCDR_20' ) end [2025-01-07 23:54:18] Production.INFO: ProcessCDR(1,14198391,1,1,2) [2025-01-07 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198391', 'tblTempUsageDetail_20' ) start [2025-01-07 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198391', 'tblTempUsageDetail_20' ) end [2025-01-07 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:54:22] Production.INFO: ==847== Releasing lock... [2025-01-07 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:54:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-07 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:55:05 [end_date_ymd] => 2025-01-07 23:55:05 [RateCDR] => 1 ) [2025-01-07 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:55:05' and `end` < '2025-01-07 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:55:18] Production.INFO: count ==491 [2025-01-07 23:55:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:55:05 - End Time 2025-01-07 23:55:05 [2025-01-07 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198396', 'tblTempUsageDetail_20' ) start [2025-01-07 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198396', 'tblTempUsageDetail_20' ) end [2025-01-07 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198396', 'tblTempVendorCDR_20' ) start [2025-01-07 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198396', 'tblTempVendorCDR_20' ) end [2025-01-07 23:55:18] Production.INFO: ProcessCDR(1,14198396,1,1,2) [2025-01-07 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198396', 'tblTempUsageDetail_20' ) start [2025-01-07 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198396', 'tblTempUsageDetail_20' ) end [2025-01-07 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:55:21] Production.INFO: ==942== Releasing lock... [2025-01-07 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:55:21] Production.INFO: 31 MB #Memory Used# [2025-01-07 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:56:05 [end_date_ymd] => 2025-01-07 23:56:05 [RateCDR] => 1 ) [2025-01-07 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:56:05' and `end` < '2025-01-07 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:56:18] Production.INFO: count ==487 [2025-01-07 23:56:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:56:05 - End Time 2025-01-07 23:56:05 [2025-01-07 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198401', 'tblTempUsageDetail_20' ) start [2025-01-07 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198401', 'tblTempUsageDetail_20' ) end [2025-01-07 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198401', 'tblTempVendorCDR_20' ) start [2025-01-07 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198401', 'tblTempVendorCDR_20' ) end [2025-01-07 23:56:18] Production.INFO: ProcessCDR(1,14198401,1,1,2) [2025-01-07 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198401', 'tblTempUsageDetail_20' ) start [2025-01-07 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198401', 'tblTempUsageDetail_20' ) end [2025-01-07 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:56:21] Production.INFO: ==1051== Releasing lock... [2025-01-07 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:56:21] Production.INFO: 31 MB #Memory Used# [2025-01-07 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:57:05 [end_date_ymd] => 2025-01-07 23:57:05 [RateCDR] => 1 ) [2025-01-07 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-01-07 20:57:05' and `end` < '2025-01-07 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-01-07 23:57:20] Production.INFO: count ==485 [2025-01-07 23:57:20] Production.ERROR: pbx CDR StartTime 2025-01-07 20:57:05 - End Time 2025-01-07 23:57:05 [2025-01-07 23:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198405', 'tblTempUsageDetail_20' ) start [2025-01-07 23:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198405', 'tblTempUsageDetail_20' ) end [2025-01-07 23:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198405', 'tblTempVendorCDR_20' ) start [2025-01-07 23:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198405', 'tblTempVendorCDR_20' ) end [2025-01-07 23:57:20] Production.INFO: ProcessCDR(1,14198405,1,1,2) [2025-01-07 23:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198405', 'tblTempUsageDetail_20' ) start [2025-01-07 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198405', 'tblTempUsageDetail_20' ) end [2025-01-07 23:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:57:23] Production.INFO: ==1164== Releasing lock... [2025-01-07 23:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:57:23] Production.INFO: 31 MB #Memory Used# [2025-01-07 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:58:05 [end_date_ymd] => 2025-01-07 23:58:05 [RateCDR] => 1 ) [2025-01-07 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:58:05' and `end` < '2025-01-07 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:58:18] Production.INFO: count ==485 [2025-01-07 23:58:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:58:05 - End Time 2025-01-07 23:58:05 [2025-01-07 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198411', 'tblTempUsageDetail_20' ) start [2025-01-07 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198411', 'tblTempUsageDetail_20' ) end [2025-01-07 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198411', 'tblTempVendorCDR_20' ) start [2025-01-07 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198411', 'tblTempVendorCDR_20' ) end [2025-01-07 23:58:18] Production.INFO: ProcessCDR(1,14198411,1,1,2) [2025-01-07 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198411', 'tblTempUsageDetail_20' ) start [2025-01-07 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198411', 'tblTempUsageDetail_20' ) end [2025-01-07 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:58:22] Production.INFO: ==1285== Releasing lock... [2025-01-07 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:58:22] Production.INFO: 31 MB #Memory Used# [2025-01-07 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 20:59:05 [end_date_ymd] => 2025-01-07 23:59:05 [RateCDR] => 1 ) [2025-01-07 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 20:59:05' and `end` < '2025-01-07 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-07 23:59:18] Production.INFO: count ==484 [2025-01-07 23:59:18] Production.ERROR: pbx CDR StartTime 2025-01-07 20:59:05 - End Time 2025-01-07 23:59:05 [2025-01-07 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-07 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198416', 'tblTempUsageDetail_20' ) start [2025-01-07 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198416', 'tblTempUsageDetail_20' ) end [2025-01-07 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198416', 'tblTempVendorCDR_20' ) start [2025-01-07 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198416', 'tblTempVendorCDR_20' ) end [2025-01-07 23:59:18] Production.INFO: ProcessCDR(1,14198416,1,1,2) [2025-01-07 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-07 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-07 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198416', 'tblTempUsageDetail_20' ) start [2025-01-07 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198416', 'tblTempUsageDetail_20' ) end [2025-01-07 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-07 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-07 23:59:21] Production.INFO: ==1389== Releasing lock... [2025-01-07 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-07 23:59:21] Production.INFO: 31 MB #Memory Used#